auth

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigLookup

type ConfigLookup struct {
	*configfile.ConfigFile
}

ConfigLookup implements AuthLookup by reading a Docker config file

func NewConfigLookup

func NewConfigLookup(configfile *configfile.ConfigFile) *ConfigLookup

NewConfigLookup creates a new ConfigLookup for a given context

func (*ConfigLookup) All

func (c *ConfigLookup) All() map[string]types.AuthConfig

All uses a Docker config file to get all authentication information

func (*ConfigLookup) Lookup

func (c *ConfigLookup) Lookup(repoInfo *registry.RepositoryInfo) types.AuthConfig

Lookup uses a Docker config file to lookup authentication information

type Lookup

type Lookup interface {
	All() map[string]types.AuthConfig
	Lookup(repoInfo *registry.RepositoryInfo) types.AuthConfig
}

Lookup defines a method for looking up authentication information

Source Files

Jump to

Keyboard shortcuts

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