types

package
v2.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeContentOptions

type ComposeContentOptions struct {
	ProjectName     string
	ComposeContent  string
	OverrideContent string
	EnvContent      string
	WorkingDir      string
	PathMapper      VolumeSourcePathMapper
}

ComposeContentOptions configures loading a Compose project from in-memory content.

type VolumeSourcePathMapper

type VolumeSourcePathMapper interface {
	TranslateVolumeSources(project *composetypes.Project, translateFileResources bool) error
	// ContainerToHost translates a single container-side path to its host-side
	// equivalent, returning the path unchanged when it is outside every mounted
	// directory. Needed to re-resolve relative Compose paths that escape the
	// projects mount, where prefix translation has nothing to match.
	ContainerToHost(containerPath string) (string, error)
}

VolumeSourcePathMapper translates Compose volume sources for the Docker host.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL