Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2021 Changes in this version + func Add(name string, manager manager.Manager, k8s *k8s.Interface, ...) + type AdmissionReviewer struct + func NewAdmissionReviewer(hook Hook, k8s *k8s.Interface, logger logr.Logger) *AdmissionReviewer + func (r *AdmissionReviewer) InjectDecoder(d *admission.Decoder) error + func (r *AdmissionReviewer) PerformAdmissionReview(request *admission_api.AdmissionRequest) *admission_api.AdmissionResponse + type BaseStage struct + Error error + func (s *BaseStage) Allow(cause error) *BaseStage + func (s *BaseStage) CanContinue() bool + func (s *BaseStage) Fail(cause error) *BaseStage + func (s *BaseStage) JsonPatch() *BaseStage + type EndStage struct + func (e *EndStage) Response() *admission_api.AdmissionResponse + type GivenStage struct + func Given(logger logr.Logger, k8s *k8s.Interface) *GivenStage + func (g *GivenStage) A() *GivenStage + func (g *GivenStage) An() *GivenStage + func (g *GivenStage) And() *GivenStage + func (g *GivenStage) End() *GivenStage + func (g *GivenStage) Group() *GivenStage + func (g *GivenStage) Or() *GivenStage + func (g *GivenStage) Request(request *admission_api.AdmissionRequest) *GivenStage + func (g *GivenStage) RequestedObject() *RequestedObjectStage + func (g *GivenStage) The() *GivenStage + func (g *GivenStage) When(hook Hook) *WhenStage + type Hook interface + Review func(s *GivenStage) *WhenStage + type PatchOperation struct + Op string + Path string + Value interface{} + type Patcher interface + Create func() ([]PatchOperation, error) + type PatcherStage struct + type RequestedObjectStage struct + func (s *RequestedObjectStage) And() *RequestedObjectStage + func (s *RequestedObjectStage) End() *GivenStage + func (s *RequestedObjectStage) IsValid() *RequestedObjectStage + func (s *RequestedObjectStage) NamespaceIsNot(name string) *RequestedObjectStage + func (s *RequestedObjectStage) Or() *RequestedObjectStage + func (s *RequestedObjectStage) The() *RequestedObjectStage + type ResponseType int8 + type ThenStage struct + func (t *ThenStage) Can() *ThenStage + func (t *ThenStage) End() *EndStage + func (t *ThenStage) I() *ThenStage + func (t *ThenStage) OrElse() *ThenStage + func (t *ThenStage) ReturnThePatch() *ThenStage + func (t *ThenStage) ReturnTheStatus() *ThenStage + type WhenStage struct + Patch []PatchOperation + func (w *WhenStage) I() *WhenStage + func (w *WhenStage) PatchTheRequest() *WhenStage + func (w *WhenStage) Then() *ThenStage