stage_builder

package
v1.2.80 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 DockerfileStageBuilder

type DockerfileStageBuilder struct {
	ContainerRuntime       container_runtime.ContainerRuntime
	Dockerfile             []byte
	BuildDockerfileOptions container_runtime.BuildDockerfileOpts
	ContextArchivePath     string

	Image container_runtime.ImageInterface
}

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 (*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 (*LegacyStapelStageBuilder) Build

func (*LegacyStapelStageBuilder) BuilderContainer

func (*LegacyStapelStageBuilder) Container

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 (*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

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
}

Jump to

Keyboard shortcuts

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