MCPcopy Create free account
hub / github.com/koding/kite / NewKiteKey

Function NewKiteKey

testutil/testutil.go:20–22  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

18// kontrol.go) If the host does not have a kite.key file kite.New() panics.
19// This is a helper to put a fake key on it's location.
20func NewKiteKey() *jwt.Token {
21 return NewToken("", testkeys.Private, testkeys.Public)
22}
23
24// NewKiteKeyUsername is like NewKiteKey() but it uses the given username
25// instead of using the "testuser" name

Callers 1

NewConfigFunction · 0.85

Calls 1

NewTokenFunction · 0.85

Tested by

no test coverage detected