docker

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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
}

func NewClientWithSSH

func NewClientWithSSH(sshInfo *sshutil.HostInfo) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) ContainerList

func (c *Client) ContainerList(ctx context.Context, all bool) ([]*auContainer.Container, error)

func (*Client) ImageList

func (c *Client) ImageList(ctx context.Context, all bool) ([]*auContainer.Image, error)

func (*Client) Version

func (c *Client) Version(ctx context.Context) (types.Version, error)

type ConnectionHelper

type ConnectionHelper interface {
	GetDialer() func(ctx context.Context, network, addr string) (net.Conn, error)
	GetHost() string
}

type SSHConnectionHelper

type SSHConnectionHelper struct {
	Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
	Host   string
}

func GetSSHConnectionHelper

func GetSSHConnectionHelper(info *sshutil.HostInfo) (*SSHConnectionHelper, error)

func (*SSHConnectionHelper) GetDialer

func (c *SSHConnectionHelper) GetDialer() func(ctx context.Context, network, addr string) (net.Conn, error)

func (*SSHConnectionHelper) GetHost

func (c *SSHConnectionHelper) GetHost() string

Jump to

Keyboard shortcuts

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