common

package
v0.0.0-...-63760f7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirName                = "aliased-profiles"
	StateFilename          = "state.json"
	ConfigFilename         = "config.tmpl"
	AWSConfigFilename      = "config"
	DefaultProfileTemplate = `` /* 384-byte string literal not displayed */

	AWSConfigDelimiter = "### ----- AWS Aliased Profiles -----"
)

Variables

This section is empty.

Functions

func CheckContext

func CheckContext(ctx context.Context) error

func ExitWithError

func ExitWithError(err error)

func GetAPPath

func GetAPPath(files ...string) string

func GetAWSPath

func GetAWSPath(files ...string) string

func NewCtx

func NewCtx() context.Context

func WriteAccountList

func WriteAccountList(al []*Account)

Types

type Account

type Account struct {
	// The unique identifier (ID) of the account.
	//
	// The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string
	// requires exactly 12 digits.
	Id string

	// The date the account became a part of the organization.
	JoinedTimestamp time.Time

	// The status of the account in the organization.
	Status string

	// Alias associated with the account.
	Alias string

	Tags []*Tag
}

func ReadAccountList

func ReadAccountList() (al []*Account)

func (*Account) HasTagKeyValue

func (a *Account) HasTagKeyValue(key, value string) bool

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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