package
0.23.1
Repository: https://github.com/grafana/grafana-app-sdk.git
Documentation: pkg.go.dev

# Functions

CachingInitializer returns an Initializer that caches values returned from ini.
FromContext extracts a Config from provided Context.
LoadingMiddleware returns a new middleware that can be used on a router for automatically extracting, loading and storing a Config into the context.
LoadingMiddlewareWithLoader returns a new middleware that can be used on a router for automatically extracting, loading and storing a Config into the context.
LoadRawConfig loads raw config data from decrypted secureJsonData.
MustFromContext extracts a Config from provided Context.
MustLoadMiddleware returns a new middleware that can be used on a router for automatically extracting, loading and storing a Config into the context.
MustLoadMiddlewareWithLoader returns a new middleware that can be used on a router for automatically extracting, loading and storing a Config into the context.
NewCachingLoader returns a new CachingLoader with an empty cache.
NewCustomCachingLoader returns a new CachingLoader that uses loader for loading configs.
NewLoader returns a new Loader.
WithContext returns a new Context that contains Config inside.

# Constants

KeyConfig is the key in secureJsonData used for looking up kubeconfig.
KeyNamespace is the key in secureJsonData used for looking up kube namespace.

# Variables

ErrConfigMissing is the error returned when secureJsonData does not contain serialized kubeconfig value.
ErrContextValueMissing is an error that's returned when trying to fetch a Config from a context that doesn't have one.

# Structs

CachingLoader is a ConfigLoader that loads NamespacedConfig from serialized config and namespace values and caches the result for the next calls.
Loader is a ConfigLoader that loads NamespacedConfig from serialized config and namespace values.
NamespacedConfig is the configuration for a Kubernetes client.

# Interfaces

ChecksumLoader is a ConfigLoader that can also compute a CRC32 of serialized values.
ConfigLoader loads NamespacedConfig from serialized config and namespace values.

# Type aliases

Initializer is a function that initializes some value T that depends on a Config.