Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerBuild ¶
Builds a container image by invoking the `docker build` command
func DockerCopy ¶
Copies files from a running container to the host filesystem by invoking the `docker cp` command
func DockerStop ¶
Stops a running container by invoking the `docker kill` command
Types ¶
type SampleImage ¶
type SampleImage struct { // The absolute filesystem path to the directory that holds the OCI layout of our sample image RootDir string // The directory that contains our input Dockerfiles DockerfilesDir string // The directory that will contain OCI image blobs BlobsDir string // The directory that will contain extracted filesystem layers LayersDir string }
Represents a sample container image that can be used for testing purposes
func SampleImageForTest ¶
func SampleImageForTest() (*SampleImage, error)
Attempts to create a SampleImage object suitable for use by unit tests
func (*SampleImage) Exists ¶
func (sample *SampleImage) Exists() bool
Determines whether the directory that holds our sample image exists
func (*SampleImage) Generate ¶
func (sample *SampleImage) Generate() error
Generates our sample container image
Click to show internal directories.
Click to hide internal directories.