login

package
v4.2.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 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 container image 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