package dockerutil
import "github.com/docker/buildx/util/dockerutil"
Index ¶
- func GetCurrentEndpoint(dockerCli command.Cli) (string, error)
- func GetDockerEndpoint(dockerCli command.Cli, name string) (*docker.EndpointMeta, error)
- type Client
- func NewClient(cli command.Cli) *Client
- func (c *Client) API(name string) (dockerclient.APIClient, error)
- func (c *Client) Features(ctx context.Context, name string) map[Feature]bool
- func (c *Client) LoadImage(ctx context.Context, name string, status progress.Writer) (io.WriteCloser, func(), error)
- type ClientAPI
- type Feature
Functions ¶
func GetCurrentEndpoint ¶
GetCurrentEndpoint returns the current default endpoint value
func GetDockerEndpoint ¶
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 ¶
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 (*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 ¶
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.