Documentation
¶
Index ¶
- func AppendUnique(list []string, item string) []string
- func Bool(cfg map[string]any, key string, fallback bool) bool
- func DefaultsFromFields(raw []byte) (map[string]any, error)
- func Int(cfg map[string]any, key string, fallback int) int
- func String(cfg map[string]any, key, fallback string) string
- func StringSlice(cfg map[string]any, key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
AppendUnique appends item to list only if it is not already present.
func DefaultsFromFields ¶ added in v1.0.0
DefaultsFromFields extracts the default values from blueprint-style YAML of the shape fields: {name: {type, label, hint, default, min, max}}. Shared by the clientplugins manifest defaults and external plugin blueprints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.