app

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppFlagLogLevel     = "log-level"
	AppFlagOutput       = "output"
	AppFlagROPaths      = "ro"
	AppFlagRWPaths      = "rw"
	AppFlagTCPListen    = "tcp-listen"
	AppFlagTCPConnect   = "tcp-connect"
	AppFlagAllowSockets = "sockets"
	AppFlagAllowSignals = "signals"
	AppFlagAddEnvs      = "env"
	AppFlagAddSelf      = "add-self"
	AppFlagAddDeps      = "add-deps"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(logger zerolog.Logger) *App

func (*App) Run

func (a *App) Run(ctx context.Context, cmd *cli.Command) error

type State

type State struct {
	Output  string           `json:"-"`
	Command []string         `json:"command"`
	ROPaths landbox.Paths    `json:"ro_paths,omitempty"`
	RWPaths landbox.Paths    `json:"rw_paths,omitempty"`
	Options landbox.Options  `json:"options"`
	EnvVars []string         `json:"env_vars,omitempty"`
	Journal *journal.Journal `json:"-"`
}

func NewState

func NewState() *State

func (*State) AddEnvVars

func (s *State) AddEnvVars(envs ...string)

func (*State) AddROPaths

func (s *State) AddROPaths(paths ...string)

func (*State) AddRWPaths

func (s *State) AddRWPaths(paths ...string)

func (*State) AddTCPConnectPorts

func (s *State) AddTCPConnectPorts(ports ...string)

func (*State) AddTCPListenPorts

func (s *State) AddTCPListenPorts(ports ...string)

func (*State) AllowEvent

func (s *State) AllowEvent(event *aucoalesce.Event) error

func (*State) Save added in v0.2.0

func (s *State) Save(path string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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