Documentation
¶
Overview ¶
Package cmd holds implementations of the runsc commands.
Index ¶
- func WritePidFile(path string, pid int) error
- type ArchInfo
- type Boot
- type CPUFeatures
- func (*CPUFeatures) Execute(_ context.Context, _ *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*CPUFeatures) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*CPUFeatures) Name() string
- func (*CPUFeatures) SetFlags(*flag.FlagSet)
- func (*CPUFeatures) Synopsis() string
- func (*CPUFeatures) Usage() string
- type Checkpoint
- func (c *Checkpoint) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Checkpoint) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Checkpoint) Name() string
- func (c *Checkpoint) SetFlags(f *flag.FlagSet)
- func (*Checkpoint) Synopsis() string
- func (*Checkpoint) Usage() string
- type CheckpointCompression
- type CompatibilityInfo
- type Create
- func (c *Create) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Create) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Create) Name() string
- func (c *Create) SetFlags(f *flag.FlagSet)
- func (*Create) Synopsis() string
- func (*Create) Usage() string
- type Debug
- func (d *Debug) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (d *Debug) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Debug) Name() string
- func (d *Debug) SetFlags(f *flag.FlagSet)
- func (*Debug) Synopsis() string
- func (*Debug) Usage() string
- type Delete
- func (d *Delete) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (d *Delete) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Delete) Name() string
- func (d *Delete) SetFlags(f *flag.FlagSet)
- func (*Delete) Synopsis() string
- func (*Delete) Usage() string
- type Do
- func (c *Do) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Do) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Do) Name() string
- func (c *Do) SetFlags(f *flag.FlagSet)
- func (*Do) Synopsis() string
- func (*Do) Usage() string
- type Events
- func (evs *Events) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (evs *Events) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Events) Name() string
- func (evs *Events) SetFlags(f *flag.FlagSet)
- func (*Events) Synopsis() string
- func (*Events) Usage() string
- type Exec
- func (ex *Exec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (ex *Exec) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Exec) Name() string
- func (ex *Exec) SetFlags(f *flag.FlagSet)
- func (*Exec) Synopsis() string
- func (*Exec) Usage() string
- type FSCheckpoint
- func (c *FSCheckpoint) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *FSCheckpoint) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*FSCheckpoint) Name() string
- func (c *FSCheckpoint) SetFlags(f *flag.FlagSet)
- func (*FSCheckpoint) Synopsis() string
- func (*FSCheckpoint) Usage() string
- type Features
- func (*Features) Execute(_ context.Context, _ *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Features) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Features) Name() string
- func (*Features) SetFlags(*flag.FlagSet)
- func (*Features) Synopsis() string
- func (*Features) Usage() string
- type Gofer
- type Install
- func (i *Install) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Install) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Install) Name() string
- func (i *Install) SetFlags(fs *flag.FlagSet)
- func (*Install) Synopsis() string
- func (*Install) Usage() string
- type Kill
- func (k *Kill) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (k *Kill) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Kill) Name() string
- func (k *Kill) SetFlags(f *flag.FlagSet)
- func (*Kill) Synopsis() string
- func (*Kill) Usage() string
- type List
- func (l *List) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (l *List) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*List) Name() string
- func (l *List) SetFlags(f *flag.FlagSet)
- func (*List) Synopsis() string
- func (*List) Usage() string
- type MetricExport
- func (m *MetricExport) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (m *MetricExport) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*MetricExport) Name() string
- func (m *MetricExport) SetFlags(f *flag.FlagSet)
- func (*MetricExport) Synopsis() string
- func (*MetricExport) Usage() string
- type MetricMetadata
- func (m *MetricMetadata) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (m *MetricMetadata) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*MetricMetadata) Name() string
- func (m *MetricMetadata) SetFlags(f *flag.FlagSet)
- func (*MetricMetadata) Synopsis() string
- func (*MetricMetadata) Usage() string
- type MetricServer
- type Mitigate
- func (m *Mitigate) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Mitigate) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Mitigate) Name() string
- func (m *Mitigate) SetFlags(f *flag.FlagSet)
- func (*Mitigate) Synopsis() string
- func (m *Mitigate) Usage() string
- type PS
- func (ps *PS) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (ps *PS) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*PS) Name() string
- func (ps *PS) SetFlags(f *flag.FlagSet)
- func (*PS) Synopsis() string
- func (*PS) Usage() string
- type Pause
- func (p *Pause) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (p *Pause) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Pause) Name() string
- func (*Pause) SetFlags(*flag.FlagSet)
- func (*Pause) Synopsis() string
- func (*Pause) Usage() string
- type Platforms
- type PortForward
- func (p *PortForward) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (p *PortForward) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*PortForward) Name() string
- func (p *PortForward) SetFlags(f *flag.FlagSet)
- func (*PortForward) Synopsis() string
- func (*PortForward) Usage() string
- type Read
- func (r *Read) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *Read) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Read) Name() string
- func (r *Read) SetFlags(f *flag.FlagSet)
- func (*Read) Synopsis() string
- func (*Read) Usage() string
- type ReadControl
- func (r *ReadControl) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *ReadControl) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*ReadControl) Name() string
- func (r *ReadControl) SetFlags(f *flag.FlagSet)
- func (*ReadControl) Synopsis() string
- func (*ReadControl) Usage() string
- type Restore
- func (r *Restore) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *Restore) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Restore) Name() string
- func (r *Restore) SetFlags(f *flag.FlagSet)
- func (*Restore) Synopsis() string
- func (*Restore) Usage() string
- type Resume
- func (r *Resume) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *Resume) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Resume) Name() string
- func (*Resume) SetFlags(*flag.FlagSet)
- func (*Resume) Synopsis() string
- func (*Resume) Usage() string
- type RootfsUpper
- type Run
- func (r *Run) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *Run) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Run) Name() string
- func (r *Run) SetFlags(f *flag.FlagSet)
- func (*Run) Synopsis() string
- func (*Run) Usage() string
- type SandboxExec
- func (c *SandboxExec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *SandboxExec) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*SandboxExec) Name() string
- func (c *SandboxExec) SetFlags(f *flag.FlagSet)
- func (*SandboxExec) Synopsis() string
- func (*SandboxExec) Usage() string
- type Spec
- func (s *Spec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (s *Spec) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Spec) Name() string
- func (s *Spec) SetFlags(f *flag.FlagSet)
- func (*Spec) Synopsis() string
- func (*Spec) Usage() string
- type Start
- func (s *Start) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (s *Start) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Start) Name() string
- func (*Start) SetFlags(*flag.FlagSet)
- func (*Start) Synopsis() string
- func (*Start) Usage() string
- type State
- func (s *State) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (s *State) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*State) Name() string
- func (*State) SetFlags(*flag.FlagSet)
- func (*State) Synopsis() string
- func (*State) Usage() string
- type Statefile
- func (s *Statefile) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Statefile) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Statefile) Name() string
- func (s *Statefile) SetFlags(f *flag.FlagSet)
- func (*Statefile) Synopsis() string
- func (*Statefile) Usage() string
- type Symbolize
- func (c *Symbolize) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Symbolize) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Symbolize) Name() string
- func (c *Symbolize) SetFlags(f *flag.FlagSet)
- func (*Symbolize) Synopsis() string
- func (*Symbolize) Usage() string
- type SyscallDoc
- type Syscalls
- type Tar
- func (*Tar) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (c *Tar) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Tar) Name() string
- func (*Tar) SetFlags(f *flag.FlagSet)
- func (*Tar) Synopsis() string
- func (*Tar) Usage() string
- type Umount
- func (u *Umount) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (u *Umount) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Umount) Name() string
- func (u *Umount) SetFlags(f *flag.FlagSet)
- func (*Umount) Synopsis() string
- func (*Umount) Usage() string
- type Uninstall
- func (u *Uninstall) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus
- func (*Uninstall) FetchSpec(_ *config.Config, _ *flag.FlagSet) (string, *specs.Spec, error)
- func (*Uninstall) Name() string
- func (u *Uninstall) SetFlags(fs *flag.FlagSet)
- func (*Uninstall) Synopsis() string
- func (*Uninstall) Usage() string
- type Update
- func (u *Update) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (u *Update) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Update) Name() string
- func (u *Update) SetFlags(f *flag.FlagSet)
- func (*Update) Synopsis() string
- func (*Update) Usage() string
- type Usage
- func (u *Usage) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (u *Usage) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Usage) Name() string
- func (u *Usage) SetFlags(f *flag.FlagSet)
- func (*Usage) Synopsis() string
- func (*Usage) Usage() string
- type Wait
- func (wt *Wait) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (wt *Wait) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*Wait) Name() string
- func (wt *Wait) SetFlags(f *flag.FlagSet)
- func (*Wait) Synopsis() string
- func (*Wait) Usage() string
- type WriteControl
- func (r *WriteControl) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (r *WriteControl) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
- func (*WriteControl) Name() string
- func (r *WriteControl) SetFlags(f *flag.FlagSet)
- func (*WriteControl) Synopsis() string
- func (*WriteControl) Usage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WritePidFile ¶
WritePidFile writes pid file atomically if possible.
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.
type CPUFeatures ¶
type CPUFeatures struct{}
CPUFeatures implements subcommands.Command for the "cpu-features" command.
func (*CPUFeatures) Execute ¶
func (*CPUFeatures) Execute(_ context.Context, _ *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*CPUFeatures) Name ¶
func (*CPUFeatures) Name() string
Name implements subcommands.command.name.
func (*CPUFeatures) SetFlags ¶
func (*CPUFeatures) SetFlags(*flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*CPUFeatures) Synopsis ¶
func (*CPUFeatures) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*CPUFeatures) Usage ¶
func (*CPUFeatures) Usage() string
Usage implements subcommands.Command.Usage.
type Checkpoint ¶
type Checkpoint struct {
// contains filtered or unexported fields
}
Checkpoint implements subcommands.Command for the "checkpoint" command.
func (*Checkpoint) Execute ¶
func (c *Checkpoint) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*Checkpoint) Name ¶
func (*Checkpoint) Name() string
Name implements subcommands.Command.Name.
func (*Checkpoint) SetFlags ¶
func (c *Checkpoint) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*Checkpoint) Synopsis ¶
func (*Checkpoint) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*Checkpoint) Usage ¶
func (*Checkpoint) Usage() string
Usage implements subcommands.Command.Usage.
type CheckpointCompression ¶
type CheckpointCompression statefile.CompressionLevel
CheckpointCompression represents checkpoint image writer behavior. The default behavior is to compress because the default behavior used to be to always compress.
func (*CheckpointCompression) Get ¶
func (g *CheckpointCompression) Get() any
Get implements flag.Getter.
func (CheckpointCompression) Level ¶
func (g CheckpointCompression) Level() statefile.CompressionLevel
Level returns corresponding statefile.CompressionLevel value.
func (*CheckpointCompression) Set ¶
func (g *CheckpointCompression) Set(v string) error
Set implements flag.Value.
func (CheckpointCompression) String ¶
func (g CheckpointCompression) String() string
String implements flag.Value.
type CompatibilityInfo ¶
CompatibilityInfo is a map of system and architecture to compatibility doc. Maps operating system to architecture to ArchInfo.
type Create ¶
type Create struct {
// contains filtered or unexported fields
}
Create implements subcommands.Command for the "create" command.
func (*Create) Execute ¶
func (c *Create) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
Debug implements subcommands.Command for the "debug" command.
func (*Debug) Execute ¶
func (d *Debug) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
Delete implements subcommands.Command for the "delete" command.
func (*Delete) Execute ¶
func (d *Delete) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Do ¶
type Do struct {
// contains filtered or unexported fields
}
Do implements subcommands.Command for the "do" command. It sets up a simple sandbox and executes the command inside it. See Usage() for more details.
func (*Do) Execute ¶
func (c *Do) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
Events implements subcommands.Command for the "events" command.
func (*Events) Execute ¶
func (evs *Events) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Exec ¶
type Exec struct {
// contains filtered or unexported fields
}
Exec implements subcommands.Command for the "exec" command.
func (*Exec) Execute ¶
func (ex *Exec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It starts a process in an already created container.
type FSCheckpoint ¶
type FSCheckpoint struct {
// contains filtered or unexported fields
}
FSCheckpoint implements subcommands.Command for the "fscheckpoint" command.
func (*FSCheckpoint) Execute ¶
func (c *FSCheckpoint) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*FSCheckpoint) Name ¶
func (*FSCheckpoint) Name() string
Name implements subcommands.Command.Name.
func (*FSCheckpoint) SetFlags ¶
func (c *FSCheckpoint) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*FSCheckpoint) Synopsis ¶
func (*FSCheckpoint) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*FSCheckpoint) Usage ¶
func (*FSCheckpoint) Usage() string
Usage implements subcommands.Command.Usage.
type Features ¶
type Features struct{}
Features implements subcommands.Command for the "features" command.
func (*Features) Execute ¶
func (*Features) Execute(_ context.Context, _ *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Gofer ¶
type Gofer struct {
util.InternalSubCommand
// contains filtered or unexported fields
}
Gofer implements subcommands.Command for the "gofer" command, which starts a filesystem gofer. This command should not be called directly.
func (*Gofer) Execute ¶
func (g *Gofer) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.
type Install ¶
type Install struct {
ConfigFile string
Runtime string
Experimental bool
Clobber bool
CgroupDriver string
DownloadSidecars sidecarPolicy
SidecarURL string
RequireSidecars sidecarPolicy
// contains filtered or unexported fields
}
Install implements subcommands.Command.
func (*Install) Execute ¶
func (i *Install) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Kill ¶
type Kill struct {
// contains filtered or unexported fields
}
Kill implements subcommands.Command for the "kill" command.
func (*Kill) Execute ¶
func (k *Kill) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type List ¶
type List struct {
// contains filtered or unexported fields
}
List implements subcommands.Command for the "list" command.
func (*List) Execute ¶
func (l *List) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type MetricExport ¶
type MetricExport struct {
// contains filtered or unexported fields
}
MetricExport implements subcommands.Command for the "metric-export" command.
func (*MetricExport) Execute ¶
func (m *MetricExport) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*MetricExport) Name ¶
func (*MetricExport) Name() string
Name implements subcommands.Command.Name.
func (*MetricExport) SetFlags ¶
func (m *MetricExport) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*MetricExport) Synopsis ¶
func (*MetricExport) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*MetricExport) Usage ¶
func (*MetricExport) Usage() string
Usage implements subcommands.Command.Usage.
type MetricMetadata ¶
type MetricMetadata struct {
}
MetricMetadata implements subcommands.Command for the "metric-metadata" command.
func (*MetricMetadata) Execute ¶
func (m *MetricMetadata) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*MetricMetadata) FetchSpec ¶
func (m *MetricMetadata) FetchSpec(conf *config.Config, f *flag.FlagSet) (string, *specs.Spec, error)
FetchSpec implements util.SubCommand.FetchSpec.
func (*MetricMetadata) Name ¶
func (*MetricMetadata) Name() string
Name implements subcommands.Command.Name.
func (*MetricMetadata) SetFlags ¶
func (m *MetricMetadata) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*MetricMetadata) Synopsis ¶
func (*MetricMetadata) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*MetricMetadata) Usage ¶
func (*MetricMetadata) Usage() string
Usage implements subcommands.Command.Usage.
type MetricServer ¶
type MetricServer struct {
metricservercmd.Cmd
}
MetricServer implements subcommands.Command for the "metric-server" command.
func (*MetricServer) Execute ¶
func (m *MetricServer) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Mitigate ¶
type Mitigate struct {
// contains filtered or unexported fields
}
Mitigate implements subcommands.Command for the "mitigate" command.
func (*Mitigate) Execute ¶
func (m *Mitigate) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type PS ¶
type PS struct {
// contains filtered or unexported fields
}
PS implements subcommands.Command for the "ps" command.
func (*PS) Execute ¶
func (ps *PS) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Pause ¶
type Pause struct {
// contains filtered or unexported fields
}
Pause implements subcommands.Command for the "pause" command.
func (*Pause) Execute ¶
func (p *Pause) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Platforms ¶
type Platforms struct{}
Platforms implements subcommands.Command for the "platforms" command.
func (*Platforms) Execute ¶
func (*Platforms) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type PortForward ¶
type PortForward struct {
// contains filtered or unexported fields
}
PortForward implements subcommands.Command for the "portforward" command.
func (*PortForward) Execute ¶
func (p *PortForward) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*PortForward) Name ¶
func (*PortForward) Name() string
Name implements subcommands.Command.Name.
func (*PortForward) SetFlags ¶
func (p *PortForward) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*PortForward) Synopsis ¶
func (*PortForward) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*PortForward) Usage ¶
func (*PortForward) Usage() string
Usage implements subcommands.Command.Usage.
type Read ¶
type Read struct {
// contains filtered or unexported fields
}
Read implements subcommands.Command for the "read" command.
func (*Read) Execute ¶
func (r *Read) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type ReadControl ¶
type ReadControl struct {
// contains filtered or unexported fields
}
ReadControl implements subcommands.Command for the "read-control" command.
func (*ReadControl) Execute ¶
func (r *ReadControl) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*ReadControl) Name ¶
func (*ReadControl) Name() string
Name implements subcommands.Command.Name.
func (*ReadControl) SetFlags ¶
func (r *ReadControl) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*ReadControl) Synopsis ¶
func (*ReadControl) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*ReadControl) Usage ¶
func (*ReadControl) Usage() string
Usage implements subcommands.Command.Usage.
type Restore ¶
type Restore struct {
// Restore flags are a super-set of those for Create.
Create
// contains filtered or unexported fields
}
Restore implements subcommands.Command for the "restore" command.
func (*Restore) Execute ¶
func (r *Restore) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Resume ¶
type Resume struct {
// contains filtered or unexported fields
}
Resume implements subcommands.Command for the "resume" command.
func (*Resume) Execute ¶
func (r *Resume) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type RootfsUpper ¶
type RootfsUpper struct {
// contains filtered or unexported fields
}
RootfsUpper implements subcommands.Command for the "tar rootfs-upper" command.
func (*RootfsUpper) Execute ¶
func (r *RootfsUpper) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.
func (*RootfsUpper) SetFlags ¶
func (r *RootfsUpper) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.
func (*RootfsUpper) Synopsis ¶
func (*RootfsUpper) Synopsis() string
Synopsis implements subcommands.Command.
func (*RootfsUpper) Usage ¶
func (*RootfsUpper) Usage() string
Usage implements subcommands.Command.
type Run ¶
type Run struct {
// Run flags are a super-set of those for Create.
Create
// contains filtered or unexported fields
}
Run implements subcommands.Command for the "run" command.
func (*Run) Execute ¶
func (r *Run) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type SandboxExec ¶
type SandboxExec struct {
// contains filtered or unexported fields
}
SandboxExec implements subcommands.Command for the "sandboxexec" command.
func (*SandboxExec) Execute ¶
func (c *SandboxExec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*SandboxExec) Name ¶
func (*SandboxExec) Name() string
Name implements subcommands.Command.Name.
func (*SandboxExec) SetFlags ¶
func (c *SandboxExec) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*SandboxExec) Synopsis ¶
func (*SandboxExec) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*SandboxExec) Usage ¶
func (*SandboxExec) Usage() string
Usage implements subcommands.Command.Usage.
type Spec ¶
type Spec struct {
// contains filtered or unexported fields
}
Spec implements subcommands.Command for the "spec" command.
func (*Spec) Execute ¶
func (s *Spec) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Start ¶
type Start struct {
// contains filtered or unexported fields
}
Start implements subcommands.Command for the "start" command.
func (*Start) Execute ¶
func (s *Start) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State implements subcommands.Command for the "state" command.
func (*State) Execute ¶
func (s *State) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Statefile ¶
type Statefile struct {
// contains filtered or unexported fields
}
Statefile implements subcommands.Command for the "statefile" command.
func (*Statefile) Execute ¶
func (s *Statefile) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Symbolize ¶
type Symbolize struct {
// contains filtered or unexported fields
}
Symbolize implements subcommands.Command for the "symbolize" command.
func (*Symbolize) Execute ¶
func (c *Symbolize) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
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 {
// contains filtered or unexported fields
}
Syscalls implements subcommands.Command for the "syscalls" command.
func (*Syscalls) Execute ¶
func (s *Syscalls) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Tar ¶
type Tar struct{}
Tar implements subcommands.Command for the "tar" command.
func (*Tar) Execute ¶
func (*Tar) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.
type Umount ¶
type Umount struct {
// contains filtered or unexported fields
}
Umount implements subcommands.Command for the "umount" command.
func (*Umount) Execute ¶
func (u *Umount) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Uninstall ¶
Uninstall implements subcommands.Command.
func (*Uninstall) Execute ¶
func (u *Uninstall) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
Update implements subcommands.Command for the "update" command.
func (*Update) Execute ¶
func (u *Update) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
Usage implements subcommands.Command for the "usage" command.
func (*Usage) Execute ¶
func (u *Usage) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Wait ¶
type Wait struct {
// contains filtered or unexported fields
}
Wait implements subcommands.Command for the "wait" command.
func (*Wait) Execute ¶
func (wt *Wait) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It waits for a process in a container to exit before returning.
type WriteControl ¶
type WriteControl struct {
// contains filtered or unexported fields
}
WriteControl implements subcommands.Command for the "write-control" command.
func (*WriteControl) Execute ¶
func (r *WriteControl) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*WriteControl) Name ¶
func (*WriteControl) Name() string
Name implements subcommands.Command.Name.
func (*WriteControl) SetFlags ¶
func (r *WriteControl) SetFlags(f *flag.FlagSet)
SetFlags implements subcommands.Command.SetFlags.
func (*WriteControl) Synopsis ¶
func (*WriteControl) Synopsis() string
Synopsis implements subcommands.Command.Synopsis.
func (*WriteControl) Usage ¶
func (*WriteControl) Usage() string
Usage implements subcommands.Command.Usage.
Source Files
¶
- boot.go
- checkpoint.go
- chroot.go
- cmd.go
- cpu_features.go
- create.go
- debug.go
- delete.go
- do.go
- events.go
- exec.go
- fd_mapping.go
- features.go
- fscheckpoint.go
- gofer.go
- install.go
- install_sidecars.go
- kill.go
- list.go
- metric_export.go
- metric_metadata.go
- metric_server.go
- mitigate.go
- mitigate_extras.go
- path.go
- pause.go
- pidfile.go
- platforms.go
- portforward.go
- ps.go
- read.go
- read_control.go
- restore.go
- resume.go
- run.go
- sandboxexec.go
- spec.go
- start.go
- state.go
- statefile.go
- symbolize.go
- syscalls.go
- tar.go
- umount_unsafe.go
- update.go
- usage.go
- wait.go
- write_control.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package alias provides aliases for runsc commands.
|
Package alias provides aliases for runsc commands. |
|
bwrap
Package bwrap provides functions for interacting with the bwrap command.
|
Package bwrap provides functions for interacting with the bwrap command. |
|
The metricserver binary is a separate binary that implements the 'runsc metric-server' subcommand.
|
The metricserver binary is a separate binary that implements the 'runsc metric-server' subcommand. |
|
metricservercmd
Package metricservercmd partially implements the 'metric-server' subcommand.
|
Package metricservercmd partially implements the 'metric-server' subcommand. |
|
Package nvproxy provides subcommands for the nvproxy command.
|
Package nvproxy provides subcommands for the nvproxy command. |
|
Package sandboxsetup provides helpers for setting up gVisor sandboxes.
|
Package sandboxsetup provides helpers for setting up gVisor sandboxes. |
|
Package trace provides subcommands for the trace command.
|
Package trace provides subcommands for the trace command. |
|
Package util groups a bunch of common helper functions used by commands.
|
Package util groups a bunch of common helper functions used by commands. |