package linux
import "github.com/containerd/containerd/linux"
Index ¶
- func New(ic *plugin.InitContext) (interface{}, error)
- type Config
- type Process
- func (p *Process) CloseIO(ctx context.Context) error
- func (p *Process) ID() string
- func (p *Process) Kill(ctx context.Context, signal uint32, _ bool) error
- func (p *Process) ResizePty(ctx context.Context, size runtime.ConsoleSize) error
- func (p *Process) Start(ctx context.Context) error
- func (p *Process) State(ctx context.Context) (runtime.State, error)
- type Runtime
- func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts) (_ runtime.Task, err error)
- func (r *Runtime) Delete(ctx context.Context, c runtime.Task) (*runtime.Exit, error)
- func (r *Runtime) Get(ctx context.Context, id string) (runtime.Task, error)
- func (r *Runtime) ID() string
- func (r *Runtime) Tasks(ctx context.Context) ([]runtime.Task, error)
- type Task
- func (t *Task) Checkpoint(ctx context.Context, path string, options *types.Any) error
- func (t *Task) CloseIO(ctx context.Context) error
- func (t *Task) DeleteProcess(ctx context.Context, id string) (*runtime.Exit, error)
- func (t *Task) Exec(ctx context.Context, id string, opts runtime.ExecOpts) (runtime.Process, error)
- func (t *Task) ID() string
- func (t *Task) Info() runtime.TaskInfo
- func (t *Task) Kill(ctx context.Context, signal uint32, all bool) error
- func (t *Task) Pause(ctx context.Context) error
- func (t *Task) Pids(ctx context.Context) ([]uint32, error)
- func (t *Task) Process(ctx context.Context, id string) (runtime.Process, error)
- func (t *Task) ResizePty(ctx context.Context, size runtime.ConsoleSize) error
- func (t *Task) Resume(ctx context.Context) error
- func (t *Task) Start(ctx context.Context) error
- func (t *Task) State(ctx context.Context) (runtime.State, error)
- func (t *Task) Update(ctx context.Context, resources *types.Any) error
Functions ¶
func New ¶
func New(ic *plugin.InitContext) (interface{}, error)
Types ¶
type Config ¶
type Config struct { // Shim is a path or name of binary implementing the Shim GRPC API Shim string `toml:"shim,omitempty"` // Runtime is a path or name of an OCI runtime used by the shim Runtime string `toml:"runtime,omitempty"` // NoShim calls runc directly from within the pkg NoShim bool `toml:"no_shim,omitempty"` // Debug enable debug on the shim ShimDebug bool `toml:"shim_debug,omitempty"` }
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) CloseIO ¶
func (*Process) ID ¶
func (*Process) Kill ¶
func (*Process) ResizePty ¶
func (*Process) Start ¶
func (*Process) State ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) Create ¶
func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts) (_ runtime.Task, err error)
func (*Runtime) Delete ¶
func (*Runtime) Get ¶
func (*Runtime) ID ¶
func (*Runtime) Tasks ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Checkpoint ¶
func (*Task) CloseIO ¶
func (*Task) DeleteProcess ¶
func (*Task) Exec ¶
func (*Task) ID ¶
func (*Task) Info ¶
func (*Task) Kill ¶
func (*Task) Pause ¶
func (*Task) Pids ¶
func (*Task) Process ¶
func (*Task) ResizePty ¶
func (*Task) Resume ¶
func (*Task) Start ¶
func (*Task) State ¶
func (*Task) Update ¶
Source Files ¶
bundle.go process.go runtime.go task.go
Directories ¶
Path | Synopsis |
---|---|
linux/runcopts | Package runcopts is a generated protocol buffer package. |
linux/shim | |
linux/shim/v1 | Package shim is a generated protocol buffer package. |
- Version
- v1.0.0-alpha5
- Published
- Aug 17, 2017
- Platform
- linux/amd64
- Imports
- 27 packages
- Last checked
- 1 day ago –
Tools for package owners.