cli

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthGimmeAwsCreds

func AuthGimmeAwsCreds() error

AuthGimmeAwsCreds authenticates with gimme-aws-creds

func AuthVerify

func AuthVerify(enabled bool, profileName string) error

AuthVerify checks if the user is authenticated and if not authenticates with gimme-aws-creds

func ConfigureExecCommand

func ConfigureExecCommand(app *kingpin.Application, a *Awswitch)

func ExecCommand

func ExecCommand(input ExecCommandInput) error

Types

type Awswitch

type Awswitch struct {
	Debug bool
	// contains filtered or unexported fields
}

func ConfigureGlobals

func ConfigureGlobals(app *kingpin.Application) *Awswitch

ConfigureGlobals sets up the global flags and returns the global config

func (*Awswitch) AwsCredentialsFile added in v1.0.2

func (a *Awswitch) AwsCredentialsFile() (*vault.CredentialsFile, error)

func (*Awswitch) MustGetProfileNames

func (a *Awswitch) MustGetProfileNames() []string

type ExecCommandInput

type ExecCommandInput struct {
	ProfileName string
	Region      string
	Command     string
	Args        []string
	Verify      bool
}

Jump to

Keyboard shortcuts

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