allowlist

package
v1.57.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Patterns = struct {
	Contains   Pattern
	Equals     Pattern
	Startswith Pattern
}{
	"CONTAINS",
	"EQUALS",
	"STARTSWITH",
}

Functions

This section is empty.

Types

type AllowRule

type AllowRule struct {
	Enabled   bool    `json:"enabled"`   // This setting is enabled (`true`) or disabled (`false`)
	MetricKey string  `json:"metricKey"` // Metric key
	Pattern   Pattern `json:"pattern"`   // Possible Values: `CONTAINS`, `EQUALS`, `STARTSWITH`
}

func (*AllowRule) MarshalHCL

func (me *AllowRule) MarshalHCL(properties hcl.Properties) error

func (*AllowRule) Schema

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

func (*AllowRule) UnmarshalHCL

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

type AllowRules

type AllowRules []*AllowRule

func (AllowRules) MarshalHCL

func (me AllowRules) MarshalHCL(properties hcl.Properties) error

func (*AllowRules) Schema

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

func (*AllowRules) UnmarshalHCL

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

type Pattern

type Pattern string

type Settings

type Settings struct {
	AllowRules AllowRules `json:"allowRules,omitempty"` // Specify rules for forwarding metrics
}

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

Jump to

Keyboard shortcuts

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