caveats

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

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 (*EnsureAccountCaveat) Name

func (c *EnsureAccountCaveat) Name() string

func (*EnsureAccountCaveat) Prohibits

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL