Documentation ¶
Overview ¶
Package testing contains test helpers for adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFactory ¶
MakeFactory creates a testing factory for our controller.Reconciler, and initializes a Reconciler using the given Ctor as part of the process.
func NewScheme ¶
NewScheme returns a new scheme populated with the types defined in clientSetSchemes.
func TestControllerConstructor ¶
TestControllerConstructor tests that a controller constructor meets our requirements.
Types ¶
type Ctor ¶
type Ctor func(*testing.T, context.Context, *rt.TableRow, *Listers) controller.Reconciler
Ctor constructs a controller.Reconciler.
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
Listers returns listers and objects filtered from those listers.
func NewListers ¶
NewListers returns a new instance of Listers initialized with the given objects.
func (*Listers) GetSourcesObjects ¶
GetSourcesObjects returns objects from the sources API.
Click to show internal directories.
Click to hide internal directories.