kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go

type noncacheableTestObject

// MarshalJSON implements json.Marshaler interface.
func (*noncacheableTestObject) MarshalJSON() ([]byte, error) {}

// Marshal implements proto.Marshaler interface.
func (*noncacheableTestObject) Marshal() ([]byte, error) {}

// DeepCopyObject implements runtime.Object interface.
func (*noncacheableTestObject) DeepCopyObject() runtime.Object {}

// GetObjectKind implements runtime.Object interface.
func (o *noncacheableTestObject) GetObjectKind() schema.ObjectKind {}

// GroupVersionKind implements schema.ObjectKind interface.
func (o *noncacheableTestObject) GroupVersionKind() schema.GroupVersionKind {}

// SetGroupVersionKind implements schema.ObjectKind interface.
func (o *noncacheableTestObject) SetGroupVersionKind(gvk schema.GroupVersionKind) {}

var _

type MockCacheableObject

// DeepCopyObject implements runtime.Object interface.
func (m *MockCacheableObject) DeepCopyObject() runtime.Object {}

// GetObjectKind implements runtime.Object interface.
func (m *MockCacheableObject) GetObjectKind() schema.ObjectKind {}

// GroupVersionKind implements schema.ObjectKind interface.
func (m *MockCacheableObject) GroupVersionKind() schema.GroupVersionKind {}

// SetGroupVersionKind implements schema.ObjectKind interface.
func (m *MockCacheableObject) SetGroupVersionKind(gvk schema.GroupVersionKind) {}

// Marshal implements proto.Marshaler interface.
// This is implemented to avoid errors from protobuf serializer.
func (*MockCacheableObject) Marshal() ([]byte, error) {}

// CacheEncode implements runtime.CacheableObject interface.
func (m *MockCacheableObject) CacheEncode(id runtime.Identifier, encode func(runtime.Object, io.Writer) error, w io.Writer) error {}

// GetObject implements runtime.CacheableObject interface.
func (m *MockCacheableObject) GetObject() runtime.Object {}

func (m *MockCacheableObject) interceptedCalls() []runtime.Identifier {}

type testBuffer

// Write implements io.Writer interface.
func (b *testBuffer) Write(p []byte) (int, error) {}

// CacheableObjectTest implements a test that should be run for every
// runtime.Encoder interface implementation.
// It checks whether CacheableObject is properly supported by it.
func CacheableObjectTest(t *testing.T, e runtime.Encoder) {}