Documentation
¶
Index ¶
- func GetPluginRegistry() *plugin.PluginRegistry
- func GetScenario(name string) *scenario.Descriptor
- func GetScenarioCategories() []*scenario.Category
- func GetScenarioEntry(name string) *scenario.ScenarioEntry
- func GetScenarioNames() []string
- func GetScenarioRegistry() *scenario.Registry
- func InitRegistries() (*plugin.PluginRegistry, *scenario.Registry)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginRegistry ¶ added in v1.2.0
func GetPluginRegistry() *plugin.PluginRegistry
GetPluginRegistry returns the global plugin registry. Panics if InitRegistries() has not been called.
func GetScenario ¶ added in v1.1.0
func GetScenario(name string) *scenario.Descriptor
GetScenario finds and returns a scenario descriptor by name. It performs a lookup through the scenario registry and returns the matching descriptor, or nil if no scenario with the given name exists. This function is thread-safe.
func GetScenarioCategories ¶ added in v1.1.16
GetScenarioCategories returns a slice containing all scenario categories including both native and plugin scenarios. Plugin categories are merged with native categories: - Plugin scenarios are added to existing categories if the category name matches - New categories from plugins are appended to the category list - Category descriptions can be updated by plugins (later plugin registrations override earlier ones) This is useful for CLI help text, validation, and displaying available options to users.
func GetScenarioEntry ¶ added in v1.2.0
func GetScenarioEntry(name string) *scenario.ScenarioEntry
GetScenarioEntry finds and returns a scenario entry by name. The entry includes the descriptor and metadata about its source (native or plugin). Returns nil if no scenario with the given name exists. This function is thread-safe.
func GetScenarioNames ¶ added in v1.1.0
func GetScenarioNames() []string
GetScenarioNames returns a slice containing the names of all registered scenarios. This is useful for CLI help text, validation, and displaying available options to users. This function is thread-safe.
func GetScenarioRegistry ¶ added in v1.2.0
GetScenarioRegistry returns the global scenario registry. Panics if InitRegistries() has not been called.
func InitRegistries ¶ added in v1.2.0
func InitRegistries() (*plugin.PluginRegistry, *scenario.Registry)
InitRegistries initializes the plugin and scenario registries. This function is idempotent and safe to call multiple times.
Types ¶
This section is empty.