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

Method Untar

pkg/compose/watch.go:523–530  ·  view source on GitHub ↗
(ctx context.Context, id string, archive io.ReadCloser)

Source from the content-addressed store, hash-verified

521}
522
523func (t tarDockerClient) Untar(ctx context.Context, id string, archive io.ReadCloser) error {
524 _, err := t.s.apiClient().CopyToContainer(ctx, id, client.CopyToContainerOptions{
525 DestinationPath: "/",
526 Content: archive,
527 CopyUIDGID: true,
528 })
529 return err
530}
531
532//nolint:gocyclo
533func (s *composeService) handleWatchBatch(ctx context.Context, project *types.Project, options api.WatchOptions, batch []watch.FileEvent, rules []watchRule, syncer sync.Syncer) error {

Callers

nothing calls this directly

Calls 2

apiClientMethod · 0.80
CopyToContainerMethod · 0.45

Tested by

no test coverage detected