import "github.com/docker/docker/testutil/fakecontext"
WithBinaryFiles adds the specified files in the build context, content is binary
WithDockerfile adds the specified content as Dockerfile in the build context
WithFile adds the specified file (with content) in the build context
WithFiles adds the specified files in the build context, content is a string
Fake creates directories that can be used as a build context
New creates a fake build context
Add a file at a path, creating directories where necessary
AsTarReader returns a ReadCloser with the contents of Dir as a tar archive.
Close deletes the context
Delete a file at a path
Package fakecontext imports 7 packages (graph) and is imported by 3 packages. Updated 2019-10-16. Refresh now. Tools for package owners.