Documentation ¶
Index ¶
- Constants
- func Approved() *admv1.AdmissionResponse
- func GenericError(err error) *admv1.AdmissionResponse
- func Serve(w http.ResponseWriter, r *http.Request, admit admitFunc)
- func UnknownKindError(kind metav1.GroupVersionKind) *admv1.AdmissionResponse
- func UnmarsallError(raw []byte, t string, err error) *admv1.AdmissionResponse
- type Object
Constants ¶
View Source
const ( AdmissionKey = "admission-allow" AdmissionAllow = "true" )
Variables ¶
This section is empty.
Functions ¶
func Approved ¶
func Approved() *admv1.AdmissionResponse
func GenericError ¶
func GenericError(err error) *admv1.AdmissionResponse
func Serve ¶
func Serve(w http.ResponseWriter, r *http.Request, admit admitFunc)
Serve handles the http portion of a request prior to handing to an admit function
func UnknownKindError ¶
func UnknownKindError(kind metav1.GroupVersionKind) *admv1.AdmissionResponse
func UnmarsallError ¶
func UnmarsallError(raw []byte, t string, err error) *admv1.AdmissionResponse
Types ¶
type Object ¶
type Object struct {
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}
Click to show internal directories.
Click to hide internal directories.