admission

package
v0.0.0-...-b5abb6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL