1package worker
2
3import (
4	"context"
5	"io"
6
7	"github.com/concourse/baggageclaim"
8)
9
10//go:generate counterfeiter . ArtifactDestination
11
12// Destination is the inverse of Source. This interface allows
13// the receiving end to determine the location of the data, e.g. based on a
14// task's input configuration.
15type ArtifactDestination interface {
16	// StreamIn is called with a destination directory and the tar stream to
17	// expand into the destination directory.
18	StreamIn(context.Context, string, baggageclaim.Encoding, io.Reader) error
19}
20