Documentation ¶
Overview ¶
Package testutil provides a default Kontrol kites for using in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKiteKey ¶
func NewKiteKey() *jwt.Token
NewKiteKey returns a new generated kite key. (Copied and modified from kontrol.go) If the host does not have a kite.key file kite.New() panics. This is a helper to put a fake key on it's location.
func NewKiteKeyUsername ¶
func NewKiteKeyUsername(username string) *jwt.Token
NewKiteKeyUsername is like NewKiteKey() but it uses the given username instead of using the "testuser" name
func NewKiteKeyWithKeyPair ¶
func NewKiteKeyWithKeyPair(private, public string) *jwt.Token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.