{"modulePath":"github.com/tensorbytes/simplescale","version":"v0.0.0-20220413133528-76698d7624e7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package webhook\n\n## Functions\n\n```go\nfunc GenCacheKey(kind, name, namespace string) string\n```\n\n## Types\n\n```go\ntype ScaleMutatingHandler struct {\n\tClient runtimeclient.Client\n\n\t// Decoder decodes objects\n\tDecoder *kubeadmission.Decoder\n\n\t// cache for the resource\n\tCacheResource *sync.Map\n\n\tCtx context.Context\n\t// contains filtered or unexported fields\n}\n```\nMutatingHandler handles Component\n\n```go\nfunc NewScaleMutatingHandler() (h *ScaleMutatingHandler, err error)\n```\n\n```go\nfunc (h *ScaleMutatingHandler) Close()\n```\n\n```go\nfunc (h *ScaleMutatingHandler) Handle(ctx context.Context, req kubeadmission.Request) kubeadmission.Response\n```\nHandle handles admission requests.\n\n```go\nfunc (h *ScaleMutatingHandler) Sync()\n```\n\n```go\ntype WebhookResourceCacheItem struct {\n\tName                 string\n\tSimpleAutoScalerName string\n\tResources            autoscalev1alpha1.SimpleAutoScalerResources\n}\n```\nresource cache is use to filter requests\n\n```go\nfunc (w *WebhookResourceCacheItem) String() string\n```\n\n","path":"github.com/tensorbytes/simplescale/webhook","name":"webhook","synopsis":"","isRedistributable":true}
