Documentation ¶
Index ¶
- type DockerfileStageBuilder
- func (b *DockerfileStageBuilder) AppendAddHost(addHost ...string)
- func (b *DockerfileStageBuilder) AppendBuildArgs(args ...string)
- func (b *DockerfileStageBuilder) AppendLabels(labels ...string)
- func (b *DockerfileStageBuilder) Build(ctx context.Context) error
- func (b *DockerfileStageBuilder) Cleanup(ctx context.Context) error
- func (b *DockerfileStageBuilder) SetContextArchivePath(contextArchivePath string)
- func (b *DockerfileStageBuilder) SetDockerfile(dockerfile []byte)
- func (b *DockerfileStageBuilder) SetDockerfileCtxRelPath(dockerfileCtxRelPath string)
- func (b *DockerfileStageBuilder) SetNetwork(network string)
- func (b *DockerfileStageBuilder) SetSSH(ssh string)
- func (b *DockerfileStageBuilder) SetTarget(target string)
- type DockerfileStageBuilderInterface
- type LegacyStapelStageBuilder
- type LegacyStapelStageBuilderInterface
- type StageBuilder
- func (stageBuilder *StageBuilder) DockerfileStageBuilder() DockerfileStageBuilderInterface
- func (stageBuilder *StageBuilder) GetDockerfileStageBuilderImplementation() *DockerfileStageBuilder
- func (stageBuilder *StageBuilder) GetStapelStageBuilderImplementation() *StapelStageBuilder
- func (stageBuilder *StageBuilder) LegacyStapelStageBuilder() LegacyStapelStageBuilderInterface
- func (stageBuilder *StageBuilder) StapelStageBuilder() StapelStageBuilderInterface
- type StageBuilderInterface
- type StapelStageBuilder
- func (builder *StapelStageBuilder) AddBuildVolumes(volumes ...string) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) AddLabels(labels map[string]string) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) AddPrepareContainerActions(actions ...container_runtime.PrepareContainerAction) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) AddUserCommands(commands ...string) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) Build(ctx context.Context, opts container_runtime.BuildOptions) error
- type StapelStageBuilderInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerfileStageBuilder ¶
type DockerfileStageBuilder struct { ContainerRuntime container_runtime.ContainerRuntime Dockerfile []byte BuildDockerfileOptions container_runtime.BuildDockerfileOpts ContextArchivePath string Image container_runtime.ImageInterface }
func NewDockerfileStageBuilder ¶
func NewDockerfileStageBuilder(containerRuntime container_runtime.ContainerRuntime, image container_runtime.ImageInterface) *DockerfileStageBuilder
func (*DockerfileStageBuilder) AppendAddHost ¶
func (b *DockerfileStageBuilder) AppendAddHost(addHost ...string)
func (*DockerfileStageBuilder) AppendBuildArgs ¶
func (b *DockerfileStageBuilder) AppendBuildArgs(args ...string)
func (*DockerfileStageBuilder) AppendLabels ¶
func (b *DockerfileStageBuilder) AppendLabels(labels ...string)
func (*DockerfileStageBuilder) Build ¶
func (b *DockerfileStageBuilder) Build(ctx context.Context) error
func (*DockerfileStageBuilder) Cleanup ¶
func (b *DockerfileStageBuilder) Cleanup(ctx context.Context) error
func (*DockerfileStageBuilder) SetContextArchivePath ¶
func (b *DockerfileStageBuilder) SetContextArchivePath(contextArchivePath string)
func (*DockerfileStageBuilder) SetDockerfile ¶
func (b *DockerfileStageBuilder) SetDockerfile(dockerfile []byte)
func (*DockerfileStageBuilder) SetDockerfileCtxRelPath ¶
func (b *DockerfileStageBuilder) SetDockerfileCtxRelPath(dockerfileCtxRelPath string)
func (*DockerfileStageBuilder) SetNetwork ¶
func (b *DockerfileStageBuilder) SetNetwork(network string)
func (*DockerfileStageBuilder) SetSSH ¶
func (b *DockerfileStageBuilder) SetSSH(ssh string)
func (*DockerfileStageBuilder) SetTarget ¶
func (b *DockerfileStageBuilder) SetTarget(target string)
type DockerfileStageBuilderInterface ¶
type DockerfileStageBuilderInterface interface { Build(ctx context.Context) error Cleanup(ctx context.Context) error SetDockerfile(dockerfile []byte) SetDockerfileCtxRelPath(dockerfileCtxRelPath string) SetTarget(target string) AppendBuildArgs(args ...string) AppendAddHost(addHost ...string) SetNetwork(network string) SetSSH(ssh string) AppendLabels(labels ...string) SetContextArchivePath(contextArchivePath string) }
type LegacyStapelStageBuilder ¶
type LegacyStapelStageBuilder struct { ContainerRuntime container_runtime.ContainerRuntime Image container_runtime.LegacyImageInterface }
func NewLegacyStapelStageBuilder ¶
func NewLegacyStapelStageBuilder(containerRuntime container_runtime.ContainerRuntime, image container_runtime.LegacyImageInterface) *LegacyStapelStageBuilder
func (*LegacyStapelStageBuilder) Build ¶
func (builder *LegacyStapelStageBuilder) Build(ctx context.Context, opts container_runtime.BuildOptions) error
func (*LegacyStapelStageBuilder) BuilderContainer ¶
func (builder *LegacyStapelStageBuilder) BuilderContainer() container_runtime.LegacyBuilderContainer
func (*LegacyStapelStageBuilder) Container ¶
func (builder *LegacyStapelStageBuilder) Container() container_runtime.LegacyContainer
type LegacyStapelStageBuilderInterface ¶
type LegacyStapelStageBuilderInterface interface { Container() container_runtime.LegacyContainer BuilderContainer() container_runtime.LegacyBuilderContainer Build(ctx context.Context, opts container_runtime.BuildOptions) error }
type StageBuilder ¶
type StageBuilder struct { ContainerRuntime container_runtime.ContainerRuntime FromImage container_runtime.ImageInterface Image container_runtime.LegacyImageInterface // TODO: use ImageInterface // contains filtered or unexported fields }
func NewStageBuilder ¶
func NewStageBuilder(containerRuntime container_runtime.ContainerRuntime, fromImage container_runtime.ImageInterface, image container_runtime.LegacyImageInterface) *StageBuilder
func (*StageBuilder) DockerfileStageBuilder ¶
func (stageBuilder *StageBuilder) DockerfileStageBuilder() DockerfileStageBuilderInterface
func (*StageBuilder) GetDockerfileStageBuilderImplementation ¶
func (stageBuilder *StageBuilder) GetDockerfileStageBuilderImplementation() *DockerfileStageBuilder
func (*StageBuilder) GetStapelStageBuilderImplementation ¶
func (stageBuilder *StageBuilder) GetStapelStageBuilderImplementation() *StapelStageBuilder
func (*StageBuilder) LegacyStapelStageBuilder ¶
func (stageBuilder *StageBuilder) LegacyStapelStageBuilder() LegacyStapelStageBuilderInterface
func (*StageBuilder) StapelStageBuilder ¶
func (stageBuilder *StageBuilder) StapelStageBuilder() StapelStageBuilderInterface
type StageBuilderInterface ¶
type StageBuilderInterface interface { StapelStageBuilder() StapelStageBuilderInterface DockerfileStageBuilder() DockerfileStageBuilderInterface LegacyStapelStageBuilder() LegacyStapelStageBuilderInterface }
type StapelStageBuilder ¶
type StapelStageBuilder struct { ContainerRuntime container_runtime.ContainerRuntime FromImage container_runtime.ImageInterface Image container_runtime.ImageInterface // contains filtered or unexported fields }
func NewStapelStageBuilder ¶
func NewStapelStageBuilder(containerRuntime container_runtime.ContainerRuntime, fromImage, image container_runtime.ImageInterface) *StapelStageBuilder
func (*StapelStageBuilder) AddBuildVolumes ¶
func (builder *StapelStageBuilder) AddBuildVolumes(volumes ...string) StapelStageBuilderInterface
func (*StapelStageBuilder) AddLabels ¶
func (builder *StapelStageBuilder) AddLabels(labels map[string]string) StapelStageBuilderInterface
func (*StapelStageBuilder) AddPrepareContainerActions ¶
func (builder *StapelStageBuilder) AddPrepareContainerActions(actions ...container_runtime.PrepareContainerAction) StapelStageBuilderInterface
func (*StapelStageBuilder) AddUserCommands ¶
func (builder *StapelStageBuilder) AddUserCommands(commands ...string) StapelStageBuilderInterface
func (*StapelStageBuilder) Build ¶
func (builder *StapelStageBuilder) Build(ctx context.Context, opts container_runtime.BuildOptions) error
type StapelStageBuilderInterface ¶
type StapelStageBuilderInterface interface { AddLabels(map[string]string) StapelStageBuilderInterface AddBuildVolumes(volumes ...string) StapelStageBuilderInterface AddPrepareContainerActions(action ...container_runtime.PrepareContainerAction) StapelStageBuilderInterface AddUserCommands(commands ...string) StapelStageBuilderInterface Build(ctx context.Context, opts container_runtime.BuildOptions) error }
Click to show internal directories.
Click to hide internal directories.