auth

package
v0.0.0-...-b93a6bd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package auth contains functions for registering and logging in as developers, users, devices, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAsDev

func LoginAsDev(t cbtest.T, provider provider.Config) *cb.DevClient

LoginAsDev logs into the system as a Developer (given by config). Panics on failure.

func LoginAsDevE

func LoginAsDevE(t cbtest.T, provider provider.Config) (*cb.DevClient, error)

LoginAsDevE logs into the System as a Developer (given by config). Returns error on failure.

func LoginAsDevice

func LoginAsDevice(t cbtest.T, provider provider.Config) *cb.DeviceClient

LoginAsDevice logs into the system as a Device (given by config). Panics on failure.

func LoginAsDeviceE

func LoginAsDeviceE(t cbtest.T, provider provider.Config) (*cb.DeviceClient, error)

LoginAsDeviceE logs into the system as a Device (given by config). Returns error on failure.

func LoginAsUser

func LoginAsUser(t cbtest.T, provider provider.Config) *cb.UserClient

LoginAsUser logs into the system as a User (given by config). Panics on failure.

func LoginAsUserE

func LoginAsUserE(t cbtest.T, provider provider.Config) (*cb.UserClient, error)

LoginAsUserE logs into the system as a User (given by config). Returns error on failure.

func LoginDev

func LoginDev(t cbtest.T, provider provider.Config, email, password string) *cb.DevClient

LoginDev logs into the platform as a developer. Panics on failure.

func LoginDevE

func LoginDevE(t cbtest.T, provider provider.Config, email, password string) (*cb.DevClient, error)

LoginDevE logs into the platform as a developer. Returns error on failure.

func LoginDevice

func LoginDevice(t cbtest.T, provider provider.Config, name, activeKey string) *cb.DeviceClient

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 LoginUser

func LoginUser(t cbtest.T, provider provider.Config, email, password string) *cb.UserClient

LoginUser logs into the system as an User. Panics on error.

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

func RegisterDev(t cbtest.T, provider provider.Config, email, password string)

RegisterDev registers the given developer into the platform given by the config. Panics on failure.

func RegisterDevE

func RegisterDevE(t cbtest.T, provider provider.Config, email, password string) error

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

func RegisterDeviceE(t cbtest.T, provider provider.ConfigAndClient, name, activeKey string) error

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

func RegisterUserE(t cbtest.T, provider provider.ConfigAndClient, email, password string) error

RegisterUserE registers the given user into the system given by the config. Returns error on failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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