stage_builder

package
v1.2.151 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 5 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 {
	ContainerBackend       container_backend.ContainerBackend
	Dockerfile             []byte
	BuildDockerfileOptions container_backend.BuildDockerfileOpts
	ContextArchivePath     string

	Image container_backend.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 {
	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
	FromImage        container_backend.ImageInterface
	Image            container_backend.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

func NewStapelStageBuilder

func NewStapelStageBuilder(containerBackend container_backend.ContainerBackend, fromImage, 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