MCPcopy
hub / github.com/wavetermdev/waveterm / GetSecret

Function GetSecret

pkg/secretstore/secretstore.go:252–264  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

250}
251
252func GetSecret(name string) (string, bool, error) {
253 if name == WriteTsKey {
254 return "", false, nil
255 }
256 if err := initSecretStore(); err != nil {
257 return "", false, err
258 }
259 lock.Lock()
260 defer lock.Unlock()
261
262 value, exists := secrets[name]
263 return value, exists, nil
264}
265
266func GetSecretNames() ([]string, error) {
267 if err := initSecretStore(); err != nil {

Callers 4

GetSecretsCommandMethod · 0.92
BuildAppSecretEnvFunction · 0.92
createClientConfigFunction · 0.92
getWaveAISettingsFunction · 0.92

Calls 1

initSecretStoreFunction · 0.85

Tested by

no test coverage detected