Versions in this module Expand all Collapse all v3 v3.0.2 Jul 12, 2024 v3.0.1 Aug 25, 2022 Changes in this version + const Everyone + var ClosedAuthorizer closedAuthorizer + var LoginOp = bakery.Op + var OpenAuthorizer openAuthorizer + type ACLAuthorizer struct + GetACL func(ctx context.Context, op bakery.Op) (acl []string, allowPublic bool, err error) + func (a ACLAuthorizer) Authorize(ctx context.Context, ident Identity, ops []bakery.Op) (allowed []bool, caveats []checkers.Caveat, err error) + type ACLIdentity interface + Allow func(ctx context.Context, acl []string) (bool, error) + type AuthChecker struct + func (c *AuthChecker) Allow(ctx context.Context, ops ...bakery.Op) (*AuthInfo, error) + type AuthInfo struct + Identity Identity + type Authorizer interface + Authorize func(ctx context.Context, id Identity, ops []bakery.Op) (allowed []bool, caveats []checkers.Caveat, err error) + type AuthorizerFunc func(ctx context.Context, id Identity, op bakery.Op) (bool, []checkers.Caveat, error) + func (f AuthorizerFunc) Authorize(ctx context.Context, id Identity, ops []bakery.Op) (allowed []bool, caveats []checkers.Caveat, err error) + type Bakery struct + Checker *Checker + Oven *bakery.Oven + func NewBakery(p BakeryParams) *Bakery + type BakeryParams struct + Authorizer Authorizer + Checker bakery.FirstPartyCaveatChecker + IdentityClient IdentityClient + Key *bakery.KeyPair + Location string + Locator bakery.ThirdPartyLocator + Logger bakery.Logger + RootKeyStore bakery.RootKeyStore + type Checker struct + func NewChecker(p CheckerParams) *Checker + func (c *Checker) Auth(mss ...macaroon.Slice) *AuthChecker + func (c *Checker) Namespace() *checkers.Namespace + type CheckerParams struct + Authorizer Authorizer + Checker bakery.FirstPartyCaveatChecker + IdentityClient IdentityClient + Logger bakery.Logger + MacaroonVerifier bakery.MacaroonVerifier + OpsAuthorizer bakery.OpsAuthorizer + type Identity interface + Domain func() string + Id func() string + type IdentityClient interface + DeclaredIdentity func(ctx context.Context, declared map[string]string) (Identity, error) + IdentityFromContext func(ctx context.Context) (Identity, []checkers.Caveat, error) + type SimpleIdentity string + func (SimpleIdentity) Domain() string + func (id SimpleIdentity) Allow(ctx context.Context, acl []string) (bool, error) + func (id SimpleIdentity) Id() string Other modules containing this package github.com/go-macaroon-bakery/macaroon-bakery