package auth
import "github.com/docker/docker/auth"
Index ¶
- Constants
- func EncodeAuth(authConfig *AuthConfig) string
- func Login(authConfig *AuthConfig) (string, error)
- type AuthConfig
Constants ¶
const CONFIGFILE = ".dockercfg"
Where we store the config file
const INDEX_SERVER = "https://index.docker.io"
the registry server we want to login against
Functions ¶
func EncodeAuth ¶
func EncodeAuth(authConfig *AuthConfig) string
create a base64 encoded auth string to store in config
func Login ¶
func Login(authConfig *AuthConfig) (string, error)
try to register/login to the registry server
Types ¶
type AuthConfig ¶
type AuthConfig struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` // contains filtered or unexported fields }
func DecodeAuth ¶
func DecodeAuth(authStr string) (*AuthConfig, error)
decode the auth string
func LoadConfig ¶
func LoadConfig(rootPath string) (*AuthConfig, error)
load up the auth config information and return values FIXME: use the internal golang config parser
func NewAuthConfig ¶
func NewAuthConfig(username, password, email, rootPath string) *AuthConfig
Source Files ¶
- Version
- v0.3.2
- Published
- May 9, 2013
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 17 minutes ago –
Tools for package owners.