Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RuleEnums = struct { Equals RuleEnum Startswith RuleEnum }{ "equals", "startsWith", }
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
Allowlist URLPatterns `json:"allowlist,omitempty"` // List of URL pattern matchers
}
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
type URLPattern ¶
type URLPattern struct { Rule RuleEnum `json:"rule"` // Possible Values: `Equals`, `StartsWith` Template string `json:"template"` // Pattern }
func (*URLPattern) MarshalHCL ¶
func (me *URLPattern) MarshalHCL(properties hcl.Properties) error
func (*URLPattern) UnmarshalHCL ¶
func (me *URLPattern) UnmarshalHCL(decoder hcl.Decoder) error
type URLPatterns ¶
type URLPatterns []*URLPattern
func (URLPatterns) MarshalHCL ¶
func (me URLPatterns) MarshalHCL(properties hcl.Properties) error
func (*URLPatterns) UnmarshalHCL ¶
func (me *URLPatterns) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.