Documentation ¶
Overview ¶
Package webhooks contains types to make developing extensions easier.
Index ¶
Constants ¶
View Source
const ( // AuditTypeExec marks that an Auditer supports the AuditExec method. AuditTypeExec = "audit-exec" // AuditTypeCreated marks that an Auditer supports the AuditCreated method. AuditTypeCreated = "audit-created" // AuditTypeGranted marks that an Auditer supports the AuditGranted method. AuditTypeGranted = "audit-granted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditCreateData ¶
type AuditCreateData struct { Request *admissionv1.AdmissionRequest `json:"request"` AccessRequest accessrequestsv1.AccessRequest `json:"accessRequest"` }
type AuditExecData ¶
type AuditExecData struct { Request *admissionv1.AdmissionRequest `json:"request"` IsAllowed bool `json:"isAllowed"` ExecOptions *corev1.PodExecOptions `json:"execOptions"` IsAdmin bool `json:"isAdmin"` }
type AuditGrantData ¶
type AuditGrantData struct { Request *admissionv1.AdmissionRequest `json:"request"` AccessRequest *accessrequestsv1.AccessRequest `json:"accessRequest"` AccessGrant *accessrequestsv1.AccessGrant `json:"accessGrant"` }
type ValidateAccessRequestData ¶
type ValidateAccessRequestData struct { Request *admissionv1.AdmissionRequest AccessRequest *accessrequestsv1.AccessRequest }
type ValidationResult ¶
type ValidationResult struct { Status ValidationStatus `json:"status"` Message string `json:"message"` }
type ValidationStatus ¶
type ValidationStatus string
var ( Valid ValidationStatus = "valid" Invalid ValidationStatus = "invalid" )
Click to show internal directories.
Click to hide internal directories.