dockerutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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) (client.APIClient, error)

API returns a new docker API client.

func (*Client) Features added in v0.11.0

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 {
	client.APIClient
}

ClientAPI represents an active docker API object.

func NewClientAPI

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

type Feature added in v0.11.0

type Feature string
const OCIImporter Feature = "OCI importer"

Jump to

Keyboard shortcuts

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