Documentation ¶
Index ¶
- func GetObjectFromChan(c chan runtime.Object) runtime.Object
- func NewCluster(name string, readyStatus api_v1.ConditionStatus) *federation_api.Cluster
- func RegisterFakeCopyOnCreate(resource string, client *core.Fake, watcher *watch.FakeWatcher) chan runtime.Object
- func RegisterFakeCopyOnUpdate(resource string, client *core.Fake, watcher *watch.FakeWatcher) chan runtime.Object
- func RegisterFakeList(resource string, client *core.Fake, obj runtime.Object)
- func RegisterFakeWatch(resource string, client *core.Fake) *watch.FakeWatcher
- func ToFederatedInformerForTestOnly(informer util.FederatedInformer) util.FederatedInformerForTestOnly
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObjectFromChan ¶
GetObjectFromChan tries to get an api object from the given channel within a reasonable time (1 min).
func NewCluster ¶
func NewCluster(name string, readyStatus api_v1.ConditionStatus) *federation_api.Cluster
NewCluster build a new cluster object.
func RegisterFakeCopyOnCreate ¶
func RegisterFakeCopyOnCreate(resource string, client *core.Fake, watcher *watch.FakeWatcher) chan runtime.Object
RegisterFakeCopyOnCreate register a reactor in the given fake client that passes all created object to the given watcher and also copies them to a channel for in-test inspection.
func RegisterFakeCopyOnUpdate ¶
func RegisterFakeCopyOnUpdate(resource string, client *core.Fake, watcher *watch.FakeWatcher) chan runtime.Object
RegisterFakeCopyOnCreate register a reactor in the given fake client that passes all updated object to the given watcher and also copies them to a channel for in-test inspection.
func RegisterFakeList ¶
RegisterFakeList registers a list response for the specified resource inside the given fake client. The passed value will be returned with every list call.
func RegisterFakeWatch ¶
func RegisterFakeWatch(resource string, client *core.Fake) *watch.FakeWatcher
RegisterFakeWatch adds a new fake watcher for the specified resource in the given fake client. All subsequent requrest for watch on the client will result in returning this fake watcher.
func ToFederatedInformerForTestOnly ¶
func ToFederatedInformerForTestOnly(informer util.FederatedInformer) util.FederatedInformerForTestOnly
Types ¶
This section is empty.