Add support for CRI partial log.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-11-17 07:09:43 +00:00
parent cb0d97e74c
commit 48726ecd27
3 changed files with 34 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ import (
"github.com/containerd/containerd"
"github.com/containerd/fifo"
"golang.org/x/net/context"
"k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime"
)
// AttachOptions specifies how to attach to a container.
@@ -47,9 +48,9 @@ const (
// Stdin stream type.
Stdin StreamType = "stdin"
// Stdout stream type.
Stdout StreamType = "stdout"
Stdout StreamType = StreamType(runtime.Stdout)
// Stderr stream type.
Stderr StreamType = "stderr"
Stderr StreamType = StreamType(runtime.Stderr)
)
type wgCloser struct {