Versions in this module Expand all Collapse all v0 v0.20.0 Nov 12, 2019 Changes in this version + const TokenTimeout + var ErrAuthKeyNil = errors.New("token: AuthKey was nil") + var ErrAuthKeyNotECDSA = errors.New("token: AuthKey must be of type ecdsa.PrivateKey") + var ErrAuthKeyNotPem = errors.New("token: AuthKey must be a valid .p8 PEM file") + func AuthKeyFromBytes(bytes []byte) (*ecdsa.PrivateKey, error) + func AuthKeyFromFile(filename string) (*ecdsa.PrivateKey, error) + type Token struct + AuthKey *ecdsa.PrivateKey + Bearer string + IssuedAt int64 + KeyID string + TeamID string + func (t *Token) Expired() bool + func (t *Token) Generate() (bool, error) + func (t *Token) GenerateIfExpired()