none

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package none provides a no-op sandbox backend that runs commands directly on the host with the same permissions as the current user and no isolation. Use only when agent workloads are fully trusted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() sandboxpkg.Factory

NewFactory returns a Factory for the none backend.

Types

type Factory

type Factory struct{}

Factory creates sessions that execute directly on the host with no sandboxing.

func (*Factory) Available

func (f *Factory) Available() bool

Available returns true on all platforms except Windows.

func (*Factory) CreateSession

func (f *Factory) CreateSession(_ context.Context, policy sandboxpkg.Policy) (sandboxpkg.Session, error)

CreateSession creates a new noneSession.

func (*Factory) Name

func (f *Factory) Name() string

Name returns the backend name.

func (*Factory) Supported

func (f *Factory) Supported(_ sandboxpkg.Policy) error

Supported accepts any policy; the none backend imposes no restrictions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL