docker

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 23 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 NewClientWithSSHAndAPIVersion added in v0.0.8

func NewClientWithSSHAndAPIVersion(sshInfo *sshutil.HostInfo, apiVersion string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) ListContainer added in v0.0.8

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

func (*Client) ListImage added in v0.0.8

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

func (*Client) ListNetwork added in v0.0.8

func (c *Client) ListNetwork(ctx context.Context) ([]*container.Network, error)

func (*Client) Logs added in v0.0.8

func (c *Client) Logs(ctx context.Context, containerId string) (io.ReadCloser, error)

func (*Client) Terminal added in v0.0.8

func (c *Client) Terminal(ctx *gin.Context, containerId string, user, cmd string) 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