Use Any instead of []byte

This allows us to get the fully TypeURL for consuming code.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-29 15:06:59 -07:00
parent 82d0208aaa
commit 72831b6985
5 changed files with 22 additions and 37 deletions

View File

@@ -1,6 +1,10 @@
package runtime
import "context"
import (
"context"
"github.com/gogo/protobuf/types"
)
type TaskInfo struct {
ID string
@@ -32,15 +36,15 @@ type Task interface {
// CloseStdin closes the processes stdin
CloseIO(context.Context, uint32) error
// Checkpoint checkpoints a container to an image with live system data
Checkpoint(context.Context, string, []byte) error
Checkpoint(context.Context, string, *types.Any) error
// DeleteProcess deletes a specific exec process via the pid
DeleteProcess(context.Context, uint32) (*Exit, error)
// Update sets the provided resources to a running task
Update(context.Context, []byte) error
Update(context.Context, *types.Any) error
}
type ExecOpts struct {
Spec []byte
Spec *types.Any
IO IO
}