dockerutil

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 8 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) 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)

Jump to

Keyboard shortcuts

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