auth

package
v0.0.0-...-1cbd0a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2013 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIGFILE = ".dockercfg"

Where we store the config file

View Source
const INDEXSERVER = "https://index.docker.io/v1"

the registry server we want to login against

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, store bool) (string, error)

try to register/login to the registry server

func SaveConfig

func SaveConfig(authConfig *AuthConfig) error

save the auth config

Types

type AuthConfig

type AuthConfig struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL