accountid

package
v5.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidAccountID

func IsInvalidAccountID(err error) bool

IsInvalidAccountID asserts invalidAccountIDError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type AccountID

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

func New

func New(config Config) (*AccountID, error)

func (*AccountID) Lookup

func (a *AccountID) Lookup() (string, error)

type Config

type Config struct {
	Logger micrologger.Logger
	STS    STS
}

type Interface

type Interface interface {
	Lookup() (string, error)
}

type STS

type STS interface {
	GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
}

Jump to

Keyboard shortcuts

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