entityruleengine

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	ComparisonInfo comparison.Comparison      `json:"comparisonInfo"` // Defines how the matching is actually performed: what and how are we comparing.  The actual set of fields and possible values of the **operator** field depend on the **type** of the comparison. \n\nFind the list of actual models in the description of the **type** field and check the description of the model you need.
	Key            condition.Key              `json:"key"`            // The key to identify the data we're matching.  The actual set of fields and possible values vary, depending on the **type** of the key.  Find the list of actual objects in the description of the **type** field.
	Unknowns       map[string]json.RawMessage `json:"-"`
}

Condition A condition defines how to execute matching logic for an entity.

func (*Condition) MarshalHCL

func (erec *Condition) MarshalHCL(properties hcl.Properties) error

func (*Condition) MarshalJSON

func (erec *Condition) MarshalJSON() ([]byte, error)

func (*Condition) Schema

func (erec *Condition) Schema() map[string]*schema.Schema

func (*Condition) UnmarshalHCL

func (erec *Condition) UnmarshalHCL(decoder hcl.Decoder) error

func (*Condition) UnmarshalJSON

func (erec *Condition) UnmarshalJSON(data []byte) error

func (*Condition) Validate

func (erec *Condition) Validate() []string

type Validator

type Validator interface {
	Validate() []string
}

Jump to

Keyboard shortcuts

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