cmd

package
v0.0.0-...-23e6066 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package cmd holds implementations of the runsc commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatalf

func Fatalf(s string, args ...interface{})

Fatalf logs to stderr and exits with a failure status code.

Types

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.

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 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.

func (*Create) Name

func (*Create) Name() string

Name implements subcommands.Command.Name.

func (*Create) SetFlags

func (c *Create) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Create) Synopsis

func (*Create) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Create) Usage

func (*Create) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*Delete) Name

func (*Delete) Name() string

Name implements subcommands.Command.Name.

func (*Delete) SetFlags

func (d *Delete) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Delete) Synopsis

func (*Delete) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Delete) Usage

func (*Delete) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*Events) Name

func (*Events) Name() string

Name implements subcommands.Command.Name.

func (*Events) SetFlags

func (evs *Events) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Events) Synopsis

func (*Events) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Events) Usage

func (*Events) Usage() string

Usage implements subcommands.Command.Usage.

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 sandbox.

func (*Exec) Name

func (*Exec) Name() string

Name implements subcommands.Command.Name.

func (*Exec) SetFlags

func (ex *Exec) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Exec) Synopsis

func (*Exec) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Exec) Usage

func (*Exec) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*Gofer) Name

func (*Gofer) Name() string

Name implements subcommands.Command.

func (*Gofer) SetFlags

func (g *Gofer) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.

func (*Gofer) Synopsis

func (*Gofer) Synopsis() string

Synopsis implements subcommands.Command.

func (*Gofer) Usage

func (*Gofer) Usage() string

Usage implements subcommands.Command.

type Kill

type Kill struct{}

Kill implements subcommands.Command for the "kill" command.

func (*Kill) Execute

func (*Kill) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*Kill) Name

func (*Kill) Name() string

Name implements subcommands.Command.Name.

func (*Kill) SetFlags

func (*Kill) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Kill) Synopsis

func (*Kill) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Kill) Usage

func (*Kill) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*List) Name

func (*List) Name() string

Name implements subcommands.command.name.

func (*List) SetFlags

func (l *List) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*List) Synopsis

func (*List) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*List) Usage

func (*List) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*PS) Name

func (*PS) Name() string

Name implements subcommands.Command.Name.

func (*PS) SetFlags

func (ps *PS) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*PS) Synopsis

func (*PS) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*PS) Usage

func (*PS) Usage() string

Usage implements subcommands.Command.Usage.

type Run

type Run struct {
	// Run flags are a super-set of those for Create.
	Create
}

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.

func (*Run) Name

func (*Run) Name() string

Name implements subcommands.Command.Name.

func (*Run) SetFlags

func (r *Run) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Run) Synopsis

func (*Run) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Run) Usage

func (*Run) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*Start) Name

func (*Start) Name() string

Name implements subcommands.Command.Name.

func (*Start) SetFlags

func (*Start) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Start) Synopsis

func (*Start) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Start) Usage

func (*Start) Usage() string

Usage implements subcommands.Command.Usage.

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.

func (*State) Name

func (*State) Name() string

Name implements subcommands.Command.Name.

func (*State) SetFlags

func (*State) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*State) Synopsis

func (*State) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*State) Usage

func (*State) Usage() string

Usage implements subcommands.Command.Usage.

Jump to

Keyboard shortcuts

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