package
1.12.0
Repository: https://github.com/docker/libswarm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DeleteTask completely removes the task from the database.
GetTask retrieves the task with id from the datastore.
GetTaskStatus returns the current status for the task.
InitDB prepares a database for writing task data.
New returns a new agent, ready for task dispatch.
NewNode returns new Node instance.
PutTask places the task into the database.
PutTaskStatus updates the status for the task with id.
SetTaskAssignment sets the current assignment state.
TaskAssigned returns true if the task is assigned to the node.
WalkTasks walks all tasks in the datastore.
WalkTaskStatus calls fn for the status of each task.

# Variables

ErrClosed is returned when an operation fails because the resource is closed.

# Structs

Agent implements the primary node functionality for a member of a swarm cluster.
Config provides values for an Agent.
Node implements the primary node functionality for a member of a swarm cluster.
NodeConfig provides values for a Node.

# Interfaces

StatusReporter receives updates to task status.
Worker implements the core task management logic and persistence.