Documentation ¶
Index ¶
Constants ¶
View Source
const ( // INDEXSERVER is the default docker index server INDEXSERVER = "https://index.docker.io/v1/" // REGISTRYSERVER ... REGISTRYSERVER = "https://registry-1.docker.io/v1/" )
Variables ¶
View Source
var ( // ErrNotARegistryAddress is returned when a registry address is not valid. ErrNotARegistryAddress = errors.New("not a registry address") // ErrNotAValidRepositoryName is returned when a repository name is not valid. ErrNotAValidRepositoryName = errors.New("not a valid repository name") )
Functions ¶
func GetAuthConfiguration ¶
func GetAuthConfiguration(pkg string) *dockerapi.AuthConfiguration
GetAuthConfiguration returns an auth object for the registry.
Types ¶
type Config ¶
type Config struct { Name string `mapstructure:"-"` Username string `mapstructure:"username" version:"1"` Password string `mapstructure:"password" version:"1"` Email string `mapstructure:"email" version:"1"` ServerAddress string `mapstructure:"address" version:"1"` }
Config structure for a Registry
func DecodeConfig ¶
DecodeConfig returns a parsed config object
type ConfigDecoder ¶
type ConfigDecoder struct{}
ConfigDecoder object
func (*ConfigDecoder) DecodeConfig ¶
func (cd *ConfigDecoder) DecodeConfig(data interface{}) (engine.Config, error)
DecodeConfig returns a parsed config object
type List ¶
type List struct {
Registries []*Registry
}
List of Registries we know about
func (*List) BuildNewList ¶
BuildNewList (re)creates the internal registry list
Click to show internal directories.
Click to hide internal directories.