docker

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 21 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(config Config) (*Client, error)

func (*Client) Cancel

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

func (*Client) Check

func (c *Client) Check(ctx context.Context) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) Create

func (c *Client) Create(ctx context.Context, spec swarmscheduler.Spec) (string, error)

func (*Client) Inventory

func (c *Client) Inventory(ctx context.Context) (operationcleanup.ResourceSet, error)

func (*Client) ListImages

func (c *Client) ListImages(ctx context.Context) ([]capacity.RuntimeImage, error)

func (*Client) ListResults

func (c *Client) ListResults(ctx context.Context) ([]swarmscheduler.JobResult, error)

func (*Client) Logs

func (c *Client) Logs(ctx context.Context, id string, follow bool, output io.Writer) error

func (*Client) PruneContainers

func (c *Client) PruneContainers(ctx context.Context, age time.Duration, all bool) error

func (*Client) PruneImages

func (c *Client) PruneImages(ctx context.Context, age time.Duration) error

func (*Client) PruneNetworks

func (c *Client) PruneNetworks(ctx context.Context, age time.Duration) error

func (*Client) PruneVolumes

func (c *Client) PruneVolumes(ctx context.Context) error

func (*Client) Remove

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

func (*Client) RemoveContainer

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

func (*Client) RemoveImage

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

func (*Client) RemoveNetwork

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

func (*Client) RemoveService

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

func (*Client) RemoveVolume

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

func (*Client) Status

func (c *Client) Status(ctx context.Context, id string) (protocol.Job, error)

func (*Client) ValidateImage

func (c *Client) ValidateImage(ctx context.Context, image string) error

type Config

type Config struct {
	Host string
}

type ErrorClass

type ErrorClass string
const (
	ErrorNone      ErrorClass = "none"
	ErrorNotFound  ErrorClass = "not_found"
	ErrorRetryable ErrorClass = "retryable"
	ErrorPoisoned  ErrorClass = "poisoned_resource"
	ErrorContract  ErrorClass = "contract_violation"
	ErrorPermanent ErrorClass = "permanent"
)

func Classify

func Classify(err error) ErrorClass

Jump to

Keyboard shortcuts

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