cmd

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// keep expected behavior pre-u2f with duo push
	DefaultMFADuoDevice = "phone1"
)

Variables

View Source
var (
	ErrCommandMissing              = errors.New("must specify command to run")
	ErrTooManyArguments            = errors.New("too many arguments")
	ErrTooFewArguments             = errors.New("too few arguments")
	ErrFailedToSetCredentials      = errors.New("failed to set credentials in your keyring")
	ErrFailedToValidateCredentials = errors.New("failed to validate credentials")
)

Errors returned from frontend commands

View Source
var RootCmd = &cobra.Command{
	Use:               "aws-okta",
	Short:             "aws-okta allows you to authenticate with AWS using your okta credentials",
	SilenceUsage:      true,
	SilenceErrors:     true,
	PersistentPreRunE: prerunE,
	PersistentPostRun: postrun,
}

RootCmd represents the base command when called without any subcommands

View Source
var Stdout bool

Stdout is the bool for -stdout

Functions

func Execute

func Execute(vers string, writeKey string)

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type MFAInputs added in v1.0.0

type MFAInputs struct {
	Label string
}

func (*MFAInputs) ChooseFactor added in v1.0.0

func (s *MFAInputs) ChooseFactor(factors []mfa.Config) (int, error)

func (*MFAInputs) CodeSupplier added in v1.0.0

func (s *MFAInputs) CodeSupplier(factor mfa.Config) (string, error)

type SAMLRoleChooser added in v1.0.0

type SAMLRoleChooser struct {
	Label string
}

func (*SAMLRoleChooser) ChooseRole added in v1.0.0

func (c *SAMLRoleChooser) ChooseRole(roles []provider.AssumableRole) (int, error)

Jump to

Keyboard shortcuts

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