Documentation
¶
Overview ¶
Package integration provides the plugin system for integrating O² Control with external services like DCS, Bookkeeping, ODC, and other ALICE systems.
Index ¶
- func ExtractRunTypeOrUndefined(varStack map[string]string) string
- func NewContext(envId string, varStack map[string]string, timeout time.Duration) (context.Context, context.CancelFunc)
- func NewContextEmptyEnvIdRunType(timeout time.Duration) (context.Context, context.CancelFunc)
- func RegisterPlugin(pluginName string, endpointArgumentName string, newFunc NewFunc)
- func RegisteredPlugins() map[string]func() Plugin
- func Reset()
- type NewFunc
- type Plugin
- type Plugins
- func (p Plugins) CallStack(data interface{}) (stack map[string]interface{})
- func (p Plugins) DestroyAll()
- func (p Plugins) GetData(argv []any) (data map[string]string)
- func (p Plugins) GetEnvironmentsData(envIds []uid.ID) (data map[uid.ID]map[string]string)
- func (p Plugins) GetEnvironmentsShortData(envIds []uid.ID) (data map[uid.ID]map[string]string)
- func (p Plugins) InitAll(fid string)
- func (p Plugins) ObjectStack(varStack map[string]string, baseConfigStack map[string]string) (stack map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractRunTypeOrUndefined ¶ added in v1.43.0
func NewContext ¶ added in v1.43.0
func NewContextEmptyEnvIdRunType ¶ added in v1.43.0
func RegisterPlugin ¶ added in v0.20.2
func RegisteredPlugins ¶ added in v0.22.80
Types ¶
type Plugin ¶
type Plugin interface { GetName() string GetPrettyName() string GetEndpoint() string GetConnectionState() string GetData(argv []any) string GetEnvironmentsData(envIds []uid.ID) map[uid.ID]string GetEnvironmentsShortData(envIds []uid.ID) map[uid.ID]string Init(instanceId string) error CallStack(data interface{}) map[string]interface{} // used in hook call context ObjectStack(varStack map[string]string, baseConfigStack map[string]string) map[string]interface{} // all other ProcessTemplates contexts Destroy() error }
type Plugins ¶
type Plugins []Plugin
func PluginsInstance ¶
func PluginsInstance() Plugins
func (Plugins) DestroyAll ¶
func (p Plugins) DestroyAll()
func (Plugins) GetEnvironmentsData ¶ added in v0.56.0
func (Plugins) GetEnvironmentsShortData ¶ added in v0.79.0
Directories
¶
Path | Synopsis |
---|---|
Package bookkeeping provides integration with the ALICE Bookkeeping system for tracking runs and retrieving LHC fill information.
|
Package bookkeeping provides integration with the ALICE Bookkeeping system for tracking runs and retrieving LHC fill information. |
Package ccdb provides integration with the Condition and Calibration Database (CCDB) for creating and managing General Run Parameters (GRP) objects.
|
Package ccdb provides integration with the Condition and Calibration Database (CCDB) for creating and managing General Run Parameters (GRP) objects. |
Package dcs provides integration with the ALICE Detector Control System (DCS) for managing detector operations and state compatibility checks.
|
Package dcs provides integration with the ALICE Detector Control System (DCS) for managing detector operations and state compatibility checks. |
Package ddsched provides integration with the Data Distribution (DD) scheduler for managing the pool of FLPs participating in data taking operations.
|
Package ddsched provides integration with the Data Distribution (DD) scheduler for managing the pool of FLPs participating in data taking operations. |
Package odc provides integration with the Online Device Control (ODC) system for managing the ALICE event processing farm during data taking and offline processing.
|
Package odc provides integration with the Online Device Control (ODC) system for managing the ALICE event processing farm during data taking and offline processing. |
Package testplugin provides a test integration plugin that serves as an example and is used for testing the plugin system functionality.
|
Package testplugin provides a test integration plugin that serves as an example and is used for testing the plugin system functionality. |
Package trg provides integration with the ALICE trigger system.
|
Package trg provides integration with the ALICE trigger system. |
Click to show internal directories.
Click to hide internal directories.