Skip to content

Commit 8ef597e

Browse files
committed
add String() to source interface
Signed-off-by: Troy Connor <[email protected]>
1 parent d19d76c commit 8ef597e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/source/source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ type TypedSource[request comparable] interface {
5656
// Start is internal and should be called only by the Controller to start the source.
5757
// Start must be non-blocking.
5858
Start(context.Context, workqueue.TypedRateLimitingInterface[request]) error
59+
60+
// String enforces the custom source to adhere to the fmt.Stringer interface
61+
// to print when being logged.
62+
String() string
5963
}
6064

6165
// SyncingSource is a source that needs syncing prior to being usable. The controller

0 commit comments

Comments
 (0)