MCPcopy
hub / github.com/docker/compose / injectSecrets

Method injectSecrets

pkg/compose/secrets.go:38–40  ·  view source on GitHub ↗
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string)

Source from the content-addressed store, hash-verified

36)
37
38func (s *composeService) injectSecrets(ctx context.Context, project *types.Project, service types.ServiceConfig, id string) error {
39 return s.injectFileReferences(ctx, project, service, id, secretMount)
40}
41
42func (s *composeService) injectConfigs(ctx context.Context, project *types.Project, service types.ServiceConfig, id string) error {
43 return s.injectFileReferences(ctx, project, service, id, configMount)

Callers 2

startServiceContainerMethod · 0.95
prepareRunMethod · 0.95

Calls 1

injectFileReferencesMethod · 0.95

Tested by

no test coverage detected