Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APPLICATIONJSON = "application/json"
APPLICATIONJSON json content.
View Source
var CONTENTTYPE = "Content-Type"
CONTENTTYPE http content-type.
Functions ¶
func ForEachAdmission ¶
func ForEachAdmission(handler func(*AdmissionService))
func RegisterAdmission ¶
func RegisterAdmission(service *AdmissionService) error
Types ¶
type AdmissionHandler ¶
type AdmissionHandler func(w http.ResponseWriter, r *http.Request)
type AdmissionService ¶
type AdmissionService struct { Path string Func AdmitFunc Handler AdmissionHandler ValidatingConfig *whv1beta1.ValidatingWebhookConfiguration MutatingConfig *whv1beta1.MutatingWebhookConfiguration Config *AdmissionServiceConfig }
type AdmissionServiceConfig ¶
type AdmissionServiceConfig struct { SchedulerName string KubeClient kubernetes.Interface VolcanoClient versioned.Interface Recorder record.EventRecorder }
type AdmitFunc ¶
type AdmitFunc func(v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
The AdmitFunc returns response.
Click to show internal directories.
Click to hide internal directories.