Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) ListContainer(ctx context.Context, all bool) ([]*auContainer.Container, error)
- func (c *Client) ListImage(ctx context.Context, all bool) ([]*auContainer.Image, error)
- func (c *Client) ListNetwork(ctx context.Context) ([]*container.Network, error)
- func (c *Client) Logs(ctx context.Context, containerId string) (io.ReadCloser, error)
- func (c *Client) Terminal(ctx *gin.Context, containerId string, user, cmd string) error
- func (c *Client) Version(ctx context.Context) (types.Version, error)
- type ConnectionHelper
- type SSHConnectionHelper
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 NewClientWithSSHAndAPIVersion ¶ added in v0.0.8
func (*Client) ListContainer ¶ added in v0.0.8
func (*Client) ListNetwork ¶ added in v0.0.8
type ConnectionHelper ¶
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) GetHost ¶
func (c *SSHConnectionHelper) GetHost() string
Click to show internal directories.
Click to hide internal directories.