Documentation ¶
Index ¶
- func AllowedResponse() *admissionv1.AdmissionResponse
- func DeniedResponse(reason string, args ...interface{}) *admissionv1.AdmissionResponse
- type Validator
- func GetValidator(ctx context.Context, client kubernetes.Interface, ...) (Validator, error)
- func NewEventBusValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, ...) Validator
- func NewEventSourceValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, ...) Validator
- func NewSensorValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, ...) Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedResponse ¶
func AllowedResponse() *admissionv1.AdmissionResponse
AllowedResponse constructs an allowed AdmissionResonse
func DeniedResponse ¶
func DeniedResponse(reason string, args ...interface{}) *admissionv1.AdmissionResponse
DeniedResponse constructs a denied AdmissionResonse
Types ¶
type Validator ¶
type Validator interface { ValidateCreate(context.Context) *admissionv1.AdmissionResponse ValidateUpdate(context.Context) *admissionv1.AdmissionResponse }
Validator is an interface for CRD objects
func GetValidator ¶
func GetValidator(ctx context.Context, client kubernetes.Interface, aeClient eventsclient.ArgoprojV1alpha1Interface, kind metav1.GroupVersionKind, oldBytes []byte, newBytes []byte) (Validator, error)
GetValidator returns a Validator instance
func NewEventBusValidator ¶
func NewEventBusValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, esClient eventsclient.EventSourceInterface, sClient eventsclient.SensorInterface, old, new *v1alpha1.EventBus) Validator
NewEventBusValidator returns a validator for EventBus
func NewEventSourceValidator ¶
func NewEventSourceValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, esClient eventsclient.EventSourceInterface, sClient eventsclient.SensorInterface, old, new *v1alpha1.EventSource) Validator
NewEventSourceValidator returns a validator for EventSource
func NewSensorValidator ¶
func NewSensorValidator(client kubernetes.Interface, ebClient eventsclient.EventBusInterface, esClient eventsclient.EventSourceInterface, sClient eventsclient.SensorInterface, old, new *v1alpha1.Sensor) Validator
NewSensorValidator returns a validator for Sensor
Click to show internal directories.
Click to hide internal directories.