kitekey

package
Version: 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: 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) (interface{}, 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.

Source Files

Jump to

Keyboard shortcuts

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