Documentation ¶
Index ¶
- Variables
- type AutomationAnnotation
- type Bundle
- func (bundle *Bundle) Error(msg string)
- func (bundle *Bundle) Log(msg string)
- func (bundle *Bundle) Prepare(cfg config.Config, broker automation.Broker, opts ...automation.EngineOption) error
- func (bundle *Bundle) ReadLogs(minLevel slog.Level) []Log
- func (bundle *Bundle) Runtime() *automation.Engine
- func (bundle *Bundle) Warn(msg string)
- type Log
- type PackageJSON
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AutomationAnnotation ¶
type AutomationAnnotation struct { }
type Bundle ¶
type Bundle struct { // Path holds the path to the bundle root Path string // Main holds the path of the entrypoint script that // should be executed. Main string // Version holds the bundle version. Version string // License is the SPDX license identifier for the automation bundle. License string // ScriptContent holds the content of the main entrypoint file. ScriptContent string // contains filtered or unexported fields }
func (*Bundle) Error ¶
Error logs an error level message. It implements the console.Printer interface.
func (*Bundle) Prepare ¶
func (bundle *Bundle) Prepare(cfg config.Config, broker automation.Broker, opts ...automation.EngineOption) error
func (*Bundle) Runtime ¶
func (bundle *Bundle) Runtime() *automation.Engine
Runtime returns the bundle's automation runtime. This returns nil until bundle.Prepare() is called once.
type PackageJSON ¶
type PackageJSON struct { // Main defines the entrypoint script Main string `json:"main"` // Version holds the version of the package Version string `json:"version"` // License describes the package license License string `json:"license"` // Automation holds additional information for the automation // engine. Automation AutomationAnnotation `json:"automation"` }
Click to show internal directories.
Click to hide internal directories.