docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 8 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 New

func New() (*Client, 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) Remove

func (c *Client) Remove(ctx context.Context, id 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

type Container

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

type Stats

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

Jump to

Keyboard shortcuts

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