MCPcopy
hub / github.com/digitalocean/doctl / nskey

Function nskey

doit.go:491–496  ·  view source on GitHub ↗
(ns, key string)

Source from the content-addressed store, hash-verified

489}
490
491func nskey(ns, key string) string {
492 if ns != "" {
493 key = fmt.Sprintf("%s.%s", ns, key)
494 }
495 return key
496}
497
498func isRequired(key string) bool {
499 return viper.GetBool(fmt.Sprintf("required.%s", key))

Callers 15

SetMethod · 0.85
GetStringMethod · 0.85
GetBoolMethod · 0.85
GetBoolPtrMethod · 0.85
GetIntMethod · 0.85
GetIntPtrMethod · 0.85
GetFloat64Method · 0.85
GetStringSliceMethod · 0.85
GetStringMapStringMethod · 0.85
GetDurationMethod · 0.85
SetMethod · 0.85
GetStringMethod · 0.85

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected