Documentation ¶
Index ¶
- type AssignFunc
- type CreateFunc
- type EmitFunc
- type GetFunc
- type InitWatchFunc
- type InjectErrFunc
- type IsErrorFunc
- type SetRVFunc
- type Tester
- func (t *Tester) AllowCreateOnUpdate() *Tester
- func (t *Tester) ClusterScope() *Tester
- func (t *Tester) GeneratesName() *Tester
- func (t *Tester) Namer(namer func(int) string) *Tester
- func (t *Tester) ReturnDeletedObject() *Tester
- func (t *Tester) TestContext() api.Context
- func (t *Tester) TestCreate(valid runtime.Object, createFn CreateFunc, getFn GetFunc, ...)
- func (t *Tester) TestDelete(valid runtime.Object, createFn CreateFunc, getFn GetFunc, ...)
- func (t *Tester) TestDeleteGraceful(valid runtime.Object, createFn CreateFunc, getFn GetFunc, expectedGrace int64)
- func (t *Tester) TestGet(valid runtime.Object)
- func (t *Tester) TestList(valid runtime.Object, assignFn AssignFunc)
- func (t *Tester) TestNamespace() string
- func (t *Tester) TestUpdate(valid runtime.Object, createFn CreateFunc, getFn GetFunc, updateFn UpdateFunc, ...)
- func (t *Tester) TestWatch(valid runtime.Object, emitFn EmitFunc, labelsPass, labelsFail []labels.Set, ...)
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitWatchFunc ¶
type InitWatchFunc func()
type InjectErrFunc ¶
type InjectErrFunc func(err error)
type IsErrorFunc ¶
type Tester ¶
func (*Tester) AllowCreateOnUpdate ¶
func (*Tester) ClusterScope ¶
func (*Tester) GeneratesName ¶
func (*Tester) Namer ¶ added in v1.3.0
Namer allows providing a custom name maker By default "foo%d" is used
func (*Tester) ReturnDeletedObject ¶
func (*Tester) TestContext ¶
TestContext returns a namespaced context that will be used when making storage calls. Namespace is determined by TestNamespace()
func (*Tester) TestCreate ¶
func (t *Tester) TestCreate(valid runtime.Object, createFn CreateFunc, getFn GetFunc, invalid ...runtime.Object)
Test creating an object.
func (*Tester) TestDelete ¶
func (t *Tester) TestDelete(valid runtime.Object, createFn CreateFunc, getFn GetFunc, isNotFoundFn IsErrorFunc)
Test deleting an object.
func (*Tester) TestDeleteGraceful ¶
func (t *Tester) TestDeleteGraceful(valid runtime.Object, createFn CreateFunc, getFn GetFunc, expectedGrace int64)
Test gracefully deleting an object.
func (*Tester) TestList ¶
func (t *Tester) TestList(valid runtime.Object, assignFn AssignFunc)
Test listing objects.
func (*Tester) TestNamespace ¶
TestNamespace returns the namespace that will be used when creating contexts. Returns NamespaceNone for cluster-scoped objects.
func (*Tester) TestUpdate ¶
func (t *Tester) TestUpdate(valid runtime.Object, createFn CreateFunc, getFn GetFunc, updateFn UpdateFunc, invalidUpdateFn ...UpdateFunc)
Test updating an object.
Click to show internal directories.
Click to hide internal directories.