utils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEveryAccount added in v1.6.0

func ForEveryAccount[EachResult any, MergedResult any](
	accounts *AwsAccounts,
	mapper func(account *AwsAccount, ctx context.Context) (*EachResult, error),
	reducer func(merged MergedResult, eachResult EachResult) (MergedResult, error),
	startValue MergedResult,
	ctx context.Context,
) (MergedResult, error)

ForEveryAccount cannot be turned into an interface method because of generics restrictions.

func InitializeAwsAccountAccess

func InitializeAwsAccountAccess(specification extConfig.Specification)

func RegisterCommonDiscoveryHandlers

func RegisterCommonDiscoveryHandlers()

Types

type AwsAccount added in v1.6.0

type AwsAccount struct {
	AccountNumber string
	AwsConfig     aws.Config
}

type AwsAccounts added in v1.6.0

type AwsAccounts struct {
	// contains filtered or unexported fields
}
var (
	Accounts *AwsAccounts
)

func (*AwsAccounts) GetAccount added in v1.6.0

func (accounts *AwsAccounts) GetAccount(accountNumber string) (*AwsAccount, error)

type GetAccountApi added in v1.6.0

type GetAccountApi interface {
	GetAccount(accountNumber string) (*AwsAccount, error)
}

Jump to

Keyboard shortcuts

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