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

auth

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 22 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

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

	// infra
	StartingKubeConfig *kclientcmdapi.Config
	DefaultNamespace   string
	Config             *rest.Config

	KubeClient    internalclientset.Interface
	ProjectClient projectinternalversion.ProjectInterface
	Reader        io.Reader
	Out           io.Writer

	// cert data to be used when authenticating
	CertFile       string
	KeyFile        string
	Token          string
	PathOptions    *kclientcmd.PathOptions
	CommandName    string
	RequestTimeout time.Duration
}

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

func (*AuthOptions) Complete

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

func (*AuthOptions) GatherAuthInfo

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

func (*AuthOptions) GatherProjectInfo

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

# Who Am I? # Which Project Am I in ? # Do I have permissions ? # This method needs a valid ClientConfig

Jump to

Keyboard shortcuts

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