client

package
v0.1.0-rc5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client holds the information for the client we will use for communicating with the buildkit controller.

func New

func New(root, backend string) (*Client, error)

New returns a new client for communicating with the buildkit controller.

func (*Client) Close

func (c *Client) Close()

Close safely closes the client. This used to shut down the FUSE server but since that was removed it is basically a no-op now.

func (*Client) GetImage

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

GetImage returns a single image from the image store.

func (*Client) ListImages

func (c *Client) ListImages(ctx context.Context, filters ...string) ([]ListedImage, error)

ListImages returns the images from the image store.

func (*Client) Push

func (c *Client) Push(ctx context.Context, image string, insecure bool, username, password string) error

Push sends an image to a remote registry.

func (*Client) Session

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

Session creates the session manager and returns the session and it's dialer.

func (*Client) Solve

func (*Client) TagImage

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

type ListedImage

type ListedImage struct {
	images.Image
	ContentSize int64
}

Jump to

Keyboard shortcuts

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