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

Function driverObjectConfig

cli/compose/convert/compose.go:168–182  ·  view source on GitHub ↗
(namespace Namespace, name string, obj composetypes.FileObjectConfig)

Source from the content-addressed store, hash-verified

166}
167
168func driverObjectConfig(namespace Namespace, name string, obj composetypes.FileObjectConfig) swarmFileObject {
169 if obj.Name != "" {
170 name = obj.Name
171 } else {
172 name = namespace.Scope(name)
173 }
174
175 return swarmFileObject{
176 Annotations: swarm.Annotations{
177 Name: name,
178 Labels: addStackLabel(namespace, obj.Labels),
179 },
180 Data: []byte{},
181 }
182}
183
184func fileObjectConfig(namespace Namespace, name string, obj composetypes.FileObjectConfig) (swarmFileObject, error) {
185 data, err := os.ReadFile(obj.File)

Callers 1

SecretsFunction · 0.85

Calls 2

addStackLabelFunction · 0.85
ScopeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…