authenticator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMFATokenNotANumber      = "MFA token should be a number"
	ErrMFATokenIncorrectLength = "MFA token should be six digits long"
)

Variables

This section is empty.

Functions

func ValidateMFATokenFormat

func ValidateMFATokenFormat(mfaToken string) error

Types

type Authenticator

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

func New

func New(stsClient *sts.STS, fileCoordinator *file_coordinator.Coordinator) (*Authenticator, error)

func (*Authenticator) AuthenticateUsingMFA

func (a *Authenticator) AuthenticateUsingMFA(mfaToken string) error

Jump to

Keyboard shortcuts

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