Skip to content

Commit

Permalink
rootfs: Add context to Prepare
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Karp <skarp@amazon.com>
  • Loading branch information
samuelkarp committed Feb 27, 2017
1 parent 4382d55 commit b471a84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rootfs/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ApplyLayer(snapshots snapshot.Snapshotter, mounter Mounter, rd io.Reader, p
//
// If successful, the chainID for the top-level layer is returned. That
// identifier can be used to check out a snapshot.
func Prepare(snapshots snapshot.Snapshotter, mounter Mounter, layers []ocispec.Descriptor,
func Prepare(ctx context.Context, snapshots snapshot.Snapshotter, mounter Mounter, layers []ocispec.Descriptor,
// TODO(stevvooe): The following functions are candidate for internal
// object functions. We can use these to formulate the beginnings of a
// rootfs Controller.
Expand All @@ -97,7 +97,6 @@ func Prepare(snapshots snapshot.Snapshotter, mounter Mounter, layers []ocispec.D
parent digest.Digest
chain []digest.Digest
)
ctx := context.TODO()

for _, layer := range layers {
// TODO: layer.Digest should not be string
Expand Down

0 comments on commit b471a84

Please sign in to comment.