sts

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAccountID

func ValidateAccountID(str string) bool

ValidateAccountID checks an account ID is valid

Types

type Service

type Service struct {
	STS stsiface.STSAPI
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(sts stsiface.STSAPI) *Service

NewService returns a new service given the api clients.

func (*Service) AccountID

func (s *Service) AccountID() (string, error)

AccountID gets the current account ID

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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