Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Implementations = []struct { Name Implementation Pkg Package }{{ Name: ImplGoV1, Pkg: goMacaroonV1Package{}, }, { Name: ImplGoV2, Pkg: goMacaroonV2Package{}, }, { Name: ImplLibMacaroons2, Pkg: libMacaroonsPkg{ // contains filtered or unexported fields }, }, { Name: ImplJSMacaroon, Pkg: jsMacaroonPkg{}, }, { Name: ImplPyMacaroons2, Pkg: pyMacaroonsPkg{ // contains filtered or unexported fields }, }, { Name: ImplPyMacaroons3, Pkg: pyMacaroonsPkg{ // contains filtered or unexported fields }, }}
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation string
const ( ImplGoV1 Implementation = "gov1" ImplGoV2 Implementation = "gov2" ImplLibMacaroons2 Implementation = "libmacaroons2" ImplJSMacaroon Implementation = "jsmacaroon" ImplPyMacaroons2 Implementation = "pymacaroons2" ImplPyMacaroons3 Implementation = "pymacaroons3" )
type Macaroon ¶
type Macaroon interface { MarshalJSON() ([]byte, error) MarshalBinary() ([]byte, error) WithFirstPartyCaveat(caveatId string) (Macaroon, error) WithThirdPartyCaveat(rootKey []byte, caveatId string, loc string) (Macaroon, error) Bind(primary Macaroon) (Macaroon, error) Verify(rootKey []byte, check Checker, discharges []Macaroon) error Signature() []byte }
Click to show internal directories.
Click to hide internal directories.