Documentation
¶
Index ¶
- func GetDefaultStoreOptions() (storage.StoreOptions, string, error)
- func GetImageConfig(changes []string) (v1.ImageConfig, error)
- func GetRootlessDirInfo() (string, string, error)
- func GetRootlessRuntimeDir() (string, error)
- func GetRootlessStorageOpts() (storage.StoreOptions, error)
- func GetRootlessVolumeInfo() (string, error)
- func ParseIDMapping(UIDMapSlice, GIDMapSlice []string, subUIDMap, subGIDMap string) (*storage.IDMappingOptions, error)
- func ParseRegistryCreds(creds string) (*types.DockerAuthConfig, error)
- func StorageConfigFile() string
- func StringInSlice(s string, sl []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultStoreOptions ¶
func GetDefaultStoreOptions() (storage.StoreOptions, string, error)
GetDefaultStoreOptions returns the storage ops for containers and the volume path for the volume API It also returns the path where all named volumes will be created using the volume API
func GetImageConfig ¶
GetImageConfig converts the --change flag values in the format "CMD=/bin/bash USER=example" to a type v1.ImageConfig
func GetRootlessDirInfo ¶
GetRootlessDirInfo returns the parent path of where the storage for containers and volumes will be in rootless mode
func GetRootlessRuntimeDir ¶
GetRootlessRuntimeDir returns the runtime directory when running as non root
func GetRootlessStorageOpts ¶
func GetRootlessStorageOpts() (storage.StoreOptions, error)
GetRootlessStorageOpts returns the storage opts for containers running as non root
func GetRootlessVolumeInfo ¶
GetRootlessVolumeInfo returns where all the name volumes will be created in rootless mode
func ParseIDMapping ¶
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 ParseRegistryCreds ¶
func ParseRegistryCreds(creds string) (*types.DockerAuthConfig, error)
ParseRegistryCreds takes a credentials string in the form USERNAME:PASSWORD and returns a DockerAuthConfig
func StorageConfigFile ¶
func StorageConfigFile() string
StorageConfigFile returns the path to the storage config file used
func StringInSlice ¶
StringInSlice determines if a string is in a string slice, returns bool
Types ¶
This section is empty.