cli

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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 *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) MustGetProfileNames

func (a *Axolotl) 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