swarm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package swarm implements the Docker Swarm orchestration plugin. It speaks the same Docker daemon API as the docker plugin (via dockerengine) and adds the orchestration objects: services, stacks, nodes, and tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

Connect dials the Swarm manager's Docker daemon for this connection.

func Routes

func Routes() []plugin.Route

Routes wires Swarm-namespaced route IDs to the orchestration handlers.

Types

type Plugin

type Plugin struct{}

func New

func New() *Plugin

func (*Plugin) Connect

func (p *Plugin) Connect(ctx context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

func (*Plugin) Manifest

func (p *Plugin) Manifest() plugin.Manifest

func (*Plugin) Routes

func (p *Plugin) Routes() []plugin.Route

Jump to

Keyboard shortcuts

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