INNER CODE UNIT · Go

resolveDataMountPoint

kimdre/doco-cd · cmd/doco-cd/main.go:95

func resolveDataMountPoint(
	dataHostPath string,
	dataMountPath string,
	detectMountPoint func() (container.MountPoint, error),
) (container.MountPoint, error) {
	if dataHostPath != "" {
		return container.MountPoint{
			Type:        "bind",
			Source:      dataHostPath,
			Destination: dataMountPath,
			Mode:        "rw",
			RW:          true,
		}, nil
	}

	return detectMountPoint()
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…