apiserver: k8s.io/apiserver/pkg/storage/testing Index | Files

package testing

import "k8s.io/apiserver/pkg/storage/testing"

Index

Package Files

doc.go types.go utils.go zz_generated.deepcopy.go

func CreateList Uses

func CreateList(prefix string, helper storage.Interface, list runtime.Object) error

CreateList will properly create a list using the storage interface.

func CreateObj Uses

func CreateObj(helper storage.Interface, name string, obj, out runtime.Object, ttl uint64) error

CreateObj will create a single object using the storage interface.

func CreateObjList Uses

func CreateObjList(prefix string, helper storage.Interface, items []runtime.Object) error

CreateObjList will create a list from the array of objects.

func DeepEqualSafePodSpec Uses

func DeepEqualSafePodSpec() example.PodSpec

DeepEqualSafePodSpec returns an example.PodSpec safe for deep-equal operations.

type TestResource Uses

type TestResource struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata"`
    Value             int `json:"value"`
}

func (*TestResource) DeepCopy Uses

func (in *TestResource) DeepCopy() *TestResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.

func (*TestResource) DeepCopyInto Uses

func (in *TestResource) DeepCopyInto(out *TestResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TestResource) DeepCopyObject Uses

func (in *TestResource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Package testing imports 7 packages (graph) and is imported by 1 packages. Updated 2019-11-07. Refresh now. Tools for package owners.