Documentation ¶
Index ¶
- func VerifyDockerIsAvailable() error
- type BuildxBuilder
- type Docker
- func (d *Docker) Build(dockerfile, srcPath, imageTag string, options ...DockerBuildOption) error
- func (d *Docker) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, ...) (string, error)
- func (d *Docker) ImagePull(rawImage string, opts types.ImagePullOptions) error
- func (d *Docker) RemoveByLabel(labels map[string]string) error
- func (d *Docker) Version() string
- type DockerBuildOption
- type ErrorDetail
- type ErrorLine
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyDockerIsAvailable ¶
func VerifyDockerIsAvailable() error
Types ¶
type BuildxBuilder ¶ added in v1.55.2
type BuildxBuilder struct {
Name string
}
type Docker ¶
func (*Docker) Build ¶
func (d *Docker) Build(dockerfile, srcPath, imageTag string, options ...DockerBuildOption) error
func (*Docker) ContainerCreate ¶
func (d *Docker) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (string, error)
type DockerBuildOption ¶ added in v1.55.8
type DockerBuildOption func(*dockerBuildOptions)
func WithBuildArgs ¶ added in v1.55.8
func WithBuildArgs(args map[string]string) DockerBuildOption
func WithBuilder ¶ added in v1.55.8
func WithBuilder(builder bool) DockerBuildOption
func WithExcludes ¶ added in v1.55.8
func WithExcludes(excludes []string) DockerBuildOption
func WithLogger ¶ added in v1.55.8
func WithLogger(logger io.Writer) DockerBuildOption
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }
Click to show internal directories.
Click to hide internal directories.