Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifolds ¶
func Manifolds(config ManifoldConfig) dependency.Manifolds
Manifolds return a set of co-configured manifolds covering the various responsibilities of a model operator agent.
Types ¶
type ManifoldConfig ¶
type ManifoldConfig struct { // Agent contains the agent that will be wrapped and made available to // its dependencies via a dependency.Engine. Agent coreagent.Agent // LogSource will be read from by the logsender component. LogSource logsender.LogRecordCh // AgentConfigChanged is set whenever the unit agent's config // is updated. AgentConfigChanged *voyeur.Value // NewContainerBrokerFunc is a function opens a CAAS provider. NewContainerBrokerFunc caas.NewContainerBrokerFunc Port string ServiceName string ServiceNamespace string // UpdateLoggerConfig is a function that will save the specified // config value as the logging config in the agent.conf file. UpdateLoggerConfig func(string) error // PreviousAgentVersion passes through the version the unit // agent was running before the current restart. PreviousAgentVersion version.Number // UpgradeStepsLock is passed to the upgrade steps gate to // coordinate workers that shouldn't do anything until the // upgrade-steps worker is done. UpgradeStepsLock gate.Lock }
Click to show internal directories.
Click to hide internal directories.