stage_builder

package
v1.2.234 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
	BuildContextArchive    container_backend.BuildContextArchiver

	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 (*DockerfileBuilder) Cleanup added in v1.2.178

func (b *DockerfileBuilder) Cleanup(ctx context.Context) error

func (*DockerfileBuilder) SetBuildContextArchive added in v1.2.182

func (b *DockerfileBuilder) SetBuildContextArchive(buildContextArchive container_backend.BuildContextArchiver)

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, opts container_backend.BuildOptions) 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)
	SetBuildContextArchive(buildContextArchive container_backend.BuildContextArchiver)
}

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 (*DockerfileStageBuilder) AppendPostInstruction added in v1.2.178

func (*DockerfileStageBuilder) AppendPreInstruction added in v1.2.178

func (*DockerfileStageBuilder) Build

func (*DockerfileStageBuilder) SetBuildContextArchive added in v1.2.182

type DockerfileStageBuilderInterface

type DockerfileStageBuilderInterface interface {
	DockerfileStageIntructionBuilderInterface
	SetBuildContextArchive(buildContextArchive container_backend.BuildContextArchiver) 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 (*LegacyStapelStageBuilder) Build

func (*LegacyStapelStageBuilder) BuilderContainer

func (*LegacyStapelStageBuilder) Container

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL