Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountManager ¶
type AccountManager struct { Provider core.Accountant // contains filtered or unexported fields }
AccountManager manages provider accounts and keeps the accounts file and local memory in sync
func AccountManagerFor ¶
func AccountManagerFor(file string, p core.Accountant) *AccountManager
AccountManagerFor returns an AccountManager for the given file and provider. File can be empty.
func (*AccountManager) Accounts ¶
func (m *AccountManager) Accounts() []core.Account
func (*AccountManager) AddAccount ¶
func (m *AccountManager) AddAccount(account core.Account)
AddAccount adds a record to the accounts file
func (*AccountManager) DisableAccount ¶
func (m *AccountManager) DisableAccount(id string) bool
DisableAccount disables an account from being used
func (*AccountManager) EnableAccount ¶
func (m *AccountManager) EnableAccount(id string) bool
EnableAccount enables an account
func (*AccountManager) Metadata ¶
func (m *AccountManager) Metadata() []*accinfo
Click to show internal directories.
Click to hide internal directories.