login

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand creates a new command for executing a login

Types

type Options

type Options struct {
	// Config is the Optimize Configuration to modify
	Config *config.OptimizeConfig
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	// Environment overrides the default execution environment
	Environment string
	// Server overrides the default server identifier
	Server string
	// Issuer overrides the default authorization server issuer
	Issuer string
	// DisplayURL triggers a device authorization grant with a simple verification prompt
	DisplayURL bool
	// DisplayQR triggers a device authorization grant and uses a QR code for the verification prompt
	DisplayQR bool
	// Force allows an existing authorization to be overwritten
	Force bool
	// contains filtered or unexported fields
}

Options is the configuration for creating new authorization entries in a configuration

func (*Options) LoadConfig

func (o *Options) LoadConfig() error

LoadConfig is alternate configuration loader. This is a special case for the login command as it needs to inject new information into the configuration at load time.

Jump to

Keyboard shortcuts

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