Documentation ¶
Index ¶
- type DockerfileBuilder
- func (b *DockerfileBuilder) AppendAddHost(addHost ...string)
- func (b *DockerfileBuilder) AppendBuildArgs(args ...string)
- func (b *DockerfileBuilder) AppendLabels(labels ...string)
- func (b *DockerfileBuilder) Build(ctx context.Context) error
- func (b *DockerfileBuilder) Cleanup(ctx context.Context) error
- func (b *DockerfileBuilder) SetContextArchivePath(contextArchivePath string)
- func (b *DockerfileBuilder) SetDockerfile(dockerfile []byte)
- func (b *DockerfileBuilder) SetDockerfileCtxRelPath(dockerfileCtxRelPath string)
- func (b *DockerfileBuilder) SetNetwork(network string)
- func (b *DockerfileBuilder) SetSSH(ssh string)
- func (b *DockerfileBuilder) SetTarget(target string)
- type DockerfileBuilderInterface
- type DockerfileStageBuilder
- func (b *DockerfileStageBuilder) AppendInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
- func (b *DockerfileStageBuilder) AppendPostInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
- func (b *DockerfileStageBuilder) AppendPreInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
- func (b *DockerfileStageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
- func (b *DockerfileStageBuilder) SetBuildContext(buildContext *build_context.BuildContext) DockerfileStageBuilderInterface
- type DockerfileStageBuilderInterface
- type DockerfileStageIntructionBuilderInterface
- type LegacyStapelStageBuilder
- type LegacyStapelStageBuilderInterface
- type StageBuilder
- func (stageBuilder *StageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
- func (stageBuilder *StageBuilder) DockerfileBuilder() DockerfileBuilderInterface
- func (stageBuilder *StageBuilder) DockerfileStageBuilder() DockerfileStageBuilderInterface
- func (stageBuilder *StageBuilder) GetDockerfileBuilderImplementation() *DockerfileBuilder
- func (stageBuilder *StageBuilder) GetDockerfileStageBuilderImplementation() *DockerfileStageBuilder
- func (stageBuilder *StageBuilder) GetLegacyStapelStageBuilderImplmentation() *LegacyStapelStageBuilder
- func (stageBuilder *StageBuilder) GetStapelStageBuilderImplementation() *StapelStageBuilder
- func (stageBuilder *StageBuilder) LegacyStapelStageBuilder() LegacyStapelStageBuilderInterface
- func (stageBuilder *StageBuilder) StapelStageBuilder() StapelStageBuilderInterface
- type StageBuilderInterface
- type StapelStageBuilder
- type StapelStageBuilderInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerfileBuilder ¶ added in v1.2.178
type DockerfileBuilder struct { ContainerBackend container_backend.ContainerBackend Dockerfile []byte BuildDockerfileOptions container_backend.BuildDockerfileOpts ContextArchivePath string Image container_backend.ImageInterface }
func NewDockerfileBuilder ¶ added in v1.2.178
func NewDockerfileBuilder(containerBackend container_backend.ContainerBackend, image container_backend.ImageInterface) *DockerfileBuilder
func (*DockerfileBuilder) AppendAddHost ¶ added in v1.2.178
func (b *DockerfileBuilder) AppendAddHost(addHost ...string)
func (*DockerfileBuilder) AppendBuildArgs ¶ added in v1.2.178
func (b *DockerfileBuilder) AppendBuildArgs(args ...string)
func (*DockerfileBuilder) AppendLabels ¶ added in v1.2.178
func (b *DockerfileBuilder) AppendLabels(labels ...string)
func (*DockerfileBuilder) Build ¶ added in v1.2.178
func (b *DockerfileBuilder) Build(ctx context.Context) error
func (*DockerfileBuilder) Cleanup ¶ added in v1.2.178
func (b *DockerfileBuilder) Cleanup(ctx context.Context) error
func (*DockerfileBuilder) SetContextArchivePath ¶ added in v1.2.178
func (b *DockerfileBuilder) SetContextArchivePath(contextArchivePath string)
func (*DockerfileBuilder) SetDockerfile ¶ added in v1.2.178
func (b *DockerfileBuilder) SetDockerfile(dockerfile []byte)
func (*DockerfileBuilder) SetDockerfileCtxRelPath ¶ added in v1.2.178
func (b *DockerfileBuilder) SetDockerfileCtxRelPath(dockerfileCtxRelPath string)
func (*DockerfileBuilder) SetNetwork ¶ added in v1.2.178
func (b *DockerfileBuilder) SetNetwork(network string)
func (*DockerfileBuilder) SetSSH ¶ added in v1.2.178
func (b *DockerfileBuilder) SetSSH(ssh string)
func (*DockerfileBuilder) SetTarget ¶ added in v1.2.178
func (b *DockerfileBuilder) SetTarget(target string)
type DockerfileBuilderInterface ¶ added in v1.2.178
type DockerfileBuilderInterface 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 DockerfileStageBuilder ¶
type DockerfileStageBuilder struct {
// contains filtered or unexported fields
}
func NewDockerfileStageBuilder ¶
func NewDockerfileStageBuilder(containerBackend container_backend.ContainerBackend, baseImage string, resultImage container_backend.ImageInterface) *DockerfileStageBuilder
func (*DockerfileStageBuilder) AppendInstruction ¶ added in v1.2.178
func (b *DockerfileStageBuilder) AppendInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
func (*DockerfileStageBuilder) AppendPostInstruction ¶ added in v1.2.178
func (b *DockerfileStageBuilder) AppendPostInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
func (*DockerfileStageBuilder) AppendPreInstruction ¶ added in v1.2.178
func (b *DockerfileStageBuilder) AppendPreInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface
func (*DockerfileStageBuilder) Build ¶
func (b *DockerfileStageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
func (*DockerfileStageBuilder) SetBuildContext ¶ added in v1.2.178
func (b *DockerfileStageBuilder) SetBuildContext(buildContext *build_context.BuildContext) DockerfileStageBuilderInterface
type DockerfileStageBuilderInterface ¶
type DockerfileStageBuilderInterface interface { DockerfileStageIntructionBuilderInterface SetBuildContext(buildContext *build_context.BuildContext) DockerfileStageBuilderInterface Build(ctx context.Context, opts container_backend.BuildOptions) error }
type DockerfileStageIntructionBuilderInterface ¶ added in v1.2.178
type DockerfileStageIntructionBuilderInterface interface { AppendPreInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface AppendInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface AppendPostInstruction(i container_backend.InstructionInterface) DockerfileStageBuilderInterface }
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 BaseImage string Image container_backend.LegacyImageInterface // TODO: use ImageInterface // contains filtered or unexported fields }
func NewStageBuilder ¶
func NewStageBuilder(containerBackend container_backend.ContainerBackend, baseImage string, image container_backend.LegacyImageInterface) *StageBuilder
func (*StageBuilder) Build ¶ added in v1.2.178
func (stageBuilder *StageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
func (*StageBuilder) DockerfileBuilder ¶ added in v1.2.178
func (stageBuilder *StageBuilder) DockerfileBuilder() DockerfileBuilderInterface
func (*StageBuilder) DockerfileStageBuilder ¶
func (stageBuilder *StageBuilder) DockerfileStageBuilder() DockerfileStageBuilderInterface
func (*StageBuilder) GetDockerfileBuilderImplementation ¶ added in v1.2.178
func (stageBuilder *StageBuilder) GetDockerfileBuilderImplementation() *DockerfileBuilder
func (*StageBuilder) GetDockerfileStageBuilderImplementation ¶
func (stageBuilder *StageBuilder) GetDockerfileStageBuilderImplementation() *DockerfileStageBuilder
func (*StageBuilder) GetLegacyStapelStageBuilderImplmentation ¶ added in v1.2.178
func (stageBuilder *StageBuilder) GetLegacyStapelStageBuilderImplmentation() *LegacyStapelStageBuilder
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 DockerfileBuilder() DockerfileBuilderInterface DockerfileStageBuilder() DockerfileStageBuilderInterface LegacyStapelStageBuilder() LegacyStapelStageBuilderInterface Build(ctx context.Context, opts container_backend.BuildOptions) error }
type StapelStageBuilder ¶
type StapelStageBuilder struct { container_backend.BuildStapelStageOptions ContainerBackend container_backend.ContainerBackend BaseImage string Image container_backend.ImageInterface }
func NewStapelStageBuilder ¶
func NewStapelStageBuilder(containerBackend container_backend.ContainerBackend, baseImage string, image container_backend.ImageInterface) *StapelStageBuilder
func (*StapelStageBuilder) Build ¶
func (builder *StapelStageBuilder) Build(ctx context.Context, opts container_backend.BuildOptions) error
type StapelStageBuilderInterface ¶
type StapelStageBuilderInterface interface { container_backend.BuildStapelStageOptionsInterface Build(ctx context.Context, opts container_backend.BuildOptions) error }
Click to show internal directories.
Click to hide internal directories.