{"modulePath":"github.com/UnityTech/client-go","version":"v11.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package framework\n\n## Types\n\n```go\ntype FakeControllerSource struct {\n\tItems map[nnu]runtime.Object\n\n\tBroadcaster *watch.Broadcaster\n\t// contains filtered or unexported fields\n}\n```\nFakeControllerSource implements listing/watching for testing.\n\n```go\nfunc NewFakeControllerSource() *FakeControllerSource\n```\n\n```go\nfunc (f *FakeControllerSource) Add(obj runtime.Object)\n```\nAdd adds an object to the set and sends an add event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) AddDropWatch(obj runtime.Object)\n```\nAddDropWatch adds an object to the set but forgets to send an add event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) Change(e watch.Event, watchProbability float64)\n```\nChange records the given event (setting the object's resource version) and sends a watch event with the specified probability.\n\n```go\nfunc (f *FakeControllerSource) Delete(lastValue runtime.Object)\n```\nDelete deletes an object from the set and sends a delete event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) DeleteDropWatch(lastValue runtime.Object)\n```\nDeleteDropWatch deletes an object from the set but forgets to send a delete event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) List(options metav1.ListOptions) (runtime.Object, error)\n```\nList returns a list object, with its resource version set.\n\n```go\nfunc (f *FakeControllerSource) Modify(obj runtime.Object)\n```\nModify updates an object in the set and sends a modified event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) ModifyDropWatch(obj runtime.Object)\n```\nModifyDropWatch updates an object in the set but forgets to send a modify event to watchers. obj's ResourceVersion is set.\n\n```go\nfunc (f *FakeControllerSource) Shutdown()\n```\nShutdown closes the underlying broadcaster, waiting for events to be delivered. It's an error to call any method after calling shutdown. This is enforced by Shutdown() leaving f locked.\n\n```go\nfunc (f *FakeControllerSource) Watch(options metav1.ListOptions) (watch.Interface, error)\n```\nWatch returns a watch, which will be pre-populated with all changes after resourceVersion.\n\n```go\ntype FakePVCControllerSource struct {\n\tFakeControllerSource\n}\n```\n\n```go\nfunc NewFakePVCControllerSource() *FakePVCControllerSource\n```\n\n```go\nfunc (f *FakePVCControllerSource) List(options metav1.ListOptions) (runtime.Object, error)\n```\nList returns a list object, with its resource version set.\n\n```go\ntype FakePVControllerSource struct {\n\tFakeControllerSource\n}\n```\n\n```go\nfunc NewFakePVControllerSource() *FakePVControllerSource\n```\n\n```go\nfunc (f *FakePVControllerSource) List(options metav1.ListOptions) (runtime.Object, error)\n```\nList returns a list object, with its resource version set.\n\n","path":"github.com/UnityTech/client-go/tools/cache/testing","name":"framework","synopsis":"","isRedistributable":true}
