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

Method Commit

pkg/compose/commit.go:29–33  ·  view source on GitHub ↗
(ctx context.Context, projectName string, options api.CommitOptions)

Source from the content-addressed store, hash-verified

27)
28
29func (s *composeService) Commit(ctx context.Context, projectName string, options api.CommitOptions) error {
30 return Run(ctx, func(ctx context.Context) error {
31 return s.commit(ctx, projectName, options)
32 }, "commit", s.events)
33}
34
35func (s *composeService) commit(ctx context.Context, projectName string, options api.CommitOptions) error {
36 projectName = strings.ToLower(projectName)

Callers

nothing calls this directly

Calls 2

commitMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected