Documentation ¶
Index ¶
- func GetPolicies(request *admissionv1.AdmissionRequest) (kyverno.PolicyInterface, kyverno.PolicyInterface, error)
- func GetPolicy(request *admissionv1.AdmissionRequest) (kyverno.PolicyInterface, error)
- func GetResourceName(request *admissionv1.AdmissionRequest) string
- func Response(allowed bool) *admissionv1.AdmissionResponse
- func ResponseFailure(allowed bool, msg string) *admissionv1.AdmissionResponse
- func ResponseStatus(allowed bool, status, msg string) *admissionv1.AdmissionResponse
- func ResponseSuccess(allowed bool, msg string) *admissionv1.AdmissionResponse
- func ResponseSuccessWithPatch(allowed bool, msg string, patch []byte) *admissionv1.AdmissionResponse
- func ResponseWithMessage(allowed bool, msg string) *admissionv1.AdmissionResponse
- func ResponseWithMessageAndPatch(allowed bool, msg string, patch []byte) *admissionv1.AdmissionResponse
- func UnmarshalPolicy(kind string, raw []byte) (kyverno.PolicyInterface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicies ¶
func GetPolicies(request *admissionv1.AdmissionRequest) (kyverno.PolicyInterface, kyverno.PolicyInterface, error)
func GetPolicy ¶
func GetPolicy(request *admissionv1.AdmissionRequest) (kyverno.PolicyInterface, error)
func GetResourceName ¶
func GetResourceName(request *admissionv1.AdmissionRequest) string
func Response ¶
func Response(allowed bool) *admissionv1.AdmissionResponse
func ResponseFailure ¶
func ResponseFailure(allowed bool, msg string) *admissionv1.AdmissionResponse
func ResponseStatus ¶
func ResponseStatus(allowed bool, status, msg string) *admissionv1.AdmissionResponse
func ResponseSuccess ¶
func ResponseSuccess(allowed bool, msg string) *admissionv1.AdmissionResponse
func ResponseSuccessWithPatch ¶
func ResponseSuccessWithPatch(allowed bool, msg string, patch []byte) *admissionv1.AdmissionResponse
func ResponseWithMessage ¶
func ResponseWithMessage(allowed bool, msg string) *admissionv1.AdmissionResponse
func ResponseWithMessageAndPatch ¶
func ResponseWithMessageAndPatch(allowed bool, msg string, patch []byte) *admissionv1.AdmissionResponse
func UnmarshalPolicy ¶
func UnmarshalPolicy(kind string, raw []byte) (kyverno.PolicyInterface, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.