macsandbox

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

View Source
var DefaultProfile = Profile{
	ReadableDir: []string{"/usr/lib"},
}

DefaultProfile defines the minimum default profile to run programs

Functions

func NewBuilder

func NewBuilder(wd string, readablePath, writablePath []string, network bool) pool.EnvBuilder

NewBuilder creates Builder to create sandbox environment

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder to create sandbox environment

func (*Builder) Build

func (b *Builder) Build() (pool.Environment, error)

Build create a sandbox environment

type Profile

type Profile struct {
	WritableDir, ReadableDir []string
	Network                  bool
}

Profile defines MacOS sandbox profile

func (*Profile) Build

func (p *Profile) Build() (string, error)

Build generates the sandbox profile

Jump to

Keyboard shortcuts

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