Documentation ¶
Index ¶
- type Tester
- func (t *Tester) ClusterScope() *Tester
- func (t *Tester) TestContext() api.Context
- func (t *Tester) TestCreate(valid runtime.Object, 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) TestGet(obj runtime.Object)
- 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) TestContext ¶
TestContext returns a namespaced context that will be used when making storage calls. Namespace is determined by TestNamespace()
func (*Tester) TestCreate ¶
Test creating an object.
func (*Tester) TestDelete ¶
func (t *Tester) TestDelete(createFn func() runtime.Object, wasGracefulFn func() bool, invalid ...runtime.Object)
Test deleting an object.
func (*Tester) TestDeleteGraceful ¶
func (t *Tester) TestDeleteGraceful(createFn func() runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
Test graceful deletion.
func (*Tester) TestNamespace ¶
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.