Documentation ¶
Index ¶
- type Criterion
- type CriterionAttributes
- func (c CriterionAttributes) Equals() terra.ListValue[terra.StringValue]
- func (c CriterionAttributes) Field() terra.StringValue
- func (c CriterionAttributes) GreaterThan() terra.StringValue
- func (c CriterionAttributes) GreaterThanOrEqual() terra.StringValue
- func (c CriterionAttributes) InternalRef() (terra.Reference, error)
- func (c CriterionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c CriterionAttributes) InternalWithRef(ref terra.Reference) CriterionAttributes
- func (c CriterionAttributes) LessThan() terra.StringValue
- func (c CriterionAttributes) LessThanOrEqual() terra.StringValue
- func (c CriterionAttributes) NotEquals() terra.ListValue[terra.StringValue]
- type CriterionState
- type FindingCriteria
- type FindingCriteriaAttributes
- func (fc FindingCriteriaAttributes) Criterion() terra.SetValue[CriterionAttributes]
- func (fc FindingCriteriaAttributes) InternalRef() (terra.Reference, error)
- func (fc FindingCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fc FindingCriteriaAttributes) InternalWithRef(ref terra.Reference) FindingCriteriaAttributes
- type FindingCriteriaState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Criterion ¶
type Criterion struct { // Equals: list of string, optional Equals terra.ListValue[terra.StringValue] `hcl:"equals,attr"` // Field: string, required Field terra.StringValue `hcl:"field,attr" validate:"required"` // GreaterThan: string, optional GreaterThan terra.StringValue `hcl:"greater_than,attr"` // GreaterThanOrEqual: string, optional GreaterThanOrEqual terra.StringValue `hcl:"greater_than_or_equal,attr"` // LessThan: string, optional LessThan terra.StringValue `hcl:"less_than,attr"` // LessThanOrEqual: string, optional LessThanOrEqual terra.StringValue `hcl:"less_than_or_equal,attr"` // NotEquals: list of string, optional NotEquals terra.ListValue[terra.StringValue] `hcl:"not_equals,attr"` }
type CriterionAttributes ¶
type CriterionAttributes struct {
// contains filtered or unexported fields
}
func (CriterionAttributes) Equals ¶
func (c CriterionAttributes) Equals() terra.ListValue[terra.StringValue]
func (CriterionAttributes) Field ¶
func (c CriterionAttributes) Field() terra.StringValue
func (CriterionAttributes) GreaterThan ¶
func (c CriterionAttributes) GreaterThan() terra.StringValue
func (CriterionAttributes) GreaterThanOrEqual ¶
func (c CriterionAttributes) GreaterThanOrEqual() terra.StringValue
func (CriterionAttributes) InternalRef ¶
func (c CriterionAttributes) InternalRef() (terra.Reference, error)
func (CriterionAttributes) InternalTokens ¶
func (c CriterionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CriterionAttributes) InternalWithRef ¶
func (c CriterionAttributes) InternalWithRef(ref terra.Reference) CriterionAttributes
func (CriterionAttributes) LessThan ¶
func (c CriterionAttributes) LessThan() terra.StringValue
func (CriterionAttributes) LessThanOrEqual ¶
func (c CriterionAttributes) LessThanOrEqual() terra.StringValue
func (CriterionAttributes) NotEquals ¶
func (c CriterionAttributes) NotEquals() terra.ListValue[terra.StringValue]
type CriterionState ¶
type CriterionState struct { Equals []string `json:"equals"` Field string `json:"field"` GreaterThan string `json:"greater_than"` GreaterThanOrEqual string `json:"greater_than_or_equal"` LessThan string `json:"less_than"` LessThanOrEqual string `json:"less_than_or_equal"` NotEquals []string `json:"not_equals"` }
type FindingCriteria ¶
type FindingCriteria struct { // Criterion: min=1 Criterion []Criterion `hcl:"criterion,block" validate:"min=1"` }
type FindingCriteriaAttributes ¶
type FindingCriteriaAttributes struct {
// contains filtered or unexported fields
}
func (FindingCriteriaAttributes) Criterion ¶
func (fc FindingCriteriaAttributes) Criterion() terra.SetValue[CriterionAttributes]
func (FindingCriteriaAttributes) InternalRef ¶
func (fc FindingCriteriaAttributes) InternalRef() (terra.Reference, error)
func (FindingCriteriaAttributes) InternalTokens ¶
func (fc FindingCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
func (FindingCriteriaAttributes) InternalWithRef ¶
func (fc FindingCriteriaAttributes) InternalWithRef(ref terra.Reference) FindingCriteriaAttributes
type FindingCriteriaState ¶
type FindingCriteriaState struct {
Criterion []CriterionState `json:"criterion"`
}
Click to show internal directories.
Click to hide internal directories.