Documentation
¶
Overview ¶
Package starlark embeds Starlark with cancellable, isolated parallel tasks.
Index ¶
- type Engine
- type Logger
- type Option
- func WithAtmosCommands(catalog *flags.CommandCatalog) Option
- func WithAtmosExecutable(executable func() (string, error)) Option
- func WithFileSystem(fs automation.FileSystem) Option
- func WithLogger(logger Logger) Option
- func WithProcessRunner(runner process.Runner) Option
- func WithReadFile(readFile func(string) ([]byte, error)) Option
- func WithRetryClock(clock retry.Clock) Option
- func WithTaskObserver(observe func(TaskEvent)) Option
- type TaskEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine contains immutable host services shared by independent invocations.
func (*Engine) EvaluateValue ¶
EvaluateValue evaluates a function body with a read-only configuration context. Wrapping the parsed AST, rather than the source text, preserves YAML line numbers.
type Option ¶
type Option func(*Engine)
Option configures the host services. Injected services must be concurrency safe.
func WithAtmosCommands ¶
func WithAtmosCommands(catalog *flags.CommandCatalog) Option
WithAtmosCommands supplies an immutable snapshot of the host CLI's command registry.
func WithAtmosExecutable ¶
WithAtmosExecutable supplies the current Atmos binary lookup for embedded hosts.
func WithFileSystem ¶
func WithFileSystem(fs automation.FileSystem) Option
WithFileSystem supplies read-only filesystem metadata operations.
func WithLogger ¶
WithLogger supplies the logger behind log.trace/debug/info/warn/error. A nil logger resolves Atmos's current default logger at each call.
func WithProcessRunner ¶
WithProcessRunner supplies the process execution boundary, including test mocks.
func WithReadFile ¶
WithReadFile supplies local module and fs.read_file contents.
func WithRetryClock ¶
WithRetryClock supplies time for retry backoff, including deterministic tests.
func WithTaskObserver ¶
WithTaskObserver receives serialized branch lifecycle events.
Source Files
¶
- atmos.go
- backtrace.go
- ci.go
- ci_check.go
- ci_context.go
- ci_template.go
- component.go
- component_handle.go
- defer.go
- dependencies.go
- engine.go
- error_builder.go
- errors.go
- evaluation.go
- evaluation_context.go
- evaluation_values.go
- file_context.go
- filesystem.go
- filesystem_metadata.go
- hook.go
- lazy_component.go
- log.go
- numeric.go
- output.go
- parallel.go
- process.go
- process_policy.go
- process_which.go
- recursion.go
- result_data.go
- steps.go
- task.go
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
convert
Package convert shares Starlark value conversion and argument diagnostics between the runtime and independent standard-library bindings.
|
Package convert shares Starlark value conversion and argument diagnostics between the runtime and independent standard-library bindings. |
|
stdlib
|
|
|
cli
Package cli exposes native Atmos command definitions to standalone programs.
|
Package cli exposes native Atmos command definitions to standalone programs. |
|
digest
Package digest exposes message digests to the Atmos Automation Language.
|
Package digest exposes message digests to the Atmos Automation Language. |