runtime compiles on Windows
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
ab74e7b2aa
commit
2b8f022950
16 changed files with 390 additions and 281 deletions
|
@ -3,8 +3,6 @@ package runtime
|
|||
import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
"github.com/opencontainers/specs"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -44,14 +42,13 @@ type state struct {
|
|||
}
|
||||
|
||||
type ProcessState struct {
|
||||
specs.Process
|
||||
Exec bool `json:"exec"`
|
||||
Checkpoint string `json:"checkpoint"`
|
||||
RootUID int `json:"rootUID"`
|
||||
RootGID int `json:"rootGID"`
|
||||
Stdin string `json:"containerdStdin"`
|
||||
Stdout string `json:"containerdStdout"`
|
||||
Stderr string `json:"containerdStderr"`
|
||||
ProcessSpec
|
||||
Exec bool `json:"exec"`
|
||||
Stdin string `json:"containerdStdin"`
|
||||
Stdout string `json:"containerdStdout"`
|
||||
Stderr string `json:"containerdStderr"`
|
||||
|
||||
PlatformProcessState
|
||||
}
|
||||
|
||||
type Stat struct {
|
||||
|
@ -63,18 +60,3 @@ type Stat struct {
|
|||
// can return what they want and we could marshal to json or whatever.
|
||||
Data interface{}
|
||||
}
|
||||
|
||||
type Checkpoint struct {
|
||||
// Timestamp is the time that checkpoint happened
|
||||
Created time.Time `json:"created"`
|
||||
// Name is the name of the checkpoint
|
||||
Name string `json:"name"`
|
||||
// Tcp checkpoints open tcp connections
|
||||
Tcp bool `json:"tcp"`
|
||||
// UnixSockets persists unix sockets in the checkpoint
|
||||
UnixSockets bool `json:"unixSockets"`
|
||||
// Shell persists tty sessions in the checkpoint
|
||||
Shell bool `json:"shell"`
|
||||
// Exit exits the container after the checkpoint is finished
|
||||
Exit bool `json:"exit"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue