Documentation
¶
Index ¶
- type AssignFunc
- type EmitFunc
- type GetFunc
- type InitWatchFunc
- type InjectErrFunc
- type IsErrorFunc
- type SetFunc
- type SetRVFunc
- type Tester
- func (t *Tester) AllowCreateOnUpdate() *Tester
- func (t *Tester) ClusterScope() *Tester
- func (t *Tester) GeneratesName() *Tester
- func (t *Tester) ReturnDeletedObject() *Tester
- func (t *Tester) TestContext() api.Context
- func (t *Tester) TestCreate(valid runtime.Object, setFn SetFunc, getFn GetFunc, invalid ...runtime.Object)
- func (t *Tester) TestDelete(valid runtime.Object, setFn SetFunc, getFn GetFunc, isNotFoundFn IsErrorFunc)
- func (t *Tester) TestDeleteGraceful(valid runtime.Object, setFn SetFunc, getFn GetFunc, expectedGrace int64)
- func (t *Tester) TestGet(valid runtime.Object)
- func (t *Tester) TestList(valid runtime.Object, assignFn AssignFunc, setRVFn SetRVFunc)
- func (t *Tester) TestNamespace() string
- func (t *Tester) TestUpdate(valid runtime.Object, setFn SetFunc, setRVFn SetRVFunc, getFn GetFunc, ...)
- func (t *Tester) TestWatch(valid runtime.Object, initWatchFn InitWatchFunc, injectErrFn InjectErrFunc, ...)
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitWatchFunc ¶ added in v1.1.1
type InitWatchFunc func()
type InjectErrFunc ¶ added in v1.1.1
type InjectErrFunc func(err error)
type IsErrorFunc ¶ added in v1.1.1
type Tester ¶
func (*Tester) AllowCreateOnUpdate ¶ added in v1.1.1
func (*Tester) ClusterScope ¶
func (*Tester) GeneratesName ¶ added in v1.1.1
func (*Tester) ReturnDeletedObject ¶ added in v1.1.1
func (*Tester) TestContext ¶ added in v0.18.2
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, setFn SetFunc, getFn GetFunc, invalid ...runtime.Object)
Test creating an object.
func (*Tester) TestDelete ¶ added in v0.14.0
func (t *Tester) TestDelete(valid runtime.Object, setFn SetFunc, getFn GetFunc, isNotFoundFn IsErrorFunc)
Test deleting an object.
func (*Tester) TestDeleteGraceful ¶ added in v0.14.0
func (t *Tester) TestDeleteGraceful(valid runtime.Object, setFn SetFunc, getFn GetFunc, expectedGrace int64)
Test gracefully deleting an object.
func (*Tester) TestList ¶ added in v1.1.1
func (t *Tester) TestList(valid runtime.Object, assignFn AssignFunc, setRVFn SetRVFunc)
Test listing objects.
func (*Tester) TestNamespace ¶ added in v0.18.2
TestNamespace returns the namespace that will be used when creating contexts. Returns NamespaceNone for cluster-scoped objects.
func (*Tester) TestUpdate ¶ added in v0.16.0
func (t *Tester) TestUpdate(valid runtime.Object, setFn SetFunc, setRVFn SetRVFunc, getFn GetFunc, updateFn UpdateFunc, invalidUpdateFn ...UpdateFunc)
Test updating an object.
Click to show internal directories.
Click to hide internal directories.