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

Method Push

pkg/compose/push.go:39–46  ·  pkg/compose/push.go::composeService.Push
(ctx context.Context, project *types.Project, options api.PushOptions)

Source from the content-addressed store, hash-verified

37)
38
39func (s *composeService) Push(ctx context.Context, project *types.Project, options api.PushOptions) error {
40 if options.Quiet {
41 return s.push(ctx, project, options)
42 }
43 return Run(ctx, func(ctx context.Context) error {
44 return s.push(ctx, project, options)
45 }, "push", s.events)
46}
47
48func (s *composeService) push(ctx context.Context, project *types.Project, options api.PushOptions) error {
49 eg, ctx := errgroup.WithContext(ctx)

Callers 1

publishMethod · 0.95

Calls 2

pushMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected