Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the main entrypoint for the reconciler package; users of the reconciler should instantiate and run a Manager. Manager is the thinnest part of the reconciler package, because it is a long-running blocking routine, making it difficult to test.
func New ¶
func New(client interfaces.BackendClient) *Manager
New creates a new Manager, the main entrypoint for the reconciler package, along with all of the dependent types
func (*Manager) JoinCluster ¶
func (m *Manager) JoinCluster()
JoinCluster notifies the Manager that this node has joined a swarmkit cluster.
func (*Manager) LeaveCluster ¶
func (m *Manager) LeaveCluster()
LeaveCluster notifies the Manager that this node has left a swarmkit cluster
func (*Manager) Run ¶
Run runs the reconciler package. It is a long-running, blocking routine, and should be called inside of a goroutine. When Run stops, it will return nil if it stopped cleanly, or an error otherwise. Run may only be called once; subsequent calls will return an error. This includes if the Manager is stopped for any reason; it may not be restarted once stopped.