Documentation ¶
Overview ¶
Package coremanager encapsulates the logic for configuring, starting and stopping core modules
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreManager ¶
type CoreManager struct {
// contains filtered or unexported fields
}
CoreManager encapsulates the logic for configuring, starting and stopping core modules
func NewCoreManager ¶
func NewCoreManager(context context.T, mr coremodules.ModuleRegistry, cwp *cloudwatchlogspublisher.CloudWatchPublisher, rbt rebooter.IRebootType) (cm *CoreManager, err error)
NewCoreManager creates a new core module manager.
func (*CoreManager) Start ¶
func (c *CoreManager) Start()
Start executes the registered core modules while watching for reboot request
func (*CoreManager) Stop ¶
func (c *CoreManager) Stop()
Stop requests the core modules to stop executing Stop would be called by the agent and should be treated as hard stop
type ICoreManager ¶
type ICoreManager interface { // Start executes the registered core modules Start() // Stop requests the core modules to stop executing Stop() }
Click to show internal directories.
Click to hide internal directories.