Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicCredentials ¶
BasicCredentials holds typical credentials used for authentication (user and password). Used for fetching docker images.
type Config ¶
type Config struct {
AuthPerHost map[string]Headerer
DockerCredentialsPerRegistry map[string]BasicCredentials
Paths ConfigurablePaths
Stage1 Stage1Data
}
Config is a single place where configuration for rkt frontend needs resides.
func GetConfig ¶
GetConfig gets the Config instance with configuration taken from default system path (see common.DefaultSystemConfigDir) overridden with configuration from default local path (see common.DefaultLocalConfigDir).
func GetConfigFrom ¶
GetConfigFrom gets the Config instance with configuration taken from given paths. Subsequent paths override settings from the previous paths.
func GetConfigFromDir ¶
GetConfigFromDir gets the Config instance with configuration taken from given directory.
func (*Config) MarshalJSON ¶ added in v1.4.0
MarshalJSON marshals the config for user output.
type ConfigurablePaths ¶ added in v0.14.0
ConfigurablePaths holds various paths defined in the configuration.
type Headerer ¶
Headerer is an interface for getting additional HTTP headers to use when downloading data (images, signatures).
type Stage1Data ¶ added in v1.0.0
Stage1 holds name, version and location of a default stage1 image if it was specified in configuration.