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

Function NewTar

internal/sync/tar.go:60–65  ·  view source on GitHub ↗
(projectName string, client LowLevelClient)

Source from the content-addressed store, hash-verified

58var _ Syncer = &Tar{}
59
60func NewTar(projectName string, client LowLevelClient) *Tar {
61 return &Tar{
62 projectName: projectName,
63 client: client,
64 }
65}
66
67func (t *Tar) Sync(ctx context.Context, service string, paths []*PathMapping) error {
68 containers, err := t.client.ContainersForService(ctx, t.projectName, service)

Callers 5

getSyncImplementationMethod · 0.92
TestSync_ExistingPathFunction · 0.85
TestSync_NonExistentPathFunction · 0.85
TestSync_MixedPathsFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestSync_ExistingPathFunction · 0.68
TestSync_NonExistentPathFunction · 0.68
TestSync_MixedPathsFunction · 0.68