Add a method for encoding directly to a io.Writer and use it for HTTPx

This commit is contained in:
Brendan Burns
2015-09-17 17:43:05 -07:00
parent a518a27354
commit 8998219686
10 changed files with 112 additions and 49 deletions

View File

@@ -18,6 +18,7 @@ package meta
import (
"errors"
"io"
"testing"
"k8s.io/kubernetes/pkg/runtime"
@@ -29,6 +30,10 @@ func (fakeCodec) Encode(runtime.Object) ([]byte, error) {
return []byte{}, nil
}
func (fakeCodec) EncodeToStream(runtime.Object, io.Writer) error {
return nil
}
func (fakeCodec) Decode([]byte) (runtime.Object, error) {
return nil, nil
}