Documentation ¶
Index ¶
Constants ¶
View Source
const ( CavSFOMuseumTestIsUser = flyio_macaroon.CavMinUserRegisterable << iota CavSFOMuseumTestHasRole CavSFOMuseumTestDayOfWeek CavSFOMuseumEnsureAccount )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnsureAccountAccess ¶
type EnsureAccountAccess struct { flyio_macaroon.Access AccountId int64 Roles []string }
func (*EnsureAccountAccess) Now ¶
func (a *EnsureAccountAccess) Now() time.Time
func (*EnsureAccountAccess) Validate ¶
func (a *EnsureAccountAccess) Validate() error
type EnsureAccountCaveat ¶
type EnsureAccountCaveat struct { flyio_macaroon.Caveat AccountId int64 `json:"account_id"` RolesAny []string `json:"roles_any,omitempty"` RolesAll []string `json:"roles_all,omitempty"` }
func (*EnsureAccountCaveat) CaveatType ¶
func (c *EnsureAccountCaveat) CaveatType() flyio_macaroon.CaveatType
func (*EnsureAccountCaveat) Name ¶
func (c *EnsureAccountCaveat) Name() string
func (*EnsureAccountCaveat) Prohibits ¶
func (c *EnsureAccountCaveat) Prohibits(f flyio_macaroon.Access) error
Click to show internal directories.
Click to hide internal directories.