login

package
v3.11.0-alpha.0+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command

New logs you in to a docker registry locally.

Types

type Credentials

type Credentials struct {
	Auth     []byte `json:"auth"`
	Username string `json:"-"`
	Password string `json:"-"`
}

func (Credentials) Empty

func (c Credentials) Empty() bool

type LoginOptions

type LoginOptions struct {
	ConfigFile      string
	Credentials     Credentials
	HostPort        string
	SkipCheck       bool
	CreateDirectory bool

	Out    io.Writer
	ErrOut io.Writer

	ServiceAccount string
}

func (*LoginOptions) Complete

func (o *LoginOptions) Complete(f *clientcmd.Factory, args []string) error

func (*LoginOptions) Run

func (o *LoginOptions) Run() error

func (*LoginOptions) Validate

func (o *LoginOptions) Validate() error

Jump to

Keyboard shortcuts

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