Documentation
¶
Index ¶
- Variables
- func Delete(key string, options *client.DeleteOptions) error
- func Get(key string, options *client.GetOptions) (string, error)
- func GetAllDogus() ([]string, error)
- func GetConfig(dogu string, ignoreKeys []string) (core.DoguConfig, error)
- func GetDoguSpec(dogu string) (cesLibCore.Dogu, error)
- func GetGlobalConfig(ignoreKeys []string) (core.GlobalConfig, error)
- func GetLocalConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)
- func GetNormalConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)
- func GetSensitiveConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)
- func Update(key string, value string, options *client.SetOptions) (string, error)
- type ExcludeOption
Constants ¶
This section is empty.
Variables ¶
var (
ErrDoguNotFound = errors.New("dogu not found")
)
Functions ¶
func GetAllDogus ¶
GetAllDogus returns a list of all Dogu names present in the etcd registry.
It scans for keys ending with `/current` under the dogu path and extracts the Dogu name from the path components.
func GetConfig ¶
func GetConfig(dogu string, ignoreKeys []string) (core.DoguConfig, error)
GetConfig returns the combined normal, local, and sensitive Dogu configuration for the specified Dogu name, excluding specified keys.
func GetDoguSpec ¶
func GetDoguSpec(dogu string) (cesLibCore.Dogu, error)
GetDoguSpec retrieves the current Dogu specification for the given Dogu name.
It first determines the active version of the Dogu by reading the `/current` key, then retrieves and unmarshals the corresponding JSON specification.
func GetGlobalConfig ¶
func GetGlobalConfig(ignoreKeys []string) (core.GlobalConfig, error)
GetGlobalConfig returns the global configuration, optionally excluding specified keys.
func GetLocalConfig ¶
GetLocalConfig returns Dogu configuration keys that are NOT defined in the Dogu's JSON and are decrypted if possible. Service account keys are ignored.
func GetNormalConfig ¶
GetNormalConfig returns non-sensitive Dogu configuration keys that are not encrypted. It includes only those keys defined in the Dogu's JSON definition.
func GetSensitiveConfig ¶
GetSensitiveConfig returns only encrypted Dogu configuration keys that are listed in the Dogu's JSON definition.
Types ¶
type ExcludeOption ¶
type ExcludeOption func(cfg cesLibCore.ConfigurationField) bool
ExcludeOption is a function type used to filter configuration fields from a Dogu spec.
func ExcludeGlobalConfig ¶
func ExcludeGlobalConfig() ExcludeOption
ExcludeGlobalConfig is an ExcludeOption that excludes configuration fields marked as global.