Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

type AuthOptions struct {
	Server      string
	CAFile      string
	InsecureTLS bool
	APIVersion  unversioned.GroupVersion

	// flags and printing helpers
	Username string
	Password string
	Project  string

	// infra
	StartingKubeConfig *kclientcmdapi.Config
	DefaultNamespace   string
	Config             *restclient.Config
	Reader             io.Reader
	Out                io.Writer
	Client             *client.Client
	KClient            kclient.Interface

	// cert data to be used when authenticating
	CertFile    string
	KeyFile     string
	Token       string
	PathOptions *kclientcmd.PathOptions
	ClientFn    func() (*client.Client, kclient.Interface, error)
}

=====================================

func (*AuthOptions) Complete

func (o *AuthOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error

func (*AuthOptions) GatherAuthInfo

func (o *AuthOptions) GatherAuthInfo() (string, error)

func (*AuthOptions) GatherProjectInfo

func (o *AuthOptions) GatherProjectInfo() (string, error)

Jump to

Keyboard shortcuts

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