Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Account string `json:"account"` Region string `json:"region"` Source string `json:"source"` Roles map[string]Role `json:"roles"` Tags Tags `json:"tags"` }
Account defines the spec for a role assumption target
type Cartogram ¶
type Cartogram []Account
Cartogram defines a set of Accounts
func (Cartogram) Search ¶
func (c Cartogram) Search(tfs TagFilterSet) Cartogram
Search finds accounts based on their tags
type Pack ¶
Pack defines a group of Cartograms
func (Pack) Search ¶
func (cp Pack) Search(tfs TagFilterSet) Cartogram
Search finds accounts based on their tags
type Role ¶
type Role struct {
Mfa bool `json:"mfa"`
}
Role holds information about authenticating to a role
type TagFilterSet ¶
type TagFilterSet []TagFilter
TagFilterSet describes a set of tag filters
func (*TagFilterSet) LoadFromArgs ¶
func (tfs *TagFilterSet) LoadFromArgs(args []string) error
LoadFromArgs parses key:value args into a TagFilterSet
func (TagFilterSet) Match ¶
func (tfs TagFilterSet) Match(a Account) bool
Match checks if an account matches the tag filter set
Click to show internal directories.
Click to hide internal directories.