Documentation
¶
Overview ¶
Package runner handles the execution of tool operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRunner ¶
type DefaultRunner struct {
// contains filtered or unexported fields
}
DefaultRunner is the default implementation of the Runner interface.
func NewDefaultRunner ¶
func NewDefaultRunner(cache *cache.Cache, log *logger.Logger) *DefaultRunner
NewDefaultRunner creates a new DefaultRunner instance.
type Result ¶
type Result struct {
Error error
Tool *tool.Tool
Metadata map[string]any
Message string
Status Status
}
Result represents the outcome of a tool operation.
type RunOption ¶
type RunOption func(*runOptions)
RunOption configures how a tool operation is executed.
func WithProgressTracker ¶
func WithProgressTracker(tracker getter.ProgressTracker) RunOption
WithProgressTracker sets the progress tracker for downloads.
func WithResolveOptions ¶
func WithResolveOptions(resolveOpts ...tool.ResolveOption) RunOption
WithResolveOptions passes options to the tool's Resolve method.
Click to show internal directories.
Click to hide internal directories.