accounts

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: CC0-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	AccountsInfo    string
	MgmtAccountID   string
	MasterAccountID string
	MasterRoleName  string
	TenantRoleName  string
	OrgUnits        []string
}

Options ... Options for Accounts() function

type Svc added in v0.1.2

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

Svc ... type for holding session/config and AWS services For unit testing, set the iamSvc, organizationsSvc and downloaderSvc to an iface mock svc client

func NewAccountsSvc added in v0.1.2

func NewAccountsSvc(cfg client.ConfigProvider) (as *Svc, err error)

NewAccountsSvc ... creates new Svc struct

func (*Svc) AccountsList added in v0.1.2

func (as *Svc) AccountsList(opt Options) ([]*organizations.Account, error)

AccountsList ... performs Queries or parses accounts and returns all organization accounts

Jump to

Keyboard shortcuts

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