Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface { WatchModels() state.StringsWatcher GetModel(names.ModelTag) (BackendModel, error) }
Backend defines the State functionality used by the manager worker.
type BackendModel ¶
type BackendModel interface {
MigrationMode() state.MigrationMode
}
type BackendShim ¶
func (BackendShim) GetModel ¶
func (s BackendShim) GetModel(tag names.ModelTag) (BackendModel, error)
type Config ¶
type Config struct { ControllerUUID string Backend Backend NewWorker NewWorkerFunc ErrorDelay time.Duration }
Config holds the dependencies and configuration necessary to run a model worker manager.
type NewWorkerFunc ¶
NewWorkerFunc should return a worker responsible for running all a model's required workers; and for returning nil when there's no more model to manage.
Click to show internal directories.
Click to hide internal directories.