{"modulePath":"github.com/cloudzero/cloudzero-agent","version":"v1.1.0-rc-1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package handler\n\nPackage handler admission webhook handlers (hook.Handler) for various resource types.\n\n## Functions\n\n```go\nfunc FormatCronJobData(o *batchv1.CronJob, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatDaemonSetData(o *v1.DaemonSet, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatDeploymentData(o *v1.Deployment, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatJobData(o *batchv1.Job, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatNamespaceData(h *corev1.Namespace, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatNodeData(o *corev1.Node, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatPodData(o *corev1.Pod, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc FormatStatefulsetData(o *v1.StatefulSet, settings *config.Settings) types.ResourceTags\n```\n\n```go\nfunc NewCronJobHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n```go\nfunc NewDaemonSetHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error,\n) hook.Handler\n```\n\n```go\nfunc NewDeploymentHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\nNewDeploymentHandler creates a new instance of deployment validation hook\n\n```go\nfunc NewJobHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n```go\nfunc NewNamespaceHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n```go\nfunc NewNodeHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n```go\nfunc NewPodHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n```go\nfunc NewStatefulsetHandler(store types.ResourceStore, settings *config.Settings, clock types.TimeProvider, errChan chan\u003c- error) hook.Handler\n```\n\n## Types\n\n```go\ntype ConfigMapHandler struct{} // \u0026corev1.ConfigMap{}\n\n```\n\n```go\ntype CronJobHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *CronJobHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *CronJobHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype DaemonSetHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *DaemonSetHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *DaemonSetHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype DeploymentHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *DeploymentHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *DeploymentHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype IngressHandler struct{} // \u0026networkingv1.Ingress{}\n\n```\n\n```go\ntype JobHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *JobHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *JobHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype NamespaceHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *NamespaceHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *NamespaceHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype NodeHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *NodeHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *NodeHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype PersistentVolumeClaimHandler struct{} // \u0026corev1.PersistentVolumeClaim{}\n\n```\n\n```go\ntype PodHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *PodHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *PodHandler) Update() hook.AdmitFunc\n```\n\n```go\ntype ReplicaSetHandler struct{} // \u0026appsv1.ReplicaSet{}\n\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 ServiceHandler struct{} // \u0026corev1.Service{}\n\n```\n\n```go\ntype StatefulSetHandler struct {\n\thook.Handler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *StatefulSetHandler) Create() hook.AdmitFunc\n```\n\n```go\nfunc (h *StatefulSetHandler) Update() hook.AdmitFunc\n```\n\n","path":"github.com/cloudzero/cloudzero-agent/app/http/handler","name":"handler","synopsis":"Package handler admission webhook handlers (hook.Handler) for various resource types.","isRedistributable":true}
