cli

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthGimmeAwsCreds

func AuthGimmeAwsCreds(profile Profile) error

AuthGimmeAwsCreds authenticates with gimme-aws-creds

func AuthVerify

func AuthVerify(enabled bool, profile Profile) error

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

func ConfigureExecCommand

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

func ExecCommand

func ExecCommand(input ExecCommandInput) error

Types

type Axolotl

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

func ConfigureGlobals

func ConfigureGlobals(app *kingpin.Application) *Axolotl

ConfigureGlobals sets up the global flags and returns the global config

func (*Axolotl) AwsCredentialsFile

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

func (*Axolotl) MustGetAWSProfileNames added in v1.0.9

func (a *Axolotl) MustGetAWSProfileNames() []string

MustGetAWSProfileNames returns a list of AWS profile names based on the contents of the local credentials file

func (*Axolotl) MustGetGACProfileNames added in v1.0.9

func (a *Axolotl) MustGetGACProfileNames() []string

MustGetGACProfileNames returns a list of gimme-aws-creds profile names

type ExecCommandInput

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

type Profile added in v1.0.9

type Profile struct {
	AWS           string // AWS profile name
	GimmeAWSCreds string // gimme-aws-creds profile name
}

Profile represents a profile mapping between AWS and gimme-aws-creds profiles

Jump to

Keyboard shortcuts

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