allowlist

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 RuleEnum

type RuleEnum string

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

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) 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) Schema

func (me *URLPattern) Schema() map[string]*schema.Schema

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) Schema

func (me *URLPatterns) Schema() map[string]*schema.Schema

func (*URLPatterns) UnmarshalHCL

func (me *URLPatterns) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL