testauth

package
v0.0.0-...-6907ca9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmin

func NewAdmin() *auth.User

NewAdmin returns a non-persisted admin user with "fake" as password

func NewAdminAuth

func NewAdminAuth() (*auth.User, *auth.Session)

NewAdminAuth creates a new non-persisted admin and their session

func NewAuth

func NewAuth() (*auth.User, *auth.Session)

NewAuth creates a non-persisted user and their session

func NewPersistedAdminAuth

func NewPersistedAdminAuth(t *testing.T, q db.Queryable) (*auth.User, *auth.Session)

NewPersistedAdminAuth creates a new admin and their session

func NewPersistedAuth

func NewPersistedAuth(t *testing.T, q db.Queryable) (*auth.User, *auth.Session)

NewPersistedAuth creates a persisted new user and their session

func NewPersistedSession

func NewPersistedSession(t *testing.T, q db.Queryable, user *auth.User) *auth.Session

NewPersistedSession creates and persists a new session for the given user

func NewPersistedUser

func NewPersistedUser(t *testing.T, q db.Queryable, u *auth.User) *auth.User

NewPersistedUser creates and persists a new user with "fake" as password

func NewSession

func NewSession(user *auth.User) *auth.Session

NewSession creates a non-persisted session for the given user

func NewUser

func NewUser() *auth.User

NewUser returns a non-persisted user with "fake" as password

Types

This section is empty.

Jump to

Keyboard shortcuts

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