Documentation ¶
Overview ¶
Package tftarget is a constraint framework target for config-validator to use for integrating with the opa constraint framework.
Index ¶
- Constants
- Variables
- type TFTarget
- func (g *TFTarget) GetName() string
- func (g *TFTarget) HandleReview(obj interface{}) (bool, interface{}, error)
- func (g *TFTarget) HandleViolation(result *types.Result) error
- func (g *TFTarget) MatchSchema() apiextensions.JSONSchemaProps
- func (g *TFTarget) ProcessData(obj interface{}) (bool, []string, interface{}, error)
- func (g *TFTarget) ToMatcher(constraint *unstructured.Unstructured) (constraints.Matcher, error)
- func (g *TFTarget) ValidateConstraint(constraint *unstructured.Unstructured) error
Constants ¶
View Source
const Name = "validation.resourcechange.terraform.cloud.google.com"
Name is the target name for TFTarget
Variables ¶
View Source
var ErrInvalidAddress = fmt.Errorf("unexpected type of address in review object")
View Source
var ErrInvalidReview = fmt.Errorf("unexpected type of review, expect map[string]interface{}")
Functions ¶
This section is empty.
Types ¶
type TFTarget ¶
type TFTarget struct { }
TFTarget is the constraint framework target for config-validator
func (*TFTarget) HandleReview ¶
HandleReview implements handler.TargetHandler
func (*TFTarget) HandleViolation ¶
HandleViolation implements handler.TargetHandler
func (*TFTarget) MatchSchema ¶
func (g *TFTarget) MatchSchema() apiextensions.JSONSchemaProps
MatchSchema implements client.MatchSchemaProvider
func (*TFTarget) ProcessData ¶
ProcessData implements handler.TargetHandler
func (*TFTarget) ToMatcher ¶
func (g *TFTarget) ToMatcher(constraint *unstructured.Unstructured) (constraints.Matcher, error)
ToMatcher implements client.ToMatcher
func (*TFTarget) ValidateConstraint ¶
func (g *TFTarget) ValidateConstraint(constraint *unstructured.Unstructured) error
ValidateConstraint implements handler.TargetHandler
Click to show internal directories.
Click to hide internal directories.