Documentation ¶
Index ¶
- type AssignFunc
- type GetFunc
- type SetFunc
- type SetRVFunc
- type Tester
- func (t *Tester) ClusterScope() *Tester
- func (t *Tester) GeneratesName() *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(createFn func() runtime.Object, wasGracefulFn func() bool, ...)
- func (t *Tester) TestDeleteGraceful(createFn func() runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulExtend(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulHasDefault(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulImmediate(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulUsesZeroOnNil(existing runtime.Object, expectedGrace int64)
- func (t *Tester) TestDeleteGracefulWithValue(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteInvokesValidation(invalid ...runtime.Object)
- func (t *Tester) TestDeleteNoGraceful(createFn func() runtime.Object, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteNonExist(createFn func() runtime.Object)
- func (t *Tester) TestGet(obj runtime.Object)
- func (t *Tester) TestList(obj runtime.Object, assignFn AssignFunc, setRVFn SetRVFunc)
- func (t *Tester) TestNamespace() string
- func (t *Tester) TestUpdate(valid runtime.Object, existing, older runtime.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tester ¶
func (*Tester) ClusterScope ¶
func (*Tester) GeneratesName ¶
func (*Tester) TestContext ¶ added in v0.18.0
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(createFn func() runtime.Object, wasGracefulFn func() bool, invalid ...runtime.Object)
Test deleting an object. TODO(wojtek-t): Change it to use AssignFunc instead.
func (*Tester) TestDeleteGraceful ¶ added in v0.14.0
func (t *Tester) TestDeleteGraceful(createFn func() runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
Test graceful deletion. TODO(wojtek-t): Change it to use AssignFunc instead.
func (*Tester) TestDeleteGracefulExtend ¶
func (*Tester) TestDeleteGracefulHasDefault ¶ added in v0.14.0
func (*Tester) TestDeleteGracefulImmediate ¶
func (*Tester) TestDeleteGracefulUsesZeroOnNil ¶ added in v0.14.0
func (*Tester) TestDeleteGracefulWithValue ¶
func (*Tester) TestDeleteInvokesValidation ¶ added in v0.14.0
func (*Tester) TestDeleteNoGraceful ¶ added in v0.14.0
func (*Tester) TestDeleteNonExist ¶ added in v0.14.0
func (*Tester) TestList ¶
func (t *Tester) TestList(obj runtime.Object, assignFn AssignFunc, setRVFn SetRVFunc)
Test listing object.
func (*Tester) TestNamespace ¶ added in v0.18.0
TestNamespace returns the namespace that will be used when creating contexts. Returns NamespaceNone for cluster-scoped objects.
Click to show internal directories.
Click to hide internal directories.