Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct {
Groups []Group `json:"groups"`
}
type Rule ¶
type Rule struct { ID int `json:"id"` Protocol string `json:"protocol"` // e.g. http, https HostRegexRaw string `json:"host"` HostRegex *regexp.Regexp `json:"-"` PathRegexRaw string `json:"-"` PathRegex *regexp.Regexp `json:"path"` Ports PortList `json:"ports"` }
func (Rule) MarshalJSON ¶
func (*Rule) UnmarshalJSON ¶
type Scope ¶
type Scope struct { // Include is a list of rules, which, if matched, will result in a request being included in the scope // An empty list will result in all requests being included, unless the Exclude list is used to exclude requests // ANY rule being matched will result in a request being included Include RuleSet `json:"include"` // the Exclude ruleset is used to exclude items that have previously been included // ANY rule being matched will result in a request being excluded Exclude RuleSet `json:"exclude"` }
type StructureNode ¶
type StructureNode struct { ID string `json:"id"` Name string `json:"name"` Children []StructureNode `json:"children"` }
func (*StructureNode) MarshalJSON ¶
func (t *StructureNode) MarshalJSON() ([]byte, error)
func (*StructureNode) Update ¶
func (t *StructureNode) Update(parts []string) bool
type Tree ¶
type Tree struct {
Root StructureNode `json:"root"`
}
func (*Tree) Structure ¶
func (t *Tree) Structure() []StructureNode
type Workspace ¶
type Workspace struct { ID string `json:"id"` Name string `json:"name"` Scope Scope `json:"scope"` InterceptionScope Scope `json:"interception_scope"` Collection Collection `json:"collection"` Tree Tree `json:"tree"` Workflows []workflow.WorkflowM `json:"workflows"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.