Documentation ¶
Overview ¶
Package osbuild is a generated GoMock package.
Index ¶
- type CRRepository
- func (r *CRRepository) Create(ctx context.Context, osBuild *v1alpha1.OSBuild) error
- func (r *CRRepository) Patch(ctx context.Context, old, new *v1alpha1.OSBuild) error
- func (r *CRRepository) PatchStatus(ctx context.Context, osbuild *v1alpha1.OSBuild, patch *client.Patch) error
- func (r *CRRepository) Read(ctx context.Context, name string, namespace string) (*v1alpha1.OSBuild, error)
- type MockRepository
- func (m *MockRepository) Create(arg0 context.Context, arg1 *v1alpha1.OSBuild) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Patch(arg0 context.Context, arg1, arg2 *v1alpha1.OSBuild) error
- func (m *MockRepository) PatchStatus(arg0 context.Context, arg1 *v1alpha1.OSBuild, arg2 *client.Patch) error
- func (m *MockRepository) Read(arg0 context.Context, arg1, arg2 string) (*v1alpha1.OSBuild, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) PatchStatus(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRRepository ¶
type CRRepository struct {
// contains filtered or unexported fields
}
func NewOSBuildRepository ¶
func NewOSBuildRepository(client client.Client) *CRRepository
func (*CRRepository) PatchStatus ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) PatchStatus ¶
func (m *MockRepository) PatchStatus(arg0 context.Context, arg1 *v1alpha1.OSBuild, arg2 *client.Patch) error
PatchStatus mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Patch ¶
func (mr *MockRepositoryMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockRepositoryMockRecorder) PatchStatus ¶
func (mr *MockRepositoryMockRecorder) PatchStatus(arg0, arg1, arg2 interface{}) *gomock.Call
PatchStatus indicates an expected call of PatchStatus.
func (*MockRepositoryMockRecorder) Read ¶
func (mr *MockRepositoryMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
Read indicates an expected call of Read.
type Repository ¶
type Repository interface { Read(ctx context.Context, name string, namespace string) (*v1alpha1.OSBuild, error) Create(ctx context.Context, osBuild *v1alpha1.OSBuild) error PatchStatus(ctx context.Context, osbuild *v1alpha1.OSBuild, patch *client.Patch) error Patch(ctx context.Context, old, new *v1alpha1.OSBuild) error }
Click to show internal directories.
Click to hide internal directories.