ymlparser

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteOrgFile

func WriteOrgFile(filepath, masterAccountID string, accounts []*organizations.Account) error

Types

type Account

type Account struct {
	Email          string   `yaml:"Email"`
	AccountName    string   `yaml:"AccountName"`
	State          string   `yaml:"State,omitempty"`
	AccountID      string   `yaml:"AccountID,omitempty"`
	AssumeRoleName string   `yaml:"AssumeRoleName,omitempty"`
	Tags           []string `yaml:"Tags,omitempty"`
}

func (Account) AssumeRoleARN

func (a Account) AssumeRoleARN() string

type Organization

type Organization struct {
	ManagementAccount Account   `yaml:"ManagementAccount"`
	ChildAccounts     []Account `yaml:"ChildAccounts"`
}

func ParseOrganization

func ParseOrganization(filepath string) (Organization, error)

We parse it and assume that the file is in the current directory

func ParseOrganizationIfExists

func ParseOrganizationIfExists(filepath string) (Organization, error)

Jump to

Keyboard shortcuts

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