Documentation ¶
Index ¶
- Constants
- func GetBindMount(ctx *types.SystemContext, args []string, contextDir string, ...) (specs.Mount, string, error)
- func GetCacheMount(args []string, store storage.Store, imageMountLabel string, ...) (specs.Mount, []string, error)
- func GetTmpfsMount(args []string) (specs.Mount, error)
- func GetVolumes(ctx *types.SystemContext, store storage.Store, volumes []string, ...) ([]specs.Mount, []string, []string, error)
- func RevertEscapedColon(source string) string
- func SplitStringWithColonEscape(str string) []string
- func ValidateVolumeMountHostDir(hostDir string) error
- func Volume(volume string) (specs.Mount, error)
Constants ¶
const ( // TypeBind is the type for mounting host dir TypeBind = "bind" // TypeTmpfs is the type for mounting tmpfs TypeTmpfs = "tmpfs" // TypeCache is the type for mounting a common persistent cache from host TypeCache = "cache" // mount=type=cache must create a persistent directory on host so its available for all consecutive builds. // Lifecycle of following directory will be inherited from how host machine treats temporary directory BuildahCacheDir = "buildah-cache" // mount=type=cache allows users to lock a cache store while its being used by another build BuildahCacheLockfile = "buildah-cache-lockfile" )
Variables ¶
This section is empty.
Functions ¶
func GetBindMount ¶
func GetBindMount(ctx *types.SystemContext, args []string, contextDir string, store storage.Store, imageMountLabel string, additionalMountPoints map[string]internal.StageMountDetails) (specs.Mount, string, error)
GetBindMount parses a single bind mount entry from the --mount flag. Returns specifiedMount and a string which contains name of image that we mounted otherwise its empty. Caller is expected to perform unmount of any mounted images
func GetCacheMount ¶
func GetCacheMount(args []string, store storage.Store, imageMountLabel string, additionalMountPoints map[string]internal.StageMountDetails) (specs.Mount, []string, error)
GetCacheMount parses a single cache mount entry from the --mount flag.
func GetTmpfsMount ¶
GetTmpfsMount parses a single tmpfs mount entry from the --mount flag
func GetVolumes ¶ added in v1.25.0
func GetVolumes(ctx *types.SystemContext, store storage.Store, volumes []string, mounts []string, contextDir string) ([]specs.Mount, []string, []string, error)
GetVolumes gets the volumes from --volume and --mount
func RevertEscapedColon ¶ added in v1.25.0
RevertEscapedColon converts "\:" to ":"
func SplitStringWithColonEscape ¶ added in v1.25.0
SplitStringWithColonEscape splits string into slice by colon. Backslash-escaped colon (i.e. "\:") will not be regarded as separator
func ValidateVolumeMountHostDir ¶ added in v1.25.0
ValidateVolumeMountHostDir validates the host path of buildah --volume
Types ¶
This section is empty.