MCPcopy Create free account
hub / github.com/docker/cli / secrets

Function secrets

cli/compose/loader/full-struct_test.go:535–560  ·  view source on GitHub ↗
(workingDir string)

Source from the content-addressed store, hash-verified

533}
534
535func secrets(workingDir string) map[string]types.SecretConfig {
536 return map[string]types.SecretConfig{
537 "secret1": {
538 File: workingDir + "/secret_data",
539 Labels: map[string]string{
540 "foo": "bar",
541 },
542 },
543 "secret2": {
544 Name: "my_secret",
545 External: types.External{External: true},
546 },
547 "secret3": {
548 Name: "secret3",
549 External: types.External{External: true},
550 },
551 "secret4": {
552 Name: "bar",
553 File: workingDir,
554 Extras: map[string]any{
555 "x-bar": "baz",
556 "x-foo": "bar",
557 },
558 },
559 }
560}

Callers 1

fullExampleConfigFunction · 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…