38 lines
849 B
Go
38 lines
849 B
Go
package proc
|
|
|
|
import (
|
|
containerd_types "github.com/containerd/containerd/api/types"
|
|
google_protobuf "github.com/gogo/protobuf/types"
|
|
)
|
|
|
|
// CreateConfig hold task creation configuration
|
|
type CreateConfig struct {
|
|
ID string
|
|
Bundle string
|
|
Runtime string
|
|
Rootfs []*containerd_types.Mount
|
|
Terminal bool
|
|
Stdin string
|
|
Stdout string
|
|
Stderr string
|
|
Checkpoint string
|
|
ParentCheckpoint string
|
|
Options *google_protobuf.Any
|
|
}
|
|
|
|
// ExecConfig holds exec creation configuration
|
|
type ExecConfig struct {
|
|
ID string
|
|
Terminal bool
|
|
Stdin string
|
|
Stdout string
|
|
Stderr string
|
|
Spec *google_protobuf.Any
|
|
}
|
|
|
|
// CheckpointConfig holds task checkpoint configuration
|
|
type CheckpointConfig struct {
|
|
Path string
|
|
Options *google_protobuf.Any
|
|
}
|