Versions in this module Expand all Collapse all v2-unstable v2.0.0 Oct 17, 2017 Changes in this version + const TraceBind + const TraceFail + const TraceHash + const TraceInvalid + const TraceMakeKey + func Base64Decode(data []byte) ([]byte, error) + type Caveat struct + Id []byte + Location string + VerificationId []byte + type Macaroon struct + func New(rootKey, id []byte, loc string, version Version) (*Macaroon, error) + func (m *Macaroon) AddFirstPartyCaveat(condition []byte) error + func (m *Macaroon) AddThirdPartyCaveat(rootKey, caveatId []byte, loc string) error + func (m *Macaroon) Bind(sig []byte) + func (m *Macaroon) Caveats() []Caveat + func (m *Macaroon) Clone() *Macaroon + func (m *Macaroon) Id() []byte + func (m *Macaroon) Location() string + func (m *Macaroon) MarshalBinary() ([]byte, error) + func (m *Macaroon) MarshalJSON() ([]byte, error) + func (m *Macaroon) SetLocation(loc string) + func (m *Macaroon) Signature() []byte + func (m *Macaroon) TraceVerify(rootKey []byte, discharges []*Macaroon) ([]Trace, error) + func (m *Macaroon) UnmarshalBinary(data []byte) error + func (m *Macaroon) UnmarshalJSON(data []byte) error + func (m *Macaroon) Verify(rootKey []byte, check func(caveat string) error, discharges []*Macaroon) error + func (m *Macaroon) VerifySignature(rootKey []byte, discharges []*Macaroon) ([]string, error) + func (m *Macaroon) Version() Version + type Slice []*Macaroon + func (s *Slice) UnmarshalBinary(data []byte) error + func (s Slice) MarshalBinary() ([]byte, error) + type Trace struct + Ops []TraceOp + RootKey []byte + func (t Trace) Results() [][]byte + type TraceOp struct + Data1 []byte + Data2 []byte + Kind TraceOpKind + func (op TraceOp) Result(input []byte) []byte + type TraceOpKind int + func (k TraceOpKind) String() string + type Version uint16 + const LatestVersion + const V1 + const V2 + func (v Version) String() string Other modules containing this package gopkg.in/macaroon.v1 gopkg.in/macaroon.v2