Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomCheckInstanceModel ¶
type CustomCheckInstanceModel struct {
CheckName string `json:"-" yaml:"-"`
InstanceName string `json:"-" yaml:"-"`
Targets []KubernetesTarget `yaml:"targets"`
Clusters []string `yaml:"clusters"`
Parameters map[string]interface{} `yaml:"parameters"`
Output OutputModel `yaml:"output"`
}
CustomCheckInstanceModel is a model for the API endpoint to receive an Instance for a Custom Check in OPA
type CustomCheckModel ¶
type CustomCheckModel struct {
CheckName string `json:"-" yaml:"-"`
Version float32
Output OutputModel
Rego string
Instances []CustomCheckInstanceModel `json:"-" yaml:"-"`
}
CustomCheckModel is a model for the API endpoint to receive a Custom Check for OPA
type KubernetesTarget ¶
type KubernetesTarget struct {
APIGroups []string `json:"apiGroups" yaml:"apiGroups"`
Kinds []string `json:"kinds" yaml:"kinds"`
}
KubernetesTarget represents a set of API Versions and Kinds to find Kubernetes objects.
Click to show internal directories.
Click to hide internal directories.