sentrycmd

package
v0.16.10002026110900 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Overview

Package sentrycmd holds the subcommands run by the sentry process.

Index

Constants

This section is empty.

Variables

View Source
var (

	// DirectfsSandboxLinuxCaps is the minimal set of capabilities needed by the
	// sandbox to operate on files in directfs mode.
	DirectfsSandboxLinuxCaps = &specs.LinuxCapabilities{
		Bounding:  directfsSandboxCaps,
		Effective: directfsSandboxCaps,
		Permitted: directfsSandboxCaps,
	}
)

Note that directfsSandboxCaps is the same as caps defined in gofer.go except CAP_SYS_CHROOT because we don't need to chroot in directfs mode.

Functions

func NvproxySupportedDrivers

func NvproxySupportedDrivers() []nvconf.DriverVersion

NvproxySupportedDrivers returns the driver versions that nvproxy supports.

Types

type ArchInfo

type ArchInfo struct {
	// Syscalls maps syscall number for the architecture to the doc.
	Syscalls map[uintptr]SyscallDoc `json:"syscalls"`
}

ArchInfo is compatibility doc for an architecture.

type Boot

type Boot struct {
	util.InternalSubCommand
	// contains filtered or unexported fields
}

Boot implements subcommands.Command for the "boot" command which starts a new sandbox. It should not be called directly.

func (*Boot) Execute

func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute. It starts a sandbox in a waiting state.

func (*Boot) Name

func (*Boot) Name() string

Name implements subcommands.Command.Name.

func (*Boot) SetFlags

func (b *Boot) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Boot) Synopsis

func (*Boot) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Boot) Usage

func (*Boot) Usage() string

Usage implements subcommands.Command.Usage.

type CompatibilityInfo

type CompatibilityInfo map[string]map[string]ArchInfo

CompatibilityInfo is a map of system and architecture to compatibility doc. Maps operating system to architecture to ArchInfo.

type SyscallDoc

type SyscallDoc struct {
	Name string `json:"name"`

	Support string   `json:"support"`
	Note    string   `json:"note,omitempty"`
	URLs    []string `json:"urls,omitempty"`
	// contains filtered or unexported fields
}

SyscallDoc represents a single item of syscall documentation.

type Syscalls

type Syscalls struct {
	forwardcmd.Syscalls
}

Syscalls implements subcommands.Command for the "syscalls" command.

func (*Syscalls) Execute

Execute implements subcommands.Command.Execute.

Jump to

Keyboard shortcuts

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