package v2
import "github.com/containerd/containerd/runtime/v2"
Index ¶
- type Bundle
- func LoadBundle(ctx context.Context, root, id string) (*Bundle, error)
- func NewBundle(ctx context.Context, root, state, id string, spec []byte) (b *Bundle, err error)
- func (b *Bundle) Delete() error
- type Config
- type TaskManager
- func New(ctx context.Context, root, state, containerdAddress, containerdTTRPCAddress string, events *exchange.Exchange, cs containers.Store) (*TaskManager, error)
- func (m *TaskManager) Add(ctx context.Context, task runtime.Task) error
- func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.CreateOpts) (_ runtime.Task, err error)
- func (m *TaskManager) Delete(ctx context.Context, id string)
- func (m *TaskManager) Get(ctx context.Context, id string) (runtime.Task, error)
- func (m *TaskManager) ID() string
- func (m *TaskManager) Tasks(ctx context.Context, all bool) ([]runtime.Task, error)
Types ¶
type Bundle ¶
type Bundle struct { // ID of the bundle ID string // Path to the bundle Path string // Namespace of the bundle Namespace string }
Bundle represents an OCI bundle
func LoadBundle ¶
LoadBundle loads an existing bundle from disk
func NewBundle ¶
NewBundle returns a new bundle on disk
func (*Bundle) Delete ¶
Delete a bundle atomically
type Config ¶
type Config struct { // Supported platforms Platforms []string `toml:"platforms"` }
Config for the v2 runtime
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
TaskManager manages v2 shim's and their tasks
func New ¶
func New(ctx context.Context, root, state, containerdAddress, containerdTTRPCAddress string, events *exchange.Exchange, cs containers.Store) (*TaskManager, error)
New task manager for v2 shims
func (*TaskManager) Add ¶
Add a runtime task
func (*TaskManager) Create ¶
func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.CreateOpts) (_ runtime.Task, err error)
Create a new task
func (*TaskManager) Delete ¶
func (m *TaskManager) Delete(ctx context.Context, id string)
Delete a runtime task
func (*TaskManager) Get ¶
Get a specific task
func (*TaskManager) ID ¶
func (m *TaskManager) ID() string
ID of the task manager
func (*TaskManager) Tasks ¶
Tasks lists all tasks
Source Files ¶
binary.go bundle.go manager.go manager_unix.go process.go shim.go shim_unix.go
Directories ¶
Path | Synopsis |
---|---|
runtime/v2/logging | |
runtime/v2/runc | |
runtime/v2/runc/options | |
runtime/v2/shim | |
runtime/v2/task |
- Version
- v1.3.3
- Published
- Feb 7, 2020
- Platform
- darwin/amd64
- Imports
- 35 packages
- Last checked
- 1 minute ago –
Tools for package owners.