docker_authorizer

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 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 GetBPDockerAuthorizer

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

func GetBuildDockerAuthorizer

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

func GetCleanupDockerAuthorizer

func GetCleanupDockerAuthorizer(projectTmpDir, syncUsernameOption, syncPasswordOption, repo string) (*DockerAuthorizer, error)

func GetDeployDockerAuthorizer

func GetDeployDockerAuthorizer(projectTmpDir, usernameOption, passwordOption, repo string) (*DockerAuthorizer, error)

func GetFlushDockerAuthorizer

func GetFlushDockerAuthorizer(projectTmpDir, flushUsernameOption, flushPasswordOption string) (*DockerAuthorizer, error)

func GetPushDockerAuthorizer

func GetPushDockerAuthorizer(projectTmpDir, pushUsernameOption, pushPasswordOption, repo string) (*DockerAuthorizer, error)

func GetSyncDockerAuthorizer

func GetSyncDockerAuthorizer(projectTmpDir, syncUsernameOption, syncPasswordOption, repo 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