Documentation ¶
Index ¶
- func New(ic *plugin.InitContext) (interface{}, error)
- type Config
- type Process
- func (p *Process) CloseIO(ctx context.Context) error
- func (p *Process) Delete(ctx context.Context) (*runtime.Exit, 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)
- func (p *Process) Wait(ctx context.Context) (*runtime.Exit, error)
- type Runtime
- type ShimOpt
- type Task
- func (t *Task) Cgroup() (cgroups.Cgroup, error)
- func (t *Task) Checkpoint(ctx context.Context, path string, options *types.Any) error
- func (t *Task) CloseIO(ctx context.Context) error
- func (t *Task) Delete(ctx context.Context) (*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) Kill(ctx context.Context, signal uint32, all bool) error
- func (t *Task) Namespace() string
- func (t *Task) Pause(ctx context.Context) error
- func (t *Task) Pids(ctx context.Context) ([]runtime.ProcessInfo, 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) Stats(ctx context.Context) (*types.Any, error)
- func (t *Task) Update(ctx context.Context, resources *types.Any) error
- func (t *Task) Wait(ctx context.Context) (*runtime.Exit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Shim is a path or name of binary implementing the Shim GRPC API Shim string `toml:"shim"` // Runtime is a path or name of an OCI runtime used by the shim Runtime string `toml:"runtime"` // RuntimeRoot is the path that shall be used by the OCI runtime for its data RuntimeRoot string `toml:"runtime_root"` // NoShim calls runc directly from within the pkg NoShim bool `toml:"no_shim"` // Debug enable debug on the shim ShimDebug bool `toml:"shim_debug"` }
Config options for the runtime
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process implements a linux process
func (*Process) Kill ¶
Kill sends the provided signal to the underlying process
Unable to kill all processes in the task using this method on a process
func (*Process) ResizePty ¶
ResizePty changes the side of the process's PTY to the provided width and height
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime for a linux based system
func (*Runtime) Create ¶
func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts) (_ runtime.Task, err error)
Create a new task
type ShimOpt ¶
ShimOpt specifies shim options for initialization and connection
func ShimConnect ¶
ShimConnect is a ShimOpt for connecting to an existing remote shim
func ShimRemote ¶
ShimRemote is a ShimOpt for connecting and starting a remote shim
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task on a linux based system
func (*Task) Checkpoint ¶
Checkpoint creates a system level dump of the task and process information that can be later restored
func (*Task) Kill ¶
Kill the task using the provided signal
Optionally send the signal to all processes that are a child of the task
func (*Task) ResizePty ¶
ResizePty changes the side of the task's PTY to the provided width and height