webhooks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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