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_backend.PrepareContainerAction) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) AddUserCommands(commands ...string) StapelStageBuilderInterface
- func (builder *StapelStageBuilder) Build(ctx context.Context, opts container_backend.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 { ContainerBackend container_backend.ContainerBackend Dockerfile []byte BuildDockerfileOptions container_backend.BuildDockerfileOpts ContextArchivePath string Image container_backend.ImageInterface }
func NewDockerfileStageBuilder ¶
func NewDockerfileStageBuilder(containerBackend container_backend.ContainerBackend, image container_backend.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 { ContainerBackend container_backend.ContainerBackend Image container_backend.LegacyImageInterface }
func NewLegacyStapelStageBuilder ¶
func NewLegacyStapelStageBuilder(containerBackend container_backend.ContainerBackend, image container_backend.LegacyImageInterface) *LegacyStapelStageBuilder
func (*LegacyStapelStageBuilder) Build ¶
func (builder *LegacyStapelStageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
func (*LegacyStapelStageBuilder) BuilderContainer ¶
func (builder *LegacyStapelStageBuilder) BuilderContainer() container_backend.LegacyBuilderContainer
func (*LegacyStapelStageBuilder) Container ¶
func (builder *LegacyStapelStageBuilder) Container() container_backend.LegacyContainer
type LegacyStapelStageBuilderInterface ¶
type LegacyStapelStageBuilderInterface interface { Container() container_backend.LegacyContainer BuilderContainer() container_backend.LegacyBuilderContainer Build(ctx context.Context, opts container_backend.BuildOptions) error }
type StageBuilder ¶
type StageBuilder struct { ContainerBackend container_backend.ContainerBackend FromImage container_backend.ImageInterface Image container_backend.LegacyImageInterface // TODO: use ImageInterface // contains filtered or unexported fields }
func NewStageBuilder ¶
func NewStageBuilder(containerBackend container_backend.ContainerBackend, fromImage container_backend.ImageInterface, image container_backend.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 { ContainerBackend container_backend.ContainerBackend FromImage container_backend.ImageInterface Image container_backend.ImageInterface // contains filtered or unexported fields }
func NewStapelStageBuilder ¶
func NewStapelStageBuilder(containerBackend container_backend.ContainerBackend, fromImage, image container_backend.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_backend.PrepareContainerAction) StapelStageBuilderInterface
func (*StapelStageBuilder) AddUserCommands ¶
func (builder *StapelStageBuilder) AddUserCommands(commands ...string) StapelStageBuilderInterface
func (*StapelStageBuilder) Build ¶
func (builder *StapelStageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
type StapelStageBuilderInterface ¶
type StapelStageBuilderInterface interface { AddLabels(map[string]string) StapelStageBuilderInterface AddBuildVolumes(volumes ...string) StapelStageBuilderInterface AddPrepareContainerActions(action ...container_backend.PrepareContainerAction) StapelStageBuilderInterface AddUserCommands(commands ...string) StapelStageBuilderInterface Build(ctx context.Context, opts container_backend.BuildOptions) error }
Click to show internal directories.
Click to hide internal directories.