kaniko

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: 10 Imported by: 0

Documentation

Overview

Package kaniko is responsible for performing a Kaniko build of an image. Kaniko builder does not require Docker Engine presence, therefore it is a better solution one can using within Continuous Integration context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable added in v0.7.0

func IsAvailable() bool

func WithKanikoAvailable added in v0.7.0

func WithKanikoAvailable(block func())

Types

type Builder added in v0.5.0

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

Nested Kaniko builders interface

type Kaniko

type Kaniko struct {
	Before       []Builder
	Dockerfile   string            // Path to a Dockerfile
	Workspace    string            // build context / working directory
	Destinations []string          // destinations of an image
	Registry     registry.Registry // Docker registry
}

Kaniko represent a Kaniko build process.

func (*Kaniko) Build

func (kaniko *Kaniko) Build(ctx context.Context) error

func (*Kaniko) BuildDryRun added in v0.6.0

func (kaniko *Kaniko) BuildDryRun() (string, error)

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)

Jump to

Keyboard shortcuts

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