Documentation ¶
Index ¶
Constants ¶
View Source
const CONFIGFILE = ".dockercfg"
Where we store the config file
View Source
const INDEXSERVER = "https://index.docker.io/v1/"
Only used for user auth + account creation
Variables ¶
View Source
var (
ErrConfigFileMissing = errors.New("The Auth config file is missing")
)
Functions ¶
func IndexServerAddress ¶
func IndexServerAddress() string
func Login ¶
func Login(authConfig *AuthConfig, factory *utils.HTTPRequestFactory) (string, error)
try to register/login to the registry server
Types ¶
type AuthConfig ¶
type ConfigFile ¶
type ConfigFile struct { Configs map[string]AuthConfig `json:"configs,omitempty"` // contains filtered or unexported fields }
func LoadConfig ¶
func LoadConfig(rootPath string) (*ConfigFile, error)
load up the auth config information and return values FIXME: use the internal golang config parser
func (*ConfigFile) ResolveAuthConfig ¶
func (config *ConfigFile) ResolveAuthConfig(registry string) AuthConfig
this method matches a auth configuration to a server address or a url
Click to show internal directories.
Click to hide internal directories.