Documentation
¶
Overview ¶
Package rules is guard/1's rules/1: the modes and classes of the protocol's table, a service's areas, and the document a stack's tool prints for the plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Area ¶
Area is a named set of paths. Nil Modes leaves the class table in charge, so a grant only adds; empty Modes closes the paths in every mode.
func Areas ¶
Areas are the defaults with the marker's agents.areas merged in: an area the marker names replaces the default of that name.
func (Area) MarshalJSON ¶
type Document ¶
type Mode ¶
type Mode struct {
Name string `yaml:"name" json:"name"`
Opens []string `yaml:"opens" json:"opens"`
Includes []string `yaml:"includes" json:"includes,omitempty"`
Offered *bool `yaml:"offered" json:"offered,omitempty"`
Allows string `yaml:"allows" json:"allows"`
Brief string `yaml:"brief" json:"brief"`
}
Click to show internal directories.
Click to hide internal directories.