buildkit

package
v0.1.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
	FetchAndExtractTimeout   time.Duration
}

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 ClientBuilder

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

func NewClientBuilder added in v0.1.14

func NewClientBuilder(addr string) *ClientBuilder

func (*ClientBuilder) Build added in v0.1.14

func (b *ClientBuilder) Build(ctx context.Context) (*Client, error)

func (*ClientBuilder) WithDockerAuthConfig added in v0.1.14

func (b *ClientBuilder) WithDockerAuthConfig(configDir string) *ClientBuilder

func (*ClientBuilder) WithLogger added in v0.1.14

func (b *ClientBuilder) WithLogger(log logr.Logger) *ClientBuilder

func (*ClientBuilder) WithMTLSAuth added in v0.1.14

func (b *ClientBuilder) WithMTLSAuth(caPath, certPath, keyPath string) *ClientBuilder

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