etcd

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDoguNotFound = errors.New("dogu not found")
)

Functions

func Delete

func Delete(key string, options *client.DeleteOptions) error

func Get

func Get(key string, options *client.GetOptions) (string, error)

func GetAllDogus

func GetAllDogus() ([]string, error)

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

func GetLocalConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)

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

func GetNormalConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)

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

func GetSensitiveConfig(dogu string, ignoreKeys []string) ([]core.KeyValue, error)

GetSensitiveConfig returns only encrypted Dogu configuration keys that are listed in the Dogu's JSON definition.

func Update

func Update(key string, value string, options *client.SetOptions) (string, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL