Documentation
¶
Index ¶
- type Client
- func (c *Client) Cancel(ctx context.Context, id string) error
- func (c *Client) Check(ctx context.Context) error
- func (c *Client) Close() error
- func (c *Client) Create(ctx context.Context, spec swarmscheduler.Spec) (string, error)
- func (c *Client) Inventory(ctx context.Context) (operationcleanup.ResourceSet, error)
- func (c *Client) ListImages(ctx context.Context) ([]capacity.RuntimeImage, error)
- func (c *Client) ListResults(ctx context.Context) ([]swarmscheduler.JobResult, error)
- func (c *Client) Logs(ctx context.Context, id string, follow bool, output io.Writer) error
- func (c *Client) PruneContainers(ctx context.Context, age time.Duration, all bool) error
- func (c *Client) PruneImages(ctx context.Context, age time.Duration) error
- func (c *Client) PruneNetworks(ctx context.Context, age time.Duration) error
- func (c *Client) PruneVolumes(ctx context.Context) error
- func (c *Client) Remove(ctx context.Context, id string) error
- func (c *Client) RemoveContainer(ctx context.Context, id string) error
- func (c *Client) RemoveImage(ctx context.Context, id string) error
- func (c *Client) RemoveNetwork(ctx context.Context, id string) error
- func (c *Client) RemoveService(ctx context.Context, id string) error
- func (c *Client) RemoveVolume(ctx context.Context, id string) error
- func (c *Client) Status(ctx context.Context, id string) (protocol.Job, error)
- func (c *Client) ValidateImage(ctx context.Context, image string) error
- type Config
- type ErrorClass
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 (*Client) Inventory ¶
func (c *Client) Inventory(ctx context.Context) (operationcleanup.ResourceSet, error)
func (*Client) ListImages ¶
func (*Client) ListResults ¶
func (*Client) PruneContainers ¶
func (*Client) PruneImages ¶
func (*Client) PruneNetworks ¶
func (*Client) RemoveContainer ¶
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
Click to show internal directories.
Click to hide internal directories.