caveat

package
v0.0.0-...-eb10282 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFirstPartyCaveats

func AddFirstPartyCaveats(mac *macaroon.Macaroon, caveats []Caveat) error

func CheckIfConditionsMatchCaveats

func CheckIfConditionsMatchCaveats(caveats []Caveat, conditions []Caveat) bool

func EncodeCaveat

func EncodeCaveat(caveat Caveat) string

func VerifyCaveats

func VerifyCaveats(rawCaveats []string, conditions []Caveat) error

Types

type Caveat

type Caveat struct {
	Condition string
	Value     string
}

func DecodeCaveat

func DecodeCaveat(caveatString string) (Caveat, error)

func NewCaveat

func NewCaveat(condition string, value string) Caveat

Jump to

Keyboard shortcuts

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