Documentation ¶
Overview ¶
Package fake provides a fake client for testing.
An fake client is backed by its simple object store indexed by GroupVersionResource. You can create a fake client with optional objects.
client := NewFakeClient(initObjs...) // initObjs is a slice of runtime.Object
You can invoke the methods defined in the Client interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeClient ¶
NewFakeClient creates a new fake client for testing. You can choose to initialize it with a slice of runtime.Object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.