Documentation
¶
Index ¶
- type LocalEnvironment
- func (e *LocalEnvironment) Capabilities() environment.Capabilities
- func (e *LocalEnvironment) Create(_ context.Context, config environment.SessionConfig) error
- func (e *LocalEnvironment) CreateSnapshot(context.Context, string) (*environment.SnapshotInfo, error)
- func (e *LocalEnvironment) Destroy(context.Context) error
- func (e *LocalEnvironment) ExecuteTool(ctx context.Context, req environment.ToolRequest, ...) (*environment.ToolResponse, error)
- func (e *LocalEnvironment) Pause(context.Context) error
- func (e *LocalEnvironment) Resume(context.Context) error
- func (e *LocalEnvironment) Rollback(context.Context, string) error
- func (e *LocalEnvironment) State() environment.SessionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalEnvironment ¶
type LocalEnvironment struct {
// contains filtered or unexported fields
}
LocalEnvironment executes tools directly on the local filesystem/processes. Lifecycle methods are no-ops except Destroy, which marks the environment as inactive to prevent further execution.
func NewLocalEnvironment ¶
func NewLocalEnvironment(workDir string, logger *slog.Logger) *LocalEnvironment
func (*LocalEnvironment) Capabilities ¶
func (e *LocalEnvironment) Capabilities() environment.Capabilities
func (*LocalEnvironment) Create ¶
func (e *LocalEnvironment) Create(_ context.Context, config environment.SessionConfig) error
func (*LocalEnvironment) CreateSnapshot ¶
func (e *LocalEnvironment) CreateSnapshot(context.Context, string) (*environment.SnapshotInfo, error)
func (*LocalEnvironment) ExecuteTool ¶
func (e *LocalEnvironment) ExecuteTool(ctx context.Context, req environment.ToolRequest, onProgress func(environment.ToolProgress)) (*environment.ToolResponse, error)
func (*LocalEnvironment) Rollback ¶
func (e *LocalEnvironment) Rollback(context.Context, string) error
func (*LocalEnvironment) State ¶
func (e *LocalEnvironment) State() environment.SessionState
Click to show internal directories.
Click to hide internal directories.