Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Holder ¶
type Holder struct {
// contains filtered or unexported fields
}
Holder encapsulates te current configuration.
func NewReloadingConfig ¶
func NewReloadingConfig(path string, reloadConfig *ReloadConfig) (*Holder, error)
NewReloadingConfig sets up a new holder that periodically reloads the configuration from disk. The reloaded configuration then replaces the current version in memory.
func (*Holder) Get ¶
func (c *Holder) Get() *v1alpha1.PodPresetSpec
Get returns the current active version of the configuration.
Click to show internal directories.
Click to hide internal directories.