sts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 5 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
Package mock_stsiface is a generated GoMock package.
Package mock_stsiface is a generated GoMock package.

Jump to

Keyboard shortcuts

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