package build
import "github.com/docker/cli/components/engine/integration-cli/cli/build"
Index ¶
- func WithBuildContext(t testingT, contextOperators ...func(*fakecontext.Fake) error) func(*icmd.Cmd) func()
- func WithContextPath(path string) func(*icmd.Cmd) func()
- func WithDockerfile(dockerfile string) func(*icmd.Cmd) func()
- func WithExternalBuildContext(ctx *fakecontext.Fake) func(*icmd.Cmd) func()
- func WithFile(name, content string) func(*fakecontext.Fake) error
- func WithStdinContext(closer io.ReadCloser) func(*icmd.Cmd) func()
- func WithoutCache(cmd *icmd.Cmd) func()
Functions ¶
func WithBuildContext ¶
func WithBuildContext(t testingT, contextOperators ...func(*fakecontext.Fake) error) func(*icmd.Cmd) func()
WithBuildContext sets up the build context
func WithContextPath ¶
WithContextPath sets the build context path
func WithDockerfile ¶
WithDockerfile creates / returns a CmdOperator to set the Dockerfile for a build operation
func WithExternalBuildContext ¶
func WithExternalBuildContext(ctx *fakecontext.Fake) func(*icmd.Cmd) func()
WithExternalBuildContext use the specified context as build context
func WithFile ¶
func WithFile(name, content string) func(*fakecontext.Fake) error
WithFile adds the specified file (with content) in the build context
func WithStdinContext ¶
func WithStdinContext(closer io.ReadCloser) func(*icmd.Cmd) func()
WithStdinContext sets the build context from the standard input with the specified reader
func WithoutCache ¶
WithoutCache makes the build ignore cache
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
components/engine/integration-cli/cli/build/fakecontext | |
components/engine/integration-cli/cli/build/fakegit | |
components/engine/integration-cli/cli/build/fakestorage |
- Version
- v17.12.0-ce+incompatible
- Published
- Dec 27, 2017
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 3 hours ago –
Tools for package owners.