buildkit

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Context                  string
	ContextDir               string
	DockerfileContents       string
	Images                   []string
	BuildArgs                []string
	NoCache                  bool
	ImportCache              []string
	DisableInlineCacheExport bool
	Secrets                  map[string]string
	SecretsData              map[string][]byte
	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) (string, error)

func (*Client) Cache

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

func (*Client) Prune

func (c *Client) Prune() error

func (*Client) ResolveAuth added in v0.8.3

func (c *Client) ResolveAuth(registryHostname string) (authn.Authenticator, 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) WithDockerConfigDir added in v0.3.1

func (b *ClientBuilder) WithDockerConfigDir(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) Close added in v0.11.0

func (w *LogWriter) Close() error

func (*LogWriter) Fd added in v0.11.0

func (w *LogWriter) Fd() uintptr

func (*LogWriter) Name added in v0.11.0

func (w *LogWriter) Name() string

func (*LogWriter) Read added in v0.11.0

func (w *LogWriter) Read(_ []byte) (n int, err error)

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