docker

package
v0.0.0-...-2b1da1d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 15 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 GetClient

func GetClient(ctx context.Context) (d *Client, err error)

func (*Client) CpFile

func (d *Client) CpFile(ctx context.Context, containerID, src, dst string) error

func (*Client) Exec

func (d *Client) Exec(ctx context.Context, containerID, cmd string) (string, error)

Exec TODO: now output has extra space prefix, need to fix this bug

func (*Client) GetAllPidList

func (d *Client) GetAllPidList(ctx context.Context, containerID string) ([]base.SimpleProcess, error)

func (*Client) GetPidById

func (d *Client) GetPidById(ctx context.Context, containerID string) (int, error)

func (*Client) KillContainerById

func (d *Client) KillContainerById(ctx context.Context, containerID string) error

KillContainerById convert to static container

func (*Client) ListId

func (d *Client) ListId(ctx context.Context) ([]string, error)

func (*Client) PauseContainerById

func (d *Client) PauseContainerById(ctx context.Context, containerID string) error

func (*Client) RestartContainerById

func (d *Client) RestartContainerById(ctx context.Context, containerID string, timeout int64) error

func (*Client) RmFContainerById

func (d *Client) RmFContainerById(ctx context.Context, containerID string) error

RmFContainerById remove container

func (*Client) UnPauseContainerById

func (d *Client) UnPauseContainerById(ctx context.Context, containerID string) error

Jump to

Keyboard shortcuts

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