Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAccountNotFound is returned when the name of an account is not found. ErrAccountNotFound = errors.New("Account not found") )
Functions ¶
This section is empty.
Types ¶
type AWSAccounts ¶
AWSAccounts allows to query account names given an account id.
func NewAWSAccounts ¶
func NewAWSAccounts(c Client, l log.Logger) *AWSAccounts
NewAWSAccounts returns an initialized instance of AWSAccounts service.
func (*AWSAccounts) AddName ¶
func (c *AWSAccounts) AddName(accID, name string) error
AddName adds a new account_id, name pair to the cache.
func (*AWSAccounts) Name ¶
func (c *AWSAccounts) Name(accID string) (string, error)
Name returns the name of an account given its ID.
func (*AWSAccounts) RefreshCache ¶
func (c *AWSAccounts) RefreshCache() error
RefreshCache refreshes all the entries in the cache.
Click to show internal directories.
Click to hide internal directories.