mfa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSDebugLogger

type AWSDebugLogger struct {
	// contains filtered or unexported fields
}

func NewAWSDebugLogger

func NewAWSDebugLogger(from *logrus.Entry) AWSDebugLogger

func (AWSDebugLogger) Log

func (l AWSDebugLogger) Log(args ...interface{})

type Config

type Config struct {
	Options Options

	Permanent ConfigValue
	Temporary ConfigValue

	CredentialsFile *ini.File
}

type ConfigValue

type ConfigValue struct {
	Profile string
	Section *ini.Section
}

type Options

type Options struct {
	CredentialsFileLocation string
	Profile                 string
	ProfileSuffix           string
	Duration                time.Duration
	MFASerial               string
	Force                   bool
	Verbose                 bool
}

func (Options) Validate

func (o Options) Validate() (*Config, error)

type Refresher

type Refresher struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewRefresher

func NewRefresher(c *Config) (*Refresher, error)

func (Refresher) Clear

func (r Refresher) Clear(removeMfa bool) error

func (Refresher) GetMFAToken

func (r Refresher) GetMFAToken() (string, error)

func (Refresher) Refresh

func (r Refresher) Refresh() error

func (Refresher) Save

func (r Refresher) Save(credentials *sts.Credentials) error

Jump to

Keyboard shortcuts

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