builder

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	BuildDryRun() (string, error)
	Build(ctx context.Context) error
}

Builder interface, currently Kaniko, Docker Engine later. A runtime itself is a builder too.

func NewFromRequest

func NewFromRequest(request Request) (Builder, error)

Create a ne Builder from a Builder Request

func NewFromRuntime

func NewFromRuntime(runtime runtime.Runtime) (Builder, error)

Create a new Builder from a function runtime

type MockBuilder added in v0.6.0

type MockBuilder struct {
	mock.Mock
}

func (*MockBuilder) Build added in v0.6.0

func (client *MockBuilder) Build(ctx context.Context) error

func (*MockBuilder) BuildDryRun added in v0.6.0

func (client *MockBuilder) BuildDryRun() (string, error)

type Request

type Request struct {
	Dockerfile string
	Directory  string
	Image      registry.Image
}

Request describes what a builder needs to build

Directories

Path Synopsis
Package kaniko is responsible for performing a Kaniko build of an image.
Package kaniko is responsible for performing a Kaniko build of an image.

Jump to

Keyboard shortcuts

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