login

package
v3.11.0-0.6.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryLoginCmd

func NewRegistryLoginCmd(name string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *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
	Insecure        bool
	CreateDirectory bool

	ServiceAccount string

	genericclioptions.IOStreams
}

func NewRegistryLoginOptions

func NewRegistryLoginOptions(streams genericclioptions.IOStreams) *LoginOptions

func (*LoginOptions) Complete

func (o *LoginOptions) Complete(f kcmdutil.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