package
0.0.0-20241001071744-57307b5037a3
Repository: https://github.com/openshift/ocm-agent.git
Documentation: pkg.go.dev

# 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 client -destination=cr-client.go sigs.k8s.io/controller-runtime/pkg/client Client,StatusWriter,Reader,Writer

To make sure you have mockgen locally, can run the following command:

$ make ensure-mockgen

# Functions

NewMockClient creates a new mock instance.
NewMockReader creates a new mock instance.
NewMockStatusWriter 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.
MockWriter is a mock of Writer interface.
MockWriterMockRecorder is the mock recorder for MockWriter.