Versions in this module Expand all Collapse all v3 v3.0.1 Aug 25, 2022 Changes in this version + var ErrTokenNotRecognized = errgo.New("discharge token not recognized") + func ConditionParser(check func(cond, arg string) ([]checkers.Caveat, error)) httpbakery.ThirdPartyCaveatCheckerP + func ConditionParserP(check func(cond, arg string) ([]checkers.Caveat, error)) httpbakery.ThirdPartyCaveatChecker + type Discharger struct + Checker httpbakery.ThirdPartyCaveatChecker + CheckerP httpbakery.ThirdPartyCaveatCheckerP + Key *bakery.KeyPair + Locator bakery.ThirdPartyLocator + Mux *httprouter.Router + func NewDischarger(locator bakery.ThirdPartyLocator) *Discharger + func (d *Discharger) AddHTTPHandlers(hs []httprequest.Handler) + func (d *Discharger) CheckThirdPartyCaveat(ctx context.Context, p httpbakery.ThirdPartyCaveatCheckerParams) ([]checkers.Caveat, error) + func (d *Discharger) Close() + func (d *Discharger) DischargeMacaroon(ctx context.Context, cav *bakery.ThirdPartyCaveatInfo, ...) (*bakery.Macaroon, error) + func (d *Discharger) Location() string + func (d *Discharger) ThirdPartyInfo(ctx context.Context, loc string) (bakery.ThirdPartyInfo, error) + type Rendezvous struct + func NewRendezvous() *Rendezvous + func (r *Rendezvous) Await(dischargeId string, timeout time.Duration) ([]checkers.Caveat, error) + func (r *Rendezvous) CheckToken(token *httpbakery.DischargeToken, cav *bakery.ThirdPartyCaveatInfo) ([]checkers.Caveat, error) + func (r *Rendezvous) DischargeComplete(dischargeId string, caveats []checkers.Caveat) + func (r *Rendezvous) DischargeFailed(dischargeId string, err error) + func (r *Rendezvous) DischargeToken(dischargeId string) *httpbakery.DischargeToken + func (r *Rendezvous) Info(dischargeId string) (*bakery.ThirdPartyCaveatInfo, bool) + func (r *Rendezvous) NewDischarge(cav *bakery.ThirdPartyCaveatInfo) string Other modules containing this package github.com/go-macaroon-bakery/macaroon-bakery