# README
The cr-client.go
is a lib required by mockgen tests. This lib is created from the controller-runtime client. With change in controller-runtime, we need to update the cr-client.go
file as well. Using the command line, the following command can be used to update the cr-client.go
file:
$ mockgen -package mocks -destination=cr-client.go sigs.k8s.io/controller-runtime/pkg/client Client,StatusWriter,Reader,Writer,SubResourceClient
# Packages
No description provided by the author
# Functions
NewMockClient creates a new mock instance.
NewMockReader creates a new mock instance.
NewMockStatusWriter creates a new mock instance.
NewMockSubResourceClient creates a new mock instance.
NewMockWriter creates a new mock instance.
# Structs
MockClient is a mock of Client interface.
MockClientMockRecorder is the mock recorder for MockClient.
MockReader is a mock of Reader interface.
MockReaderMockRecorder is the mock recorder for MockReader.
MockStatusWriter is a mock of StatusWriter interface.
MockStatusWriterMockRecorder is the mock recorder for MockStatusWriter.
MockSubResourceClient is a mock of SubResourceClient interface.
MockSubResourceClientMockRecorder is the mock recorder for MockSubResourceClient.
MockWriter is a mock of Writer interface.
MockWriterMockRecorder is the mock recorder for MockWriter.