Documentation ¶
Index ¶
- func NewTestClient(initObjs ...runtime.Object) client.Client
- type FakeEvent
- type FakeRecorder
- func (e FakeRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, ...)
- func (e FakeRecorder) Event(object runtime.Object, eventtype, reason, message string)
- func (e FakeRecorder) Eventf(object runtime.Object, eventtype, reason, messageFmt string, ...)
- func (e FakeRecorder) PastEventf(object runtime.Object, timestamp metav1.Time, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeRecorder ¶
type FakeRecorder struct {
Events []FakeEvent
}
func NewTestRecorder ¶
func NewTestRecorder() FakeRecorder
func (FakeRecorder) AnnotatedEventf ¶
func (e FakeRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{})
AnnotatedEventf is just like eventf, but with annotations attached
func (FakeRecorder) Event ¶
func (e FakeRecorder) Event(object runtime.Object, eventtype, reason, message string)
func (FakeRecorder) Eventf ¶
func (e FakeRecorder) Eventf(object runtime.Object, eventtype, reason, messageFmt string, args ...interface{})
Eventf is just like Event, but with Sprintf for the message field.
func (FakeRecorder) PastEventf ¶
func (e FakeRecorder) PastEventf(object runtime.Object, timestamp metav1.Time, eventtype, reason, messageFmt string, args ...interface{})
PastEventf is just like Eventf, but with an option to specify the event's 'timestamp' field.
Click to show internal directories.
Click to hide internal directories.