Lines Matching defs:Task
42 type Task struct { struct
43 mu sync.Mutex
44 id string
45 pid int
46 shim *client.Client
47 namespace string
48 cg cgroups.Cgroup
49 events *exchange.Exchange
50 tasks *runtime.TaskList
51 bundle *bundle
78 func (t *Task) ID() string {
83 func (t *Task) Namespace() string {
88 func (t *Task) PID() uint32 {
93 func (t *Task) Delete(ctx context.Context) (*runtime.Exit, error) {
125 func (t *Task) Start(ctx context.Context) error {
157 func (t *Task) State(ctx context.Context) (runtime.State, error) {
193 func (t *Task) Pause(ctx context.Context) error {
204 func (t *Task) Resume(ctx context.Context) error {
217 func (t *Task) Kill(ctx context.Context, signal uint32, all bool) error {
229 …nc (t *Task) Exec(ctx context.Context, id string, opts runtime.ExecOpts) (runtime.Process, error) {
251 func (t *Task) Pids(ctx context.Context) ([]runtime.ProcessInfo, error) {
269 func (t *Task) ResizePty(ctx context.Context, size runtime.ConsoleSize) error {
282 func (t *Task) CloseIO(ctx context.Context) error {
294 func (t *Task) Checkpoint(ctx context.Context, path string, options *types.Any) error {
309 func (t *Task) Update(ctx context.Context, resources *types.Any, _ map[string]string) error {
319 func (t *Task) Process(ctx context.Context, id string) (runtime.Process, error) {
331 func (t *Task) Stats(ctx context.Context) (*types.Any, error) {
345 func (t *Task) Cgroup() (cgroups.Cgroup, error) {
355 func (t *Task) Wait(ctx context.Context) (*runtime.Exit, error) {