Documentation
¶
Overview ¶
Package bwrap implements a bubblewrap-compatible command line for running commands in a gVisor sandbox.
Index ¶
- type CapOp
- type CapOpType
- type Cli
- func (c *Cli) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Cli) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Cli) Name() string
- func (c *Cli) SetFlags(f *flag.FlagSet)
- func (*Cli) Synopsis() string
- func (*Cli) Usage() string
- type HostDir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli implements subcommands.Command for the "bwrap" command.
func (*Cli) Execute ¶
func (c *Cli) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type HostDir ¶
type HostDir struct {
// Dest is the sandbox path, as given on the command line.
Dest string
// Path is the host path behind Dest.
Path string
// ReadOnly reports whether the bind mount behind Dest is read-only.
ReadOnly bool
// Perms is the mode of the directory, from --perms or defaultDirPerms.
Perms uint32
}
HostDir is a --dir that a bind mount backs, so it is created on the host rather than mounted as a tmpfs.
Click to show internal directories.
Click to hide internal directories.