Versions in this module Expand all Collapse all v0 v0.2.0 Nov 30, 2017 Changes in this version + var ErrInvalidToken = errors.New("invalid token") + var ErrNoToken = errors.New("no token") + func Localhost(ctx context.Context) bool + func Token(ctx context.Context) string + func X509Certs(ctx context.Context) []*x509.Certificate + type API struct + func NewAPI(tokens *accesstoken.CredentialStore) *API + func (a *API) Authenticate(req *http.Request) (*http.Request, error)