bkimage

package
v0.4.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamicAuthProvider

func NewDynamicAuthProvider(fn CredentialsFn) session.Attachable

Types

type Client

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

func NewClient

func NewClient(rootDir, backend string, logger logr.Logger) (*Client, error)

func (*Client) ConfigureHosts

func (c *Client) ConfigureHosts(hostCredentials CredentialsFn, matchNonSSL TLSEnabledFn)

func (*Client) GetImage

func (c *Client) GetImage(ctx context.Context, name string) (*ListedImage, error)

func (*Client) PushImage

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

func (*Client) ResetHostConfigurations

func (c *Client) ResetHostConfigurations()

func (*Client) Session

func (c *Client) Session(ctx context.Context, localDirs map[string]string) (*session.Session, session.Dialer, error)

Session creates a new session and its dialer.

The localDirs should reference the "context" and "dockerfile" directories for a particular build.

func (*Client) SetLogger

func (c *Client) SetLogger(logger logr.Logger)

func (*Client) Solve

func (*Client) TagImage

func (c *Client) TagImage(ctx context.Context, src, dest string) error

type CredentialsFn

type CredentialsFn func(host string) (username string, password string, err error)

type ListedImage

type ListedImage struct {
	images.Image
	ContentSize int64
}

type LogrWriter

type LogrWriter struct {
	Logger logr.Logger
}

LogrWriter is an interface adapter for logr.Logger and io.Writer

func (*LogrWriter) Write

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

Write logs a message at the info level.

type TLSEnabledFn

type TLSEnabledFn func(host string) (enabled bool, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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