docker

package
v0.0.0-...-ed5a407 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeProject

func ComposeProject(c *container.Summary) string

func ComposeService

func ComposeService(c *container.Summary) string

func ContainerName

func ContainerName(c *container.Summary) string

func LabelValue

func LabelValue(c *container.Summary, key string) string

Types

type Client

type Client interface {
	ContainerList(ctx context.Context, options client.ContainerListOptions) ([]container.Summary, error)
	Events(ctx context.Context, options client.EventsListOptions) (<-chan events.Message, <-chan error)
}

type DockerClient

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

func NewClient

func NewClient() (*DockerClient, error)

func (*DockerClient) ContainerList

func (c *DockerClient) ContainerList(ctx context.Context, options client.ContainerListOptions) ([]container.Summary, error)

func (*DockerClient) Events

func (c *DockerClient) Events(ctx context.Context, options client.EventsListOptions) (<-chan events.Message, <-chan error)

Jump to

Keyboard shortcuts

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