Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendAdmissionReviewRequest ¶
func SendAdmissionReviewRequest(url string, admissionReviewReq admissionv1.AdmissionReview) (*admissionv1.AdmissionReview, error)
Types ¶
type AsyncAdmissionRequestSender ¶
type AsyncAdmissionRequestSender struct { Url string // contains filtered or unexported fields }
func (*AsyncAdmissionRequestSender) SendAdmissionReviewRequestAsync ¶
func (webhook *AsyncAdmissionRequestSender) SendAdmissionReviewRequestAsync(admissionReviewReq admissionv1.AdmissionReview) error
sending the request in a different go routine to avoid blocking of the main thread and to be able to react on the changes by the webhook
func (*AsyncAdmissionRequestSender) WaitAndReceiveResponseAsAdmissionReview ¶
func (webhook *AsyncAdmissionRequestSender) WaitAndReceiveResponseAsAdmissionReview() (admissionv1.AdmissionReview, error)
Click to show internal directories.
Click to hide internal directories.