package auth
import "github.com/docker/docker/auth"
Index ¶
- Constants
- Variables
- func IndexServerAddress() string
- func Login(authConfig *AuthConfig, factory *utils.HTTPRequestFactory) (string, error)
- func SaveConfig(configFile *ConfigFile) error
- type AuthConfig
- type ConfigFile
Constants ¶
const CONFIGFILE = ".dockercfg"
Where we store the config file
const INDEXSERVER = "https://index.docker.io/v1/"
Only used for user auth + account creation
Variables ¶
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
func SaveConfig ¶
func SaveConfig(configFile *ConfigFile) error
save the auth config
Types ¶
type AuthConfig ¶
type AuthConfig struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Auth string `json:"auth"` Email string `json:"email"` ServerAddress string `json:"serveraddress,omitempty"` }
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
Source Files ¶
- Version
- v0.6.6
- Published
- Nov 6, 2013
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 4 minutes ago –
Tools for package owners.