docker

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextHost added in v0.6.0

func ContextHost() string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() (*Client, error)

func NewWithHost added in v0.6.0

func NewWithHost(host string) (*Client, error)

func (*Client) Images added in v0.5.0

func (c *Client) Images(ctx context.Context) ([]Image, error)

func (*Client) List

func (c *Client) List(ctx context.Context) ([]Container, error)

func (*Client) Logs

func (c *Client) Logs(ctx context.Context, id string) (<-chan string, error)

func (*Client) Networks added in v0.6.0

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

func (*Client) PruneImages added in v0.5.0

func (c *Client) PruneImages(ctx context.Context) (uint64, error)

func (*Client) Remove

func (c *Client) Remove(ctx context.Context, id string) error

func (*Client) RemoveImage added in v0.5.0

func (c *Client) RemoveImage(ctx context.Context, id string) error

func (*Client) RemoveNetwork added in v0.6.0

func (c *Client) RemoveNetwork(ctx context.Context, id string) error

func (*Client) RemoveVolume added in v0.6.0

func (c *Client) RemoveVolume(ctx context.Context, name string) error

func (*Client) Restart

func (c *Client) Restart(ctx context.Context, id string) error

func (*Client) Start

func (c *Client) Start(ctx context.Context, id string) error

func (*Client) Stats

func (c *Client) Stats(ctx context.Context, id string) (<-chan Stats, error)

func (*Client) Stop

func (c *Client) Stop(ctx context.Context, id string) error

func (*Client) Volumes added in v0.6.0

func (c *Client) Volumes(ctx context.Context) ([]Volume, error)

type Container

type Container struct {
	ID      string
	Name    string
	Image   string
	State   string
	Status  string
	Project string
}

type Image added in v0.5.0

type Image struct {
	ID       string
	Repo     string
	Size     int64
	Created  int64
	Dangling bool
}

type Network added in v0.6.0

type Network struct {
	ID      string
	Name    string
	Driver  string
	Scope   string
	Subnet  string
	Gateway string
}

type Stats

type Stats struct {
	CPUPercent float64
	MemUsage   uint64
	MemLimit   uint64
	MemPercent float64
}

type Volume added in v0.6.0

type Volume struct {
	Name       string
	Driver     string
	Mountpoint string
}

Jump to

Keyboard shortcuts

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