Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringMatch ¶
type StringMatch struct {
Exact string `yaml:"exact" jsonschema:"omitempty"`
Prefix string `yaml:"prefix" jsonschema:"omitempty"`
RegEx string `yaml:"regex" jsonschema:"omitempty,format=regexp"`
// contains filtered or unexported fields
}
StringMatch defines the match rule of a string
func (*StringMatch) Match ¶
func (sm *StringMatch) Match(value string) bool
Match matches a string to the pattern
func (StringMatch) Validate ¶
func (sm StringMatch) Validate() error
Validate validates the StringMatch object
type URLRule ¶
type URLRule struct {
Methods []string `yaml:"methods" jsonschema:"omitempty,uniqueItems=true,format=httpmethod-array"`
URL StringMatch `yaml:"url" jsonschema:"required"`
PolicyRef string `yaml:"policyRef" jsonschema:"omitempty"`
// contains filtered or unexported fields
}
URLRule defines the match rule of a http request
Click to show internal directories.
Click to hide internal directories.