package testing
import "k8s.io/kubernetes/pkg/storage/testing"
Index ¶
- func CreateList(prefix string, helper storage.Interface, list runtime.Object) error
- func CreateObj(helper storage.Interface, name string, obj, out runtime.Object, ttl uint64) error
- func CreateObjList(prefix string, helper storage.Interface, items []runtime.Object) error
- type TestResource
Functions ¶
func CreateList ¶
CreateList will properly create a list using the storage interface
func CreateObj ¶
CreateObj will create a single object using the storage interface
func CreateObjList ¶
CreateObjList will create a list from the array of objects
Types ¶
type TestResource ¶
type TestResource struct { unversioned.TypeMeta `json:",inline"` api.ObjectMeta `json:"metadata"` Value int `json:"value"` }
func (*TestResource) CodecDecodeSelf ¶
func (x *TestResource) CodecDecodeSelf(d *codec1978.Decoder)
func (*TestResource) CodecEncodeSelf ¶
func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder)
func (*TestResource) GetObjectKind ¶
func (obj *TestResource) GetObjectKind() unversioned.ObjectKind
Source Files ¶
types.generated.go types.go utils.go
- Version
- v1.5.7
- Published
- Apr 27, 2017
- Platform
- windows/amd64
- Imports
- 14 packages
- Last checked
- 36 seconds ago –
Tools for package owners.