Documentation ¶
Overview ¶
Package cmd holds implementations of the runsc commands.
Index ¶
- Variables
- func Errorf(format string, args ...interface{}) subcommands.ExitStatus
- func Fatalf(format string, args ...interface{})
- type ArchInfo
- type Boot
- type Checkpoint
- type CompatibilityInfo
- type Create
- type Debug
- type Delete
- type Do
- type Events
- type Exec
- type Gofer
- type Help
- type Install
- type Kill
- type List
- type PS
- type Pause
- type Restore
- type Resume
- type Run
- type Spec
- type Start
- type State
- type Statefile
- type Symbolize
- type SyscallDoc
- type Syscalls
- type Uninstall
- type Wait
Constants ¶
This section is empty.
Variables ¶
var ErrorLogger io.Writer
ErrorLogger is where error messages should be written to. These messages are consumed by containerd and show up to users of command line tools, like docker/kubectl.
Functions ¶
func Errorf ¶
func Errorf(format string, args ...interface{}) subcommands.ExitStatus
Errorf logs error to containerd log (--log), to stderr, and debug logs. It returns subcommands.ExitFailure for convenience with subcommand.Execute() methods:
return Errorf("Danger! Danger!")
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 {
// 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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It starts a sandbox in a waiting state.
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 ...interface{}) 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 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 ...interface{}) 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 ...interface{}) 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 ...interface{}) 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 ...interface{}) 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(ctx context.Context, f *flag.FlagSet, args ...interface{}) 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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It starts a process in an already created container.
type Gofer ¶
type Gofer struct {
// 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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
Help implements subcommands.Command for the "help" command. The 'help' command prints help for commands registered to a Commander but also allows for registering additional help commands that print other documentation.
func NewHelp ¶
func NewHelp(cdr *subcommands.Commander) *Help
NewHelp returns a help command for the given commander.
func (*Help) Execute ¶
func (h *Help) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*Help) Register ¶
func (h *Help) Register(cmd subcommands.Command)
Register registers a new help command.
type Install ¶
Install implements subcommands.Command.
func (*Install) Execute ¶
func (i *Install) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) 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 ...interface{}) 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 for the "list" command.
func (*List) Execute ¶
func (l *List) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) 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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Pause ¶
type Pause struct{}
Pause implements subcommands.Command for the "pause" command.
func (*Pause) Execute ¶
func (*Pause) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Resume ¶
type Resume struct{}
Resume implements subcommands.Command for the "resume" command.
func (*Resume) Execute ¶
func (r *Resume) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Start ¶
type Start struct{}
Start implements subcommands.Command for the "start" command.
func (*Start) Execute ¶
func (*Start) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type State ¶
type State struct{}
State implements subcommands.Command for the "state" command.
func (*State) Execute ¶
func (*State) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) 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 ...interface{}) 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 ...interface{}) 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, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
type Uninstall ¶
Uninstall implements subcommands.Command.
func (*Uninstall) Execute ¶
func (u *Uninstall) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) 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 ...interface{}) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It waits for a process in a container to exit before returning.
Source Files ¶
- boot.go
- capability.go
- checkpoint.go
- chroot.go
- cmd.go
- cmd_state_autogen.go
- create.go
- debug.go
- delete.go
- do.go
- error.go
- events.go
- exec.go
- gofer.go
- help.go
- install.go
- kill.go
- list.go
- path.go
- pause.go
- ps.go
- restore.go
- resume.go
- run.go
- spec.go
- start.go
- state.go
- statefile.go
- symbolize.go
- syscalls.go
- wait.go