Documentation
¶
Index ¶
- Variables
- func GetGlobalOpts(c *cliconfig.RunlabelValues) string
- func GetImageConfig(changes []string) (v1.ImageConfig, error)
- func GetRootlessPauseProcessPidPath() (string, error)
- func GetRootlessRuntimeDir() (string, error)
- func IsCgroup2UnifiedMode() (bool, error)
- func ParseIDMapping(mode namespaces.UsernsMode, UIDMapSlice, GIDMapSlice []string, ...) (*storage.IDMappingOptions, error)
- func ParseInputTime(inputTime string) (time.Time, error)
- func ParseRegistryCreds(creds string) (*types.DockerAuthConfig, error)
- func ProcessOptions(options []string) []string
- func ProcessTmpfsOptions(options []string) ([]string, error)
- func StringInSlice(s string, sl []string) bool
- func WriteStorageConfigFile(storageOpts *storage.StoreOptions, storageConf string) error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrBadMntOption indicates that an invalid mount option was passed. ErrBadMntOption = errors.Errorf("invalid mount option") // ErrDupeMntOption indicates that a duplicate mount option was passed. ErrDupeMntOption = errors.Errorf("duplicate option passed") )
Functions ¶
func GetGlobalOpts ¶
func GetGlobalOpts(c *cliconfig.RunlabelValues) string
GetGlobalOpts checks all global flags and generates the command string
func GetImageConfig ¶
func GetImageConfig(changes []string) (v1.ImageConfig, error)
GetImageConfig converts the --change flag values in the format "CMD=/bin/bash USER=example" to a type v1.ImageConfig
func GetRootlessPauseProcessPidPath ¶
GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for the pause process
func GetRootlessRuntimeDir ¶
GetRootlessRuntimeDir returns the runtime directory when running as non root
func IsCgroup2UnifiedMode ¶
IsCgroup2UnifiedMode returns whether we are running in cgroup 2 unified mode.
func ParseIDMapping ¶
func ParseIDMapping(mode namespaces.UsernsMode, UIDMapSlice, GIDMapSlice []string, subUIDMap, subGIDMap string) (*storage.IDMappingOptions, error)
ParseIDMapping takes idmappings and subuid and subgid maps and returns a storage mapping
func ParseInputTime ¶
ParseInputTime takes the users input and to determine if it is valid and returns a time format and error. The input is compared to known time formats or a duration which implies no-duration
func ParseRegistryCreds ¶
func ParseRegistryCreds(creds string) (*types.DockerAuthConfig, error)
ParseRegistryCreds takes a credentials string in the form USERNAME:PASSWORD and returns a DockerAuthConfig
func ProcessOptions ¶
ProcessOptions parses the options for a bind mount and ensures that they are sensible and follow convention.
func ProcessTmpfsOptions ¶
ProcessTmpfsOptions parses the options for a tmpfs mountpoint and ensures that they are sensible and follow convention.
func StringInSlice ¶
StringInSlice determines if a string is in a string slice, returns bool
func WriteStorageConfigFile ¶
func WriteStorageConfigFile(storageOpts *storage.StoreOptions, storageConf string) error
WriteStorageConfigFile writes the configuration to a file
Types ¶
This section is empty.