docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 10 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 NewClient

func NewClient() *Client

NewClient creates a new instance of Client

func (*Client) ContainerLogs

func (d *Client) ContainerLogs(ctx context.Context, id string, options types.ContainerLogsOptions) (<-chan string, <-chan error)

func (*Client) Events

func (d *Client) Events(ctx context.Context) (<-chan events.Message, <-chan error)

func (*Client) ListContainers

func (d *Client) ListContainers(ctx context.Context) ([]Container, error)

func (*Client) WriteContainerLog

func (d *Client) WriteContainerLog(ctx context.Context, w io.Writer, id string, options types.ContainerLogsOptions) error

type Container

type Container struct {
	ID      string   `json:"id"`
	Names   []string `json:"names"`
	Name    string   `json:"name"`
	Image   string   `json:"image"`
	ImageID string   `json:"imageId"`
	Command string   `json:"command"`
	Created int64    `json:"created"`
	State   string   `json:"state"`
	Status  string   `json:"status"`
}

Container represents an internal representation of docker containers

Jump to

Keyboard shortcuts

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