custominjectionrules

package
v1.63.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Operators = struct {
	Allpages Operator
	Contains Operator
	Ends     Operator
	Equals   Operator
	Starts   Operator
}{
	"AllPages",
	"Contains",
	"Ends",
	"Equals",
	"Starts",
}
View Source
var Rules = struct {
	Afterspecifichtml  Rule
	Automatic          Rule
	Beforespecifichtml Rule
	Donotinject        Rule
}{
	"AfterSpecificHtml",
	"Automatic",
	"BeforeSpecificHtml",
	"DoNotInject",
}

Functions

This section is empty.

Types

type Operator

type Operator string

type Rule

type Rule string

type Settings

type Settings struct {
	ApplicationID string   `json:"-" scope:"applicationId"` // The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
	Enabled       bool     `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
	HtmlPattern   *string  `json:"htmlPattern,omitempty"`
	Operator      Operator `json:"operator"`             // Possible Values: `AllPages`, `Contains`, `Ends`, `Equals`, `Starts`
	Rule          Rule     `json:"rule"`                 // Possible Values: `AfterSpecificHtml`, `Automatic`, `BeforeSpecificHtml`, `DoNotInject`
	UrlPattern    *string  `json:"urlPattern,omitempty"` // URL pattern
	InsertAfter   string   `json:"-"`
}

func (*Settings) HandlePreconditions

func (me *Settings) HandlePreconditions() error

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