Documentation ¶
Overview ¶
Package auth contains functions for registering and logging in as developers, users, devices, etc.
Index ¶
- func LoginAsDev(t cbtest.T, provider provider.Config) *cb.DevClient
- func LoginAsDevE(t cbtest.T, provider provider.Config) (*cb.DevClient, error)
- func LoginAsDevice(t cbtest.T, provider provider.Config) *cb.DeviceClient
- func LoginAsDeviceE(t cbtest.T, provider provider.Config) (*cb.DeviceClient, error)
- func LoginAsUser(t cbtest.T, provider provider.Config) *cb.UserClient
- func LoginAsUserE(t cbtest.T, provider provider.Config) (*cb.UserClient, error)
- func LoginDev(t cbtest.T, provider provider.Config, email, password string) *cb.DevClient
- func LoginDevE(t cbtest.T, provider provider.Config, email, password string) (*cb.DevClient, error)
- func LoginDevice(t cbtest.T, provider provider.Config, name, activeKey string) *cb.DeviceClient
- func LoginDeviceE(t cbtest.T, provider provider.Config, name, activeKey string) (*cb.DeviceClient, error)
- func LoginUser(t cbtest.T, provider provider.Config, email, password string) *cb.UserClient
- func LoginUserE(t cbtest.T, provider provider.Config, email, password string) (*cb.UserClient, error)
- func RegisterDev(t cbtest.T, provider provider.Config, email, password string)
- func RegisterDevE(t cbtest.T, provider provider.Config, email, password string) error
- func RegisterDevice(t cbtest.T, provider provider.ConfigAndClient, name, activeKey string)
- func RegisterDeviceE(t cbtest.T, provider provider.ConfigAndClient, name, activeKey string) error
- func RegisterUser(t cbtest.T, provider provider.ConfigAndClient, email, password string)
- func RegisterUserE(t cbtest.T, provider provider.ConfigAndClient, email, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginAsDev ¶
LoginAsDev logs into the system as a Developer (given by config). Panics on failure.
func LoginAsDevE ¶
LoginAsDevE logs into the System as a Developer (given by config). Returns error on failure.
func LoginAsDevice ¶
LoginAsDevice logs into the system as a Device (given by config). Panics on failure.
func LoginAsDeviceE ¶
LoginAsDeviceE logs into the system as a Device (given by config). Returns error on failure.
func LoginAsUser ¶
LoginAsUser logs into the system as a User (given by config). Panics on failure.
func LoginAsUserE ¶
LoginAsUserE logs into the system as a User (given by config). Returns error on failure.
func LoginDevice ¶
LoginDevice logs into the system as an Device. Panics on error.
func LoginDeviceE ¶
func LoginDeviceE(t cbtest.T, provider provider.Config, name, activeKey string) (*cb.DeviceClient, error)
LoginDeviceE logs into the system as an Device. Returns error on failure.
func LoginUserE ¶
func LoginUserE(t cbtest.T, provider provider.Config, email, password string) (*cb.UserClient, error)
LoginUserE logs into the system as an User. Returns error on failure.
func RegisterDev ¶
RegisterDev registers the given developer into the platform given by the config. Panics on failure.
func RegisterDevE ¶
RegisterDevE registers the given developer into the platform given by the config. Returns error on failure.
func RegisterDevice ¶
func RegisterDevice(t cbtest.T, provider provider.ConfigAndClient, name, activeKey string)
RegisterDevice registers the given device into the system. Panics on failure.
func RegisterDeviceE ¶
RegisterDeviceE registers the given device into the system. Returns error on failure.
func RegisterUser ¶
func RegisterUser(t cbtest.T, provider provider.ConfigAndClient, email, password string)
RegisterUser registers the given user into the system given by the config. Panics on failure.
func RegisterUserE ¶
RegisterUserE registers the given user into the system given by the config. Returns error on failure.
Types ¶
This section is empty.