Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bakery ¶
type Bakery struct {
// contains filtered or unexported fields
}
Bakery is a biscuit factory. Datalog files (recipes) are grouped together by folder (cookbooks).
type Cookbook ¶
type Cookbook []*Recipe
Cookbook is a list of recipes.
type Recipe ¶
type Recipe struct { Name string Facts []biscuit.Fact Rules []biscuit.Rule Caveats []biscuit.Caveat }
Recipe is a collection of datalog objects. Think of it like a biscuit template, a cookie sheet if you will.
func NewRecipe ¶
NewRecipe loads a biscuit recipe with the given name from r. Recipes are Datalog files. Multiple Datalog statements may be separated via newline terminated semicolons.
func (*Recipe) Apply ¶
func (r *Recipe) Apply(b biscuit.Verifier)
Apply adds all of this recipe's facts, rules, and caveats to the given verifier.
func (*Recipe) Build ¶
Build adds all of this recipe's facts, rules, and caveats as authority data to the given builder.
func (*Recipe) BuildBlock ¶
BuildBlock adds all of this recipe's facts, rules, and caveats to the given block builder.