Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
stack.Interface
Controllers() (map[string]controller.Controller, error)
Groups() (map[group.ID]group.Plugin, error)
Metadata() (map[string]metadata.Plugin, error)
Start() (<-chan struct{}, error)
Stop()
}
Backend is the admin / server interface
type Options ¶
type Options struct {
// Name the manager runs as
Name plugin.Name
// Name of the Group plugin
Group plugin.Name
// Name of the Metadata plugin. Must be pointing to Updatable
Metadata plugin.Name
// Controllers are the names of the controllers this manager manages
Controllers []plugin.Name
// Leader is the leader detector
Leader leader.Detector `json:"-" yaml:"-"`
// LeaderStore persists leadership information
LeaderStore leader.Store `json:"-" yaml:"-"`
// SpecStore persists user specs
SpecStore store.Snapshot `json:"-" yaml:"-"`
// MetadataStore persists var information
MetadataStore store.Snapshot `json:"-" yaml:"-"`
// LeaderCommitSpecsRetries is how many times to retry commit specs when becomes leader
LeaderCommitSpecsRetries int
// LeaderCommitSpecsRetryInterval is how long to wait before next retry
LeaderCommitSpecsRetryInterval types.Duration
}
Options capture the options for starting up the plugin.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.