kitekey

package
v0.0.0-...-2c249d0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package kitekey provides method for reading and writing kite.key file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKontrolKey

func GetKontrolKey(token *jwt.Token) ([]byte, error)

GetKontrolKey is used as key getter func for jwt.Parse() function.

func KiteHome

func KiteHome() (string, error)

KiteHome returns the home path of Kite directory. The returned value can be overriden by setting KITE_HOME environment variable.

func Parse

func Parse() (*jwt.Token, error)

Parse the kite.key file and return it as JWT token.

func Read

func Read() (string, error)

Read the contents of the kite.key file.

func Write

func Write(kiteKey string) error

Write over the kite.key file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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