awswrap

package
v0.0.0-...-6e5c2bb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAccountName = "dev"

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig struct {
	//Name string
	Profile   string
	AccountId string
	Region    string
	Endpoint  string
}

func (AwsConfig) GenerateConfig

func (a AwsConfig) GenerateConfig() aws.Config

GenerateConfig generates an AWS specific config

type AwsConfigManage

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

func (AwsConfigManage) GetAllOrgAccounts

func (c AwsConfigManage) GetAllOrgAccounts() ([]AwsConfig, error)

func (AwsConfigManage) GetDefaultConfig

func (c AwsConfigManage) GetDefaultConfig() (*AwsConfig, error)

type AwsConfigManager

type AwsConfigManager interface {
	GetDefaultConfig() (*AwsConfig, error)
	GetAllOrgAccounts() ([]AwsConfig, error)
}

func NewAwsConfigManage

func NewAwsConfigManage() (AwsConfigManager, error)

type AwsConfiger

type AwsConfiger interface {
	GenerateConfig() aws.Config
}

func NewAwsConfig

func NewAwsConfig(name, accountId, region string) AwsConfiger

type CfDescribeStacksPaginator

type CfDescribeStacksPaginator interface {
	HasMorePages() bool
	NextPage(ctx context.Context, optFns ...func(*cloudformation.Options)) (*cloudformation.DescribeStacksOutput, error)
}

type Iamer

type Iamer interface {
	iam.ListAccountAliasesAPIClient
}

type Orger

type Orger interface {
	organizations.ListAccountsAPIClient
}

type Stser

type Stser interface {
	GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
}

Jump to

Keyboard shortcuts

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