Documentation ¶
Index ¶
- Constants
- func GetInformer() informers.SharedInformerFactory
- func GetKubernetesConfig() (*rest.Config, string, error)
- type ConfigurationBuilder
- func (builder *ConfigurationBuilder) AddConfigurationProvider(provider ConfigurationProvider) *ConfigurationBuilder
- func (builder *ConfigurationBuilder) AddObservableConfigurationProvider(provider ObservableConfigurationProvider) *ConfigurationBuilder
- func (builder *ConfigurationBuilder) Build(callbacks ...func(ConfigurationRoot)) *ConfigurationRoot
- func (builder *ConfigurationBuilder) ClearProviders() *ConfigurationBuilder
- type ConfigurationProvider
- type ConfigurationRoot
- func (config *ConfigurationRoot) GetBooleanValueOrDefault(key string, defaultValue bool) bool
- func (config *ConfigurationRoot) GetIntValueOrDefault(key string, defaultValue int) int
- func (config *ConfigurationRoot) GetStringValueOrDefault(key string, defaultValue string) string
- func (config *ConfigurationRoot) RegisterChangeNotificationHandler(handler func(ConfigurationRoot)) *ConfigurationRoot
- type EnvironmentConfigurationProvider
- type InMemoryConfigurationProvider
- type KubernetesConfigMapConfigurationProvider
- type KubernetesSecretConfigurationProvider
- type ObservableConfigurationProvider
Constants ¶
View Source
const (
K8S_NS_FILE = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
)
View Source
const SERVICE_NAME string = "Config"
Variables ¶
This section is empty.
Functions ¶
func GetInformer ¶
func GetInformer() informers.SharedInformerFactory
Types ¶
type ConfigurationBuilder ¶
type ConfigurationBuilder struct {
// contains filtered or unexported fields
}
func NewConfigurationBuilder ¶
func NewConfigurationBuilder(development bool) *ConfigurationBuilder
func (*ConfigurationBuilder) AddConfigurationProvider ¶
func (builder *ConfigurationBuilder) AddConfigurationProvider(provider ConfigurationProvider) *ConfigurationBuilder
func (*ConfigurationBuilder) AddObservableConfigurationProvider ¶
func (builder *ConfigurationBuilder) AddObservableConfigurationProvider(provider ObservableConfigurationProvider) *ConfigurationBuilder
func (*ConfigurationBuilder) Build ¶
func (builder *ConfigurationBuilder) Build(callbacks ...func(ConfigurationRoot)) *ConfigurationRoot
func (*ConfigurationBuilder) ClearProviders ¶
func (builder *ConfigurationBuilder) ClearProviders() *ConfigurationBuilder
type ConfigurationProvider ¶
type ConfigurationRoot ¶
type ConfigurationRoot struct { Providers []ConfigurationProvider // contains filtered or unexported fields }
func (*ConfigurationRoot) GetBooleanValueOrDefault ¶
func (config *ConfigurationRoot) GetBooleanValueOrDefault(key string, defaultValue bool) bool
func (*ConfigurationRoot) GetIntValueOrDefault ¶
func (config *ConfigurationRoot) GetIntValueOrDefault(key string, defaultValue int) int
func (*ConfigurationRoot) GetStringValueOrDefault ¶
func (config *ConfigurationRoot) GetStringValueOrDefault(key string, defaultValue string) string
func (*ConfigurationRoot) RegisterChangeNotificationHandler ¶
func (config *ConfigurationRoot) RegisterChangeNotificationHandler(handler func(ConfigurationRoot)) *ConfigurationRoot
type EnvironmentConfigurationProvider ¶
type EnvironmentConfigurationProvider struct {
// contains filtered or unexported fields
}
func NewEnvironmentConfigurationProvider ¶
func NewEnvironmentConfigurationProvider(prefix string) *EnvironmentConfigurationProvider
func (EnvironmentConfigurationProvider) Name ¶
func (provider EnvironmentConfigurationProvider) Name() string
func (EnvironmentConfigurationProvider) TryGetValue ¶
func (provider EnvironmentConfigurationProvider) TryGetValue(key string) (bool, string)
func (EnvironmentConfigurationProvider) Type ¶
func (provider EnvironmentConfigurationProvider) Type() string
type InMemoryConfigurationProvider ¶
type InMemoryConfigurationProvider struct {
// contains filtered or unexported fields
}
func NewInMemoryConfigurationProvider ¶
func NewInMemoryConfigurationProvider(name string, data map[string]string) *InMemoryConfigurationProvider
func (InMemoryConfigurationProvider) Name ¶
func (provider InMemoryConfigurationProvider) Name() string
func (InMemoryConfigurationProvider) TryGetValue ¶
func (provider InMemoryConfigurationProvider) TryGetValue(key string) (bool, string)
func (InMemoryConfigurationProvider) Type ¶
func (provider InMemoryConfigurationProvider) Type() string
type KubernetesConfigMapConfigurationProvider ¶
type KubernetesConfigMapConfigurationProvider struct { Exists bool // contains filtered or unexported fields }
func NewKubernetesConfigMapConfigurationProvider ¶
func NewKubernetesConfigMapConfigurationProvider(name string) *KubernetesConfigMapConfigurationProvider
func (*KubernetesConfigMapConfigurationProvider) Name ¶
func (provider *KubernetesConfigMapConfigurationProvider) Name() string
func (*KubernetesConfigMapConfigurationProvider) TryGetValue ¶
func (provider *KubernetesConfigMapConfigurationProvider) TryGetValue(key string) (bool, string)
func (*KubernetesConfigMapConfigurationProvider) Type ¶
func (provider *KubernetesConfigMapConfigurationProvider) Type() string
type KubernetesSecretConfigurationProvider ¶
type KubernetesSecretConfigurationProvider struct { Exists bool // contains filtered or unexported fields }
func NewKubernetesSecretConfigurationProvider ¶
func NewKubernetesSecretConfigurationProvider(name string) *KubernetesSecretConfigurationProvider
func (*KubernetesSecretConfigurationProvider) Name ¶
func (provider *KubernetesSecretConfigurationProvider) Name() string
func (*KubernetesSecretConfigurationProvider) TryGetValue ¶
func (provider *KubernetesSecretConfigurationProvider) TryGetValue(key string) (bool, string)
func (*KubernetesSecretConfigurationProvider) Type ¶
func (provider *KubernetesSecretConfigurationProvider) Type() string
Click to show internal directories.
Click to hide internal directories.