MCPcopy
hub / github.com/grafana/k6 / Source

Interface Source

secretsource/extension.go:18–25  ·  view source on GitHub ↗

Source is the interface a secret source needs to implement

Source from the content-addressed store, hash-verified

16
17// Source is the interface a secret source needs to implement
18type Source interface {
19 // Human readable description to be printed on the cli
20 Description() string
21 // Get retrives the value for a given key and returns it.
22 // Logging the value before it is returned is going to lead to it being leaked.
23 // The error might lead to an exception visible to users.
24 Get(key string) (value string, err error)
25}
26
27// Params contains all possible constructor parameters an output may need.
28type Params struct {

Callers 8

GetMethod · 0.65
ValidateMethod · 0.65
TestRootTagSetFunction · 0.65
TestTagSetsFunction · 0.65
TestTagsAndMetaSetTagFunction · 0.65
TestTagsAndMetaDeleteTagFunction · 0.65
TestMetricsClientPushFunction · 0.65

Implementers 4

SecretSourceinternal/secretsource/cloud/cloud.go
urlSecretsinternal/secretsource/url/url.go
fileSecretSourceinternal/secretsource/file/file.go
mockSecretSourceinternal/secretsource/mock/mock.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…