docker_authorizer

package
v1.0.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHomeDockerConfigDir

func GetHomeDockerConfigDir() string

Types

type DockerAuthorizer

type DockerAuthorizer struct {
	HostDockerConfigDir  string
	ExternalDockerConfig bool

	Credentials     *DockerCredentials
	PullCredentials *DockerCredentials
	PushCredentials *DockerCredentials
}

func GetBuildAndPublishDockerAuthorizer

func GetBuildAndPublishDockerAuthorizer(projectTmpDir, pullUsernameOption, pullPasswordOption, pushUsernameOption, pushPasswordOption string) (*DockerAuthorizer, error)

func GetBuildStagesDockerAuthorizer

func GetBuildStagesDockerAuthorizer(projectTmpDir, pullUsernameOption, pullPasswordOption string) (*DockerAuthorizer, error)

func GetDockerAuthorizer

func GetDockerAuthorizer(projectTmpDir, username, password string) (*DockerAuthorizer, error)

func GetImagePublishDockerAuthorizer

func GetImagePublishDockerAuthorizer(projectTmpDir, pushUsernameOption, pushPasswordOption string) (*DockerAuthorizer, error)

func (*DockerAuthorizer) Login

func (a *DockerAuthorizer) Login(repo string) error

func (*DockerAuthorizer) LoginForPull

func (a *DockerAuthorizer) LoginForPull(repo string) error

func (*DockerAuthorizer) LoginForPush

func (a *DockerAuthorizer) LoginForPush(repo string) error

type DockerCredentials

type DockerCredentials struct {
	Username, Password string
}

Jump to

Keyboard shortcuts

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