handler

package
v1.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package handler admission webhook handlers (hook.Handler) for various resource types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCronJobData

func FormatCronJobData(o *batchv1.CronJob, settings *config.Settings) types.ResourceTags

func FormatDaemonSetData

func FormatDaemonSetData(o *v1.DaemonSet, settings *config.Settings) types.ResourceTags

func FormatDeploymentData

func FormatDeploymentData(o *v1.Deployment, settings *config.Settings) types.ResourceTags

func FormatJobData

func FormatJobData(o *batchv1.Job, settings *config.Settings) types.ResourceTags

func FormatNamespaceData

func FormatNamespaceData(h *corev1.Namespace, settings *config.Settings) types.ResourceTags

func FormatNodeData

func FormatNodeData(o *corev1.Node, settings *config.Settings) types.ResourceTags

func FormatPodData

func FormatPodData(o *corev1.Pod, settings *config.Settings) types.ResourceTags

func FormatStatefulsetData

func FormatStatefulsetData(o *v1.StatefulSet, settings *config.Settings) types.ResourceTags

func NewCronJobHandler

func NewCronJobHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

func NewDaemonSetHandler

func NewDaemonSetHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error,
) hook.Handler

func NewDeploymentHandler

func NewDeploymentHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

NewDeploymentHandler creates a new instance of deployment validation hook

func NewJobHandler

func NewJobHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

func NewNamespaceHandler

func NewNamespaceHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

func NewNodeHandler

func NewNodeHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

func NewPodHandler

func NewPodHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

func NewStatefulsetHandler

func NewStatefulsetHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan<- error) hook.Handler

Types

type ConfigMapHandler

type ConfigMapHandler struct{} // &corev1.ConfigMap{}

type CronJobHandler

type CronJobHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*CronJobHandler) Create

func (h *CronJobHandler) Create() hook.AdmitFunc

func (*CronJobHandler) Update

func (h *CronJobHandler) Update() hook.AdmitFunc

type DaemonSetHandler

type DaemonSetHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*DaemonSetHandler) Create

func (h *DaemonSetHandler) Create() hook.AdmitFunc

func (*DaemonSetHandler) Update

func (h *DaemonSetHandler) Update() hook.AdmitFunc

type DeploymentHandler

type DeploymentHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*DeploymentHandler) Create

func (h *DeploymentHandler) Create() hook.AdmitFunc

func (*DeploymentHandler) Update

func (h *DeploymentHandler) Update() hook.AdmitFunc

type IngressHandler

type IngressHandler struct{} // &networkingv1.Ingress{}

type JobHandler

type JobHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*JobHandler) Create

func (h *JobHandler) Create() hook.AdmitFunc

func (*JobHandler) Update

func (h *JobHandler) Update() hook.AdmitFunc

type NamespaceHandler

type NamespaceHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*NamespaceHandler) Create

func (h *NamespaceHandler) Create() hook.AdmitFunc

func (*NamespaceHandler) Update

func (h *NamespaceHandler) Update() hook.AdmitFunc

type NodeHandler

type NodeHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*NodeHandler) Create

func (h *NodeHandler) Create() hook.AdmitFunc

func (*NodeHandler) Update

func (h *NodeHandler) Update() hook.AdmitFunc

type PersistentVolumeClaimHandler

type PersistentVolumeClaimHandler struct{} // &corev1.PersistentVolumeClaim{}

type PodHandler

type PodHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*PodHandler) Create

func (h *PodHandler) Create() hook.AdmitFunc

func (*PodHandler) Update

func (h *PodHandler) Update() hook.AdmitFunc

type ReplicaSetHandler

type ReplicaSetHandler struct{} // &appsv1.ReplicaSet{}

type ResourceQuotaHandler

type ResourceQuotaHandler struct{} // &corev1.ResourceQuota{}

type RoleBindingHandler

type RoleBindingHandler struct{} // &rbacv1.RoleBinding

type RoleHandler

type RoleHandler struct{} // &rbacv1.Role{}

type SecretHandler

type SecretHandler struct{} // &corev1.Secret{}

SecretHandler is primarily here for completeness; we are unlikely to support secrets.

type ServiceAccountHandler

type ServiceAccountHandler struct{} // &corev1.ServiceAccount{}

type ServiceHandler

type ServiceHandler struct{} // &corev1.Service{}

type StatefulSetHandler

type StatefulSetHandler struct {
	hook.Handler
	// contains filtered or unexported fields
}

func (*StatefulSetHandler) Create

func (h *StatefulSetHandler) Create() hook.AdmitFunc

func (*StatefulSetHandler) Update

func (h *StatefulSetHandler) Update() hook.AdmitFunc

Jump to

Keyboard shortcuts

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