Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWindowsDrivePath ¶
IsWindowsDrivePath returns true if the path looks like a Windows drive path (e.g., "C:/path")
Types ¶
type PathMapper ¶
type PathMapper struct {
// contains filtered or unexported fields
}
PathMapper handles translation between container and host paths
func NewPathMapper ¶
func NewPathMapper(containerDir, hostDir string) *PathMapper
NewPathMapper creates a new path mapper
func (*PathMapper) ContainerToHost ¶
func (pm *PathMapper) ContainerToHost(containerPath string) (string, error)
ContainerToHost translates a container path to host path
func (*PathMapper) IsNonMatchingMount ¶
func (pm *PathMapper) IsNonMatchingMount() bool
func (*PathMapper) TranslateVolumeSources ¶
func (pm *PathMapper) TranslateVolumeSources(project *composetypes.Project) error
TranslateVolumeSources translates all bind mount sources in a compose project
Click to show internal directories.
Click to hide internal directories.