Documentation ¶
Index ¶
- type Controller
- func (ctl *Controller) AddUser(user *pmapi.User, addresses *pmapi.AddressList, password string, ...) error
- func (ctl *Controller) AddUserLabel(username string, label *pmapi.Label) error
- func (ctl *Controller) AddUserMessage(username string, message *pmapi.Message) (string, error)
- func (ctl *Controller) GetCalls(method, path string) [][]byte
- func (ctl *Controller) GetLabelIDs(username string, labelNames []string) ([]string, error)
- func (ctl *Controller) GetMessages(username, labelID string) ([]*pmapi.Message, error)
- func (ctl *Controller) PrintCalls()
- func (ctl *Controller) ReorderAddresses(user *pmapi.User, addressIDs []string) error
- func (ctl *Controller) TurnInternetConnectionOff()
- func (ctl *Controller) TurnInternetConnectionOn()
- func (ctl *Controller) WasCalled(method, path string, expectedRequest []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(app string) (*Controller, pmapi.Manager)
func (*Controller) AddUser ¶
func (ctl *Controller) AddUser(user *pmapi.User, addresses *pmapi.AddressList, password string, twoFAEnabled bool) error
func (*Controller) AddUserLabel ¶
func (ctl *Controller) AddUserLabel(username string, label *pmapi.Label) error
func (*Controller) AddUserMessage ¶
func (*Controller) GetCalls ¶
func (ctl *Controller) GetCalls(method, path string) [][]byte
func (*Controller) GetLabelIDs ¶
func (ctl *Controller) GetLabelIDs(username string, labelNames []string) ([]string, error)
func (*Controller) GetMessages ¶
func (ctl *Controller) GetMessages(username, labelID string) ([]*pmapi.Message, error)
func (*Controller) PrintCalls ¶
func (ctl *Controller) PrintCalls()
func (*Controller) ReorderAddresses ¶
func (ctl *Controller) ReorderAddresses(user *pmapi.User, addressIDs []string) error
func (*Controller) TurnInternetConnectionOff ¶
func (ctl *Controller) TurnInternetConnectionOff()
func (*Controller) TurnInternetConnectionOn ¶
func (ctl *Controller) TurnInternetConnectionOn()
Click to show internal directories.
Click to hide internal directories.