buildkit

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientBuilder

func ClientBuilder(addr string) *clientBuilder

func NewDockerAuthProvider

func NewDockerAuthProvider(configDir string) session.Attachable

NewDockerAuthProvider was pulled directly from the buildkit source code and modified to accept a config directory.

The Docker library exposes a couple of functions for loading authentication credentials but buildkit only leverages a method that pulls them from the DOCKER_CONFIG environment variable. Rather than setting in-proc envvars, I will submit an issue/PR with buildkit to see if they can include this option as well.

Types

type BuildOptions

type BuildOptions struct {
	Context                  string
	ContextDir               string
	Images                   []string
	BuildArgs                []string
	NoCache                  bool
	ImportCache              []string
	DisableInlineCacheExport bool
	Secrets                  map[string]string
}

type Buildkit

type Buildkit interface {
	Build(ctx context.Context, opts BuildOptions) error
	Cache(ctx context.Context, image string) error
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Build

func (c *Client) Build(ctx context.Context, opts BuildOptions) error

func (*Client) Cache

func (c *Client) Cache(ctx context.Context, image string) error

func (*Client) Prune

func (c *Client) Prune() error

type DiscardCloser

type DiscardCloser struct {
	io.Writer
}

func (DiscardCloser) Close

func (DiscardCloser) Close() error

type LogWriter

type LogWriter struct {
	Logger logr.Logger
}

func (*LogWriter) Write

func (w *LogWriter) Write(msg []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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