MCPcopy Index your code
hub / github.com/docker/cli / secretFromName

Function secretFromName

cli/command/stack/client_test.go:206–213  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

204}
205
206func secretFromName(name string) swarm.Secret {
207 return swarm.Secret{
208 ID: "ID-" + name,
209 Spec: swarm.SecretSpec{
210 Annotations: swarm.Annotations{Name: name},
211 },
212 }
213}
214
215func configFromName(name string) swarm.Config {
216 return swarm.Config{

Callers 1

SecretListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…