testutil

package
v0.0.0-...-3817507 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2016 License: MIT Imports: 8 Imported by: 0

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 NewConfig

func NewConfig() *config.Config

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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