auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionCredentials

func NewSessionCredentials(username, secretKey, mfaToken string, duration time.Duration) (*sts.Credentials, error)

NewSessionCredentials creates time restrained credentials.

Types

type IAM

type IAM interface {
	ListAccessKeys(input *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error)
}

IAM interface holds required method signatures of IAM for easier test mocking

type STS

type STS interface {
	GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
	GetSessionToken(input *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error)
}

STS interface holds required method signatures of STS for easier test mocking

Jump to

Keyboard shortcuts

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