Documentation ¶
Index ¶
- func Add(name string, manager manager.Manager, k8s *k8s.Interface, ...)
- type AdmissionReviewer
- type BaseStage
- type EndStage
- type 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
- type PatchOperation
- type Patcher
- type PatcherStage
- type RequestedObjectStage
- 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
- type ThenStage
- type WhenStage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdmissionReviewer ¶
type AdmissionReviewer struct { meta_api.GroupVersionKind *admission.Decoder *k8s.Interface logr.Logger Hook meta_api.ObjectMeta }
func NewAdmissionReviewer ¶
NewAdmissionReviewer allocate a reviewer for processing requested reviews
func (*AdmissionReviewer) InjectDecoder ¶
func (r *AdmissionReviewer) InjectDecoder(d *admission.Decoder) error
func (*AdmissionReviewer) PerformAdmissionReview ¶
func (r *AdmissionReviewer) PerformAdmissionReview(request *admission_api.AdmissionRequest) *admission_api.AdmissionResponse
PerformAdmissionReview : It generates the Adminission Review Response
type BaseStage ¶
func (*BaseStage) CanContinue ¶
type EndStage ¶
type EndStage struct {
*ThenStage
}
func (*EndStage) Response ¶
func (e *EndStage) Response() *admission_api.AdmissionResponse
type GivenStage ¶
type GivenStage struct { BaseStage *admission_api.AdmissionRequest }
func (*GivenStage) A ¶
func (g *GivenStage) A() *GivenStage
func (*GivenStage) An ¶
func (g *GivenStage) An() *GivenStage
func (*GivenStage) And ¶
func (g *GivenStage) And() *GivenStage
func (*GivenStage) End ¶
func (g *GivenStage) End() *GivenStage
func (*GivenStage) Group ¶
func (g *GivenStage) Group() *GivenStage
func (*GivenStage) Or ¶
func (g *GivenStage) Or() *GivenStage
func (*GivenStage) Request ¶
func (g *GivenStage) Request(request *admission_api.AdmissionRequest) *GivenStage
func (*GivenStage) RequestedObject ¶
func (g *GivenStage) RequestedObject() *RequestedObjectStage
func (*GivenStage) The ¶
func (g *GivenStage) The() *GivenStage
func (*GivenStage) When ¶
func (g *GivenStage) When(hook Hook) *WhenStage
type Hook ¶
type Hook interface {
Review(s *GivenStage) *WhenStage
}
type PatchOperation ¶
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
PatchOperation one patch step
type Patcher ¶
type Patcher interface {
Create() ([]PatchOperation, error)
}
Patcher generate patch given the context
type PatcherStage ¶
type PatcherStage struct {
*GivenStage
}
type RequestedObjectStage ¶
type RequestedObjectStage struct {
*GivenStage
}
func (*RequestedObjectStage) And ¶
func (s *RequestedObjectStage) And() *RequestedObjectStage
func (*RequestedObjectStage) End ¶
func (s *RequestedObjectStage) End() *GivenStage
func (*RequestedObjectStage) IsValid ¶
func (s *RequestedObjectStage) IsValid() *RequestedObjectStage
func (*RequestedObjectStage) NamespaceIsNot ¶
func (s *RequestedObjectStage) NamespaceIsNot(name string) *RequestedObjectStage
func (*RequestedObjectStage) Or ¶
func (s *RequestedObjectStage) Or() *RequestedObjectStage
func (*RequestedObjectStage) The ¶
func (s *RequestedObjectStage) The() *RequestedObjectStage
type ResponseType ¶
type ResponseType int8
type ThenStage ¶
type ThenStage struct {
*WhenStage
}
func (*ThenStage) ReturnThePatch ¶
func (*ThenStage) ReturnTheStatus ¶
Click to show internal directories.
Click to hide internal directories.