Documentation ¶
Index ¶
- type FakeControllerSource
- func (f *FakeControllerSource) Add(obj runtime.Object)
- func (f *FakeControllerSource) AddDropWatch(obj runtime.Object)
- func (f *FakeControllerSource) Change(e watch.Event, watchProbability float64)
- func (f *FakeControllerSource) Delete(lastValue runtime.Object)
- func (f *FakeControllerSource) DeleteDropWatch(lastValue runtime.Object)
- func (f *FakeControllerSource) List(options metav1.ListOptions) (runtime.Object, error)
- func (f *FakeControllerSource) Modify(obj runtime.Object)
- func (f *FakeControllerSource) ModifyDropWatch(obj runtime.Object)
- func (f *FakeControllerSource) Shutdown()
- func (f *FakeControllerSource) Watch(options metav1.ListOptions) (watch.Interface, error)
- type FakePVCControllerSource
- type FakePVControllerSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeControllerSource ¶
type FakeControllerSource struct { Items map[nnu]runtime.Object Broadcaster *watch.Broadcaster // contains filtered or unexported fields }
FakeControllerSource implements listing/watching for testing.
func NewFakeControllerSource ¶
func NewFakeControllerSource() *FakeControllerSource
func (*FakeControllerSource) Add ¶
func (f *FakeControllerSource) Add(obj runtime.Object)
Add adds an object to the set and sends an add event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) AddDropWatch ¶
func (f *FakeControllerSource) AddDropWatch(obj runtime.Object)
AddDropWatch adds an object to the set but forgets to send an add event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) Change ¶
func (f *FakeControllerSource) Change(e watch.Event, watchProbability float64)
Change records the given event (setting the object's resource version) and sends a watch event with the specified probability.
func (*FakeControllerSource) Delete ¶
func (f *FakeControllerSource) Delete(lastValue runtime.Object)
Delete deletes an object from the set and sends a delete event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) DeleteDropWatch ¶
func (f *FakeControllerSource) DeleteDropWatch(lastValue runtime.Object)
DeleteDropWatch deletes an object from the set but forgets to send a delete event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) List ¶
func (f *FakeControllerSource) List(options metav1.ListOptions) (runtime.Object, error)
List returns a list object, with its resource version set.
func (*FakeControllerSource) Modify ¶
func (f *FakeControllerSource) Modify(obj runtime.Object)
Modify updates an object in the set and sends a modified event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) ModifyDropWatch ¶
func (f *FakeControllerSource) ModifyDropWatch(obj runtime.Object)
ModifyDropWatch updates an object in the set but forgets to send a modify event to watchers. obj's ResourceVersion is set.
func (*FakeControllerSource) Shutdown ¶
func (f *FakeControllerSource) Shutdown()
Shutdown 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.
func (*FakeControllerSource) Watch ¶
func (f *FakeControllerSource) Watch(options metav1.ListOptions) (watch.Interface, error)
Watch returns a watch, which will be pre-populated with all changes after resourceVersion.
type FakePVCControllerSource ¶
type FakePVCControllerSource struct {
FakeControllerSource
}
func NewFakePVCControllerSource ¶
func NewFakePVCControllerSource() *FakePVCControllerSource
func (*FakePVCControllerSource) List ¶
func (f *FakePVCControllerSource) List(options metav1.ListOptions) (runtime.Object, error)
List returns a list object, with its resource version set.
type FakePVControllerSource ¶
type FakePVControllerSource struct {
FakeControllerSource
}
func NewFakePVControllerSource ¶
func NewFakePVControllerSource() *FakePVControllerSource
func (*FakePVControllerSource) List ¶
func (f *FakePVControllerSource) List(options metav1.ListOptions) (runtime.Object, error)
List returns a list object, with its resource version set.