agent

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(agent Agent) dependency.Manifold

Manifold returns a manifold that starts a worker proxying the supplied Agent for use by other workers.

Types

type Agent

type Agent interface {
	Tag() names.Tag
	CurrentConfig() agent.Config
	ChangeConfig(agent.ConfigMutator) error
	SetAPIHostPorts([][]network.HostPort) error
}

Agent is the interface exposed to workers that depend upon an agent's representation in its dependency.Engine. TODO(fwereade) this could *surely* be cleaned up, I'm not at all convinced these all need to go together: in particular, can't we accomplish the same function as SetAPIHostPorts with ChangeConfig?

Jump to

Keyboard shortcuts

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