MCPcopy Index your code
hub / github.com/koding/kite / ReadKiteKey

Method ReadKiteKey

config/config.go:244–251  ·  view source on GitHub ↗

ReadKiteKey parsed the user's kite key and returns a new Config.

()

Source from the content-addressed store, hash-verified

242
243// ReadKiteKey parsed the user's kite key and returns a new Config.
244func (c *Config) ReadKiteKey() error {
245 key, err := kitekey.Parse()
246 if err != nil {
247 return err
248 }
249
250 return c.ReadToken(key)
251}
252
253// ReadToken reads Kite Claims from JWT token and uses them to initialize Config.
254func (c *Config) ReadToken(key *jwt.Token) error {

Callers 1

GetFunction · 0.80

Calls 1

ReadTokenMethod · 0.95

Tested by

no test coverage detected