Documentation ¶
Overview ¶
The checkers package provides some standard caveat checkers and checker-combining functions.
Index ¶
- Variables
- func FirstParty(condition string) bakery.Caveat
- func ParseCaveat(cav string) (string, string, error)
- func PushFirstPartyChecker(c0, c1 bakery.FirstPartyChecker) bakery.FirstPartyChecker
- func ThirdParty(location, condition string) bakery.Caveat
- func TimeBefore(t time.Time) bakery.Caveat
- type Map
Constants ¶
This section is empty.
Variables ¶
View Source
var Std = Map{ "time-before": bakery.FirstPartyCheckerFunc(timeBefore), }
Functions ¶
func FirstParty ¶
func ParseCaveat ¶
ParseCaveat parses a caveat into an identifier, identifying the checker that should be used, and the argument to the checker (the rest of the string).
The identifier is taken from all the characters before the first space character.
func PushFirstPartyChecker ¶
func PushFirstPartyChecker(c0, c1 bakery.FirstPartyChecker) bakery.FirstPartyChecker
PushFirstPartyChecker returns a checker that first uses c0 to check caveats, and falls back to using c1 if c0 returns bakery.ErrCaveatNotRecognized.
func ThirdParty ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.