Documentation ¶
Index ¶
- Variables
- func ForEachAdmission(config *options.Config, handler func(*AdmissionService) error) error
- func RegisterAdmission(service *AdmissionService) error
- func Serve(w io.Writer, r *http.Request, admit AdmitFunc)
- type AdmissionHandler
- type AdmissionService
- type AdmissionServiceConfig
- type AdmitFunc
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(config *options.Config, handler func(*AdmissionService) error) error
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 *whv1.ValidatingWebhookConfiguration MutatingConfig *whv1.MutatingWebhookConfiguration Config *AdmissionServiceConfig }
type AdmissionServiceConfig ¶
type AdmissionServiceConfig struct { SchedulerNames []string KubeClient kubernetes.Interface VolcanoClient versioned.Interface Recorder record.EventRecorder ConfigData *config.AdmissionConfiguration }
type AdmitFunc ¶
type AdmitFunc func(admissionv1.AdmissionReview) *admissionv1.AdmissionResponse
The AdmitFunc returns response.
Click to show internal directories.
Click to hide internal directories.