Documentation ¶
Index ¶
- Constants
- Variables
- func IsWipeData(o interface{}) bool
- func WipeData() interface{}
- type AugmentedReview
- type AugmentedUnstructured
- type K8sValidationTarget
- func (h *K8sValidationTarget) GetCache() handler.Cache
- func (h *K8sValidationTarget) GetName() string
- func (h *K8sValidationTarget) HandleReview(obj interface{}) (bool, interface{}, error)
- func (h *K8sValidationTarget) MatchSchema() apiextensions.JSONSchemaProps
- func (h *K8sValidationTarget) ProcessData(obj interface{}) (bool, []string, interface{}, error)
- func (h *K8sValidationTarget) ToMatcher(u *unstructured.Unstructured) (constraints.Matcher, error)
- func (h *K8sValidationTarget) ValidateConstraint(u *unstructured.Unstructured) error
- type Matcher
Constants ¶
View Source
const Name = "admission.k8s.gatekeeper.sh"
Name is the name of Gatekeeper's Kubernetes validation target.
Variables ¶
View Source
var ( ErrCreatingMatcher = errors.New("unable to create matcher") ErrReviewFormat = errors.New("unsupported request review") ErrRequestObject = errors.New("invalid request object") ErrMatching = errors.New("error matching the requested object") ErrCachingType = errors.New("cannot cache non-namespace type") )
Functions ¶
func IsWipeData ¶
func IsWipeData(o interface{}) bool
Types ¶
type AugmentedReview ¶
type AugmentedReview struct { AdmissionRequest *admissionv1.AdmissionRequest Namespace *corev1.Namespace Source types.SourceType }
type AugmentedUnstructured ¶
type AugmentedUnstructured struct { Object unstructured.Unstructured Namespace *corev1.Namespace Source types.SourceType }
AugmentedUnstructured is an Object to review, and its Namespace (if known), and its source type.
type K8sValidationTarget ¶
type K8sValidationTarget struct {
// contains filtered or unexported fields
}
func (*K8sValidationTarget) GetCache ¶
func (h *K8sValidationTarget) GetCache() handler.Cache
func (*K8sValidationTarget) GetName ¶
func (h *K8sValidationTarget) GetName() string
func (*K8sValidationTarget) HandleReview ¶
func (h *K8sValidationTarget) HandleReview(obj interface{}) (bool, interface{}, error)
func (*K8sValidationTarget) MatchSchema ¶
func (h *K8sValidationTarget) MatchSchema() apiextensions.JSONSchemaProps
func (*K8sValidationTarget) ProcessData ¶
func (h *K8sValidationTarget) ProcessData(obj interface{}) (bool, []string, interface{}, error)
func (*K8sValidationTarget) ToMatcher ¶
func (h *K8sValidationTarget) ToMatcher(u *unstructured.Unstructured) (constraints.Matcher, error)
ToMatcher converts .spec.match in mutators to Matcher.
func (*K8sValidationTarget) ValidateConstraint ¶
func (h *K8sValidationTarget) ValidateConstraint(u *unstructured.Unstructured) error
Click to show internal directories.
Click to hide internal directories.