Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionEvent ¶
type AdmissionEvent struct {
WebhookId string
ConfigurationId string
Review *v1.AdmissionReview
}
type AdmissionResponse ¶
type AdmissionResponse struct {
Allowed bool `json:"allowed"`
Message string `json:"message,omitempty"`
Warnings []string `json:"warnings,omitempty"`
Patch []byte `json:"patch,omitempty"`
}
func AdmissionResponseFromBytes ¶
func AdmissionResponseFromBytes(data []byte) (*AdmissionResponse, error)
func AdmissionResponseFromFile ¶
func AdmissionResponseFromFile(filePath string) (*AdmissionResponse, error)
func FromReader ¶
func FromReader(r io.Reader) (*AdmissionResponse, error)
func (*AdmissionResponse) Dump ¶
func (r *AdmissionResponse) Dump() string
Click to show internal directories.
Click to hide internal directories.