commit
405fba75dd
@ -28,7 +28,7 @@ import (
|
||||
)
|
||||
|
||||
// Runtime struct to contain the type(ID), engine, and root variables for a default runtime
|
||||
// and a runtime for untrusted worload.
|
||||
// and a runtime for untrusted workload.
|
||||
type Runtime struct {
|
||||
// Type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux
|
||||
Type string `toml:"runtime_type" json:"runtimeType"`
|
||||
|
@ -311,7 +311,7 @@ func (c *criService) loadContainer(ctx context.Context, cntr containerd.Containe
|
||||
c.eventMonitor.startContainerExitMonitor(context.Background(), id, status.Pid, exitCh)
|
||||
}
|
||||
case containerd.Stopped:
|
||||
// Task is stopped. Updata status and delete the task.
|
||||
// Task is stopped. Update status and delete the task.
|
||||
if _, err := t.Delete(ctx, containerd.WithProcessKill); err != nil && !errdefs.IsNotFound(err) {
|
||||
return fmt.Errorf("failed to delete task: %w", err)
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ import (
|
||||
ptypes "github.com/containerd/containerd/protobuf/types"
|
||||
)
|
||||
|
||||
// Service defines the instrospection service interface
|
||||
// Service defines the introspection service interface
|
||||
type Service interface {
|
||||
Plugins(context.Context, []string) (*api.PluginsResponse, error)
|
||||
Server(context.Context, *ptypes.Empty) (*api.ServerResponse, error)
|
||||
|
Loading…
Reference in New Issue
Block a user