Documentation ¶
Index ¶
- func GetImageConfig(changes []string) (v1.ImageConfig, error)
- func GetRootlessDirInfo() (string, string, error)
- func GetRootlessRuntimeDir() (string, error)
- func ParseIDMapping(UIDMapSlice, GIDMapSlice []string, subUIDMap, subGIDMap string) (*storage.IDMappingOptions, error)
- func ParseInputTime(inputTime string) (time.Time, error)
- func ParseRegistryCreds(creds string) (*types.DockerAuthConfig, error)
- func StringInSlice(s string, sl []string) bool
- func WriteStorageConfigFile(storageOpts *storage.StoreOptions, storageConf string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageConfig ¶ added in v0.4.4
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 GetRootlessDirInfo ¶ added in v0.12.1
GetRootlessDirInfo returns the parent path of where the storage for containers and volumes will be in rootless mode
func GetRootlessRuntimeDir ¶ added in v0.11.1
GetRootlessRuntimeDir returns the runtime directory when running as non root
func ParseIDMapping ¶ added in v0.5.2
func ParseIDMapping(UIDMapSlice, GIDMapSlice []string, subUIDMap, subGIDMap string) (*storage.IDMappingOptions, error)
ParseIDMapping takes idmappings and subuid and subgid maps and returns a storage mapping
func ParseInputTime ¶ added in v1.2.0
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 StringInSlice ¶ added in v0.3.3
StringInSlice determines if a string is in a string slice, returns bool
func WriteStorageConfigFile ¶ added in v1.2.0
func WriteStorageConfigFile(storageOpts *storage.StoreOptions, storageConf string) error
WriteStorageConfigFile writes the configuration to a file
Types ¶
This section is empty.