{"modulePath":"github.com/cloudzero/cloudzero-agent","version":"v1.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package handler\n\nPackage handler admission webhook handlers (hook.Handler) for various resource types.\n\n## Variables\n\n```go\nvar (\n\tGatewayClassTotal = prometheus.NewCounterVec(\n\t\tprometheus.CounterOpts{\n\t\t\tName: types.ObservabilityMetric(\"gateway_types_total\"),\n\t\t\tHelp: \"Tracks the total number of gateway class events, categorized by name and controller.\",\n\t\t},\n\t\t[]string{\"name\", \"controller\"},\n\t)\n)\n```\n\n```go\nvar (\n\tIngressTypesTotal = prometheus.NewCounterVec(\n\t\tprometheus.CounterOpts{\n\t\t\tName: types.ObservabilityMetric(\"ingress_types_total\"),\n\t\t\tHelp: \"Tracks the total number of ingress class events, categorized by name and controller.\",\n\t\t},\n\t\t[]string{\"name\", \"controller\"},\n\t)\n)\n```\n\n```go\nvar (\n\tStorageInfoTotal = prometheus.NewCounterVec(\n\t\tprometheus.CounterOpts{\n\t\t\tName: types.ObservabilityMetric(\"storage_types_total\"),\n\t\t\tHelp: \"Tracks the total number of storage class events, categorized by name and provisioner.\",\n\t\t},\n\t\t[]string{\"name\", \"provisioner\"},\n\t)\n)\n```\n\n## Functions\n\n```go\nfunc FormatCronJobData(o *batchv1.CronJob, settings *config.Settings) types.ResourceTags\n```\nFormatCronJobData formats the data for a CronJob resource based on the provided settings.\n\n```go\nfunc NamespaceDataFormatter(accessor config.ConfigAccessor, obj metav1.Object) types.ResourceTags\n```\n\n```go\nfunc NewCronJobConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewCronJobHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewCronJobHandler creates a new webhook handler for Kubernetes CronJob resources. This handler is responsible for processing CronJob objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a CronJob resource, such as \\*batchv1.CronJob.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The CronJob resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for CronJob resources.\n\n```go\nfunc NewCustomResourceDefinitionConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewCustomResourceDefinitionHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewCustomResourceDefinitionHandler creates a new webhook handler for Kubernetes CustomResourceDefinition resources.\n\n```go\nfunc NewDaemonSetConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewDaemonSetHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewDaemonSetHandler creates a new webhook handler for Kubernetes DaemonSet resources. This handler is responsible for processing DaemonSet objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a DaemonSet resource, such as \\*appsv1.DaemonSet.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The DaemonSet resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for DaemonSet resources.\n\n```go\nfunc NewDeploymentConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewDeploymentHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewDeploymentHandler creates a new webhook handler for Kubernetes Deployment resources. This handler is responsible for processing Deployment objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a Deployment resource, such as \\*appsv1.Deployment.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The Deployment resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for Deployment resources.\n\n```go\nfunc NewGatewayClassConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewGatewayClassHandler(\n\tstore types.ResourceStore,\n\tsettings *config.Settings,\n\tclock types.TimeProvider,\n\tobjectType metav1.Object,\n) *hook.Handler\n```\n\n```go\nfunc NewGatewayConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewGatewayHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewGatewayHandler creates a new webhook handler for Kubernetes Gateway resources.\n\n```go\nfunc NewGenericHandler[T metav1.Object](\n\tstore types.ResourceStore,\n\tsettings *config.Settings,\n\tclock types.TimeProvider,\n\tobjTemplate metav1.Object,\n\taccessor config.ConfigAccessor,\n\tformatData DataFormatter,\n) *hook.Handler\n```\n\n```go\nfunc NewIngressClassConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewIngressClassHandler(\n\tstore types.ResourceStore,\n\tsettings *config.Settings,\n\tclock types.TimeProvider,\n\tobjectType metav1.Object,\n) *hook.Handler\n```\n\n```go\nfunc NewIngressConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewIngressHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewIngressHandler creates a new webhook handler for Kubernetes Ingress resources.\n\n```go\nfunc NewJobHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewJobHandler creates a new webhook handler for Kubernetes Job resources. This handler is responsible for processing Job objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a Job resource, such as \\*batchv1.Job.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The Job resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for Job resources.\n\n```go\nfunc NewNamespaceConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewNamespaceHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewNamespaceHandler creates a new webhook handler for Kubernetes Namespace resources. This handler is responsible for processing Namespace objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a Namespace resource, such as \\*corev1.Namespace.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The Namespace resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for Namespace resources.\n\n```go\nfunc NewNodeConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewNodeHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewNodeHandler creates a new webhook handler for Kubernetes Node resources. This handler processes Node objects and applies filters and transformations based on the provided settings.\n\n```go\nfunc NewPersistentVolumeClaimConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewPersistentVolumeClaimHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewPersistentVolumeClaimHandler creates a new webhook handler for Kubernetes PersistentVolumeClaim resources.\n\n```go\nfunc NewPersistentVolumeConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewPersistentVolumeHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewPersistentVolumeHandler creates a new webhook handler for Kubernetes PersistentVolume resources.\n\n```go\nfunc NewPodConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewPodHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\n\n```go\nfunc NewReplicaSetConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewReplicaSetHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewReplicaSetHandler creates a new webhook handler for Kubernetes ReplicaSet resources. This handler is responsible for processing ReplicaSet objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a ReplicaSet resource, such as \\*apps/v1.ReplicaSet.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The ReplicaSet resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for ReplicaSet resources.\n\n```go\nfunc NewServiceConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewServiceHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewServiceHandler creates a new webhook handler for Kubernetes Service resources. This handler is responsible for processing Service objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a Service resource, such as \\*corev1.Service.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The Service resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for Service resources.\n\n```go\nfunc NewStatefulSetConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewStatefulSetHandler[T metav1.Object](store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, resource T) *hook.Handler\n```\nNewStatefulSetHandler creates a new webhook handler for Kubernetes StatefulSet resources. This handler is responsible for processing StatefulSet objects and applying the necessary filters and transformations based on the provided settings.\n\nType Parameter:\n\n  - T: The type of the Kubernetes resource, which must implement the metav1.Object interface. For this handler, it should be a StatefulSet resource, such as \\*apps/v1.StatefulSet, \\*apps/v1beta2.StatefulSet, or \\*apps/v1beta1.StatefulSet.\n\nParameters:\n\n  - store: A ResourceStore instance used to manage the state of resources.\n  - settings: A pointer to the configuration settings that define filters and other options.\n  - clock: A TimeProvider instance used for time-related operations.\n  - resource: The StatefulSet resource to be processed by the handler.\n\nReturns:\n\n  - A pointer to a hook.Handler configured for StatefulSet resources.\n\n```go\nfunc NewStorageClassConfigAccessor(settings *config.Settings) config.ConfigAccessor\n```\n\n```go\nfunc NewStorageClassHandler(\n\tstore types.ResourceStore,\n\tsettings *config.Settings,\n\tclock types.TimeProvider,\n\tobjTemplate metav1.Object,\n) *hook.Handler\n```\n\n```go\nfunc NodeDataFormatter(accessor config.ConfigAccessor, obj metav1.Object) types.ResourceTags\n```\n\n```go\nfunc PodDataFormatter(accessor config.ConfigAccessor, obj metav1.Object) types.ResourceTags\n```\n\n```go\nfunc WorkloadDataFormatter(accessor config.ConfigAccessor, obj metav1.Object) types.ResourceTags\n```\n\n## Types\n\n```go\ntype ConfigMapHandler struct{} // \u0026corev1.ConfigMap{}\n\n```\n\n```go\ntype CronJobConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *CronJobConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (c *CronJobConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (c *CronJobConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (c *CronJobConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (c *CronJobConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (c *CronJobConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype CustomResourceDefinitionConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (c *CustomResourceDefinitionConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype DaemonSetConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (d *DaemonSetConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype DataFormatter func(accessor config.ConfigAccessor, obj metav1.Object) types.ResourceTags\n```\n\n```go\ntype DeploymentConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (d *DeploymentConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype GatewayClassConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (g *GatewayClassConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype GatewayClassHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *GatewayClassHandler) Connect() hook.AdmitFunc\n```\n\n```go\nfunc (h *GatewayClassHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *GatewayClassHandler) Delete() hook.AdmitFunc\n```\n\n```go\nfunc (h *GatewayClassHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype GatewayConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (g *GatewayConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (g *GatewayConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (g *GatewayConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (g *GatewayConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (g *GatewayConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (g *GatewayConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype GenericHandler[T metav1.Object] struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *GenericHandler[T]) Connect() hook.AdmitFunc\n```\n\n```go\nfunc (h *GenericHandler[T]) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *GenericHandler[T]) Delete() hook.AdmitFunc\n```\n\n```go\nfunc (h *GenericHandler[T]) Update() hook.AdmitFunc\n```\n\n```go\ntype IngressClassConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (i *IngressClassConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype IngressClassHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *IngressClassHandler) Connect() hook.AdmitFunc\n```\n\n```go\nfunc (h *IngressClassHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *IngressClassHandler) Delete() hook.AdmitFunc\n```\n\n```go\nfunc (h *IngressClassHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype IngressConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (i *IngressConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (i *IngressConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (i *IngressConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (i *IngressConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (i *IngressConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (i *IngressConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype JobConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewJobConfigAccessor(settings *config.Settings) *JobConfigAccessor\n```\n\n```go\nfunc (j *JobConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (j *JobConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (j *JobConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (j *JobConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (j *JobConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (j *JobConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype NamespaceConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (n *NamespaceConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype NodeConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (n *NodeConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (n *NodeConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (n *NodeConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (n *NodeConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (n *NodeConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype PersistentVolumeClaimConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (p *PersistentVolumeClaimConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype PersistentVolumeConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (p *PersistentVolumeConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype PodConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PodConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (p *PodConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (p *PodConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (p *PodConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (p *PodConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (p *PodConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype ReplicaSetConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (r *ReplicaSetConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype ResourceQuotaHandler struct{} // \u0026corev1.ResourceQuota{}\n\n```\n\n```go\ntype RoleBindingHandler struct{} // \u0026rbacv1.RoleBinding\n\n```\n\n```go\ntype RoleHandler struct{} // \u0026rbacv1.Role{}\n\n```\n\n```go\ntype SecretHandler struct{} // \u0026corev1.Secret{}\n\n```\nSecretHandler is primarily here for completeness; we are unlikely to support secrets.\n\n```go\ntype ServiceAccountHandler struct{} // \u0026corev1.ServiceAccount{}\n\n```\n\n```go\ntype ServiceConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *ServiceConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (s *ServiceConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (s *ServiceConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (s *ServiceConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (s *ServiceConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (s *ServiceConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype StatefulSetConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (s *StatefulSetConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype StorageClassConfigAccessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) AnnotationsEnabled() bool\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) AnnotationsEnabledForType() bool\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) LabelsEnabled() bool\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) LabelsEnabledForType() bool\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) ResourceType() config.ResourceType\n```\n\n```go\nfunc (s *StorageClassConfigAccessor) Settings() *config.Settings\n```\n\n```go\ntype StorageClassHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *StorageClassHandler) Connect() hook.AdmitFunc\n```\n\n```go\nfunc (h *StorageClassHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *StorageClassHandler) Delete() hook.AdmitFunc\n```\n\n```go\nfunc (h *StorageClassHandler) Update() hook.AdmitFunc\n```\n\n","path":"github.com/cloudzero/cloudzero-agent/app/domain/webhook/handler","name":"handler","synopsis":"Package handler admission webhook handlers (hook.Handler) for various resource types.","isRedistributable":true}
