Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) DiskUsage(ctx context.Context, req *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
- func (c *Client) ListImages(ctx context.Context, filters ...string) ([]ListedImage, error)
- func (c *Client) Prune(ctx context.Context) ([]*controlapi.UsageRecord, error)
- func (c *Client) Pull(ctx context.Context, image string) (*ListedImage, error)
- func (c *Client) Push(ctx context.Context, image string, insecure bool) error
- func (c *Client) RemoveImage(ctx context.Context, image string) error
- func (c *Client) SaveImage(ctx context.Context, image, format string, writer io.WriteCloser) error
- func (c *Client) Session(ctx context.Context) (*session.Session, session.Dialer, error)
- func (c *Client) Solve(ctx context.Context, req *controlapi.SolveRequest, ...) error
- func (c *Client) TagImage(ctx context.Context, src, dest string) error
- func (c *Client) Unpack(ctx context.Context, image, dest string) error
- type ListedImage
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 (*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) DiskUsage ¶
func (c *Client) DiskUsage(ctx context.Context, req *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
DiskUsage returns the disk usage being consumed by the buildkit controller.
func (*Client) ListImages ¶
ListImages returns the images from the image store.
func (*Client) Prune ¶ added in v0.4.5
func (c *Client) Prune(ctx context.Context) ([]*controlapi.UsageRecord, error)
Prune calls Prune on the worker.
func (*Client) RemoveImage ¶
RemoveImage removes image from the image store.
func (*Client) SaveImage ¶
SaveImage exports an image as a tarball which can then be imported by docker.
func (*Client) Session ¶ added in v0.3.3
Session creates the session manager and returns the session and it's dialer.
func (*Client) Solve ¶
func (c *Client) Solve(ctx context.Context, req *controlapi.SolveRequest, ch chan *controlapi.StatusResponse) error
Solve calls Solve on the controller.
type ListedImage ¶
ListedImage represents an image structure returuned from ListImages. It extends containerd/images.Image with extra fields.