app

package
v0.0.0-...-4ef7734 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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