package dockerutil

import "github.com/docker/buildx/util/dockerutil"

Index

Functions

func GetCurrentEndpoint

func GetCurrentEndpoint(dockerCli command.Cli) (string, error)

GetCurrentEndpoint returns the current default endpoint value

func GetDockerEndpoint

func GetDockerEndpoint(dockerCli command.Cli, name string) (*docker.EndpointMeta, error)

GetDockerEndpoint returns docker endpoint meta for given context

Types

type Client

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

Client represents an active docker object.

func NewClient

func NewClient(cli command.Cli) *Client

NewClient initializes a new docker client.

func (*Client) API

func (c *Client) API(name string) (dockerclient.APIClient, error)

API returns a new docker API client.

func (*Client) Features

func (c *Client) Features(ctx context.Context, name string) map[Feature]bool

func (*Client) LoadImage

func (c *Client) LoadImage(ctx context.Context, name string, status progress.Writer) (io.WriteCloser, func(), error)

LoadImage imports an image to docker.

type ClientAPI

type ClientAPI struct {
	dockerclient.APIClient
}

ClientAPI represents an active docker API object.

func NewClientAPI

func NewClientAPI(cli command.Cli, ep string) (*ClientAPI, error)

type Feature

type Feature string
const OCIImporter Feature = "OCI importer"

Source Files

api.go client.go context.go features.go progress.go

Version
v0.22.0 (latest)
Published
Mar 17, 2025
Platform
js/wasm
Imports
12 packages
Last checked
3 weeks ago

Tools for package owners.