// Code generated by MockGen. DO NOT EDIT. // Source: edge-infra.dev/pkg/edge/api/services/artifacts (interfaces: Service) // Package mocks is a generated GoMock package. package mocks import ( context "context" sql "database/sql" reflect "reflect" types "edge-infra.dev/pkg/edge/api/types" gomock "github.com/golang/mock/gomock" ) // MockArtifactsService is a mock of Service interface. type MockArtifactsService struct { ctrl *gomock.Controller recorder *MockArtifactsServiceMockRecorder } // MockArtifactsServiceMockRecorder is the mock recorder for MockArtifactsService. type MockArtifactsServiceMockRecorder struct { mock *MockArtifactsService } // NewMockArtifactsService creates a new mock instance. func NewMockArtifactsService(ctrl *gomock.Controller) *MockArtifactsService { mock := &MockArtifactsService{ctrl: ctrl} mock.recorder = &MockArtifactsServiceMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockArtifactsService) EXPECT() *MockArtifactsServiceMockRecorder { return m.recorder } // AddClusterArtifactVersion mocks base method. func (m *MockArtifactsService) AddClusterArtifactVersion(arg0 context.Context, arg1 *sql.Tx, arg2, arg3 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddClusterArtifactVersion", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) return ret0 } // AddClusterArtifactVersion indicates an expected call of AddClusterArtifactVersion. func (mr *MockArtifactsServiceMockRecorder) AddClusterArtifactVersion(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClusterArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).AddClusterArtifactVersion), arg0, arg1, arg2, arg3) } // DeleteClusterArtifactVersion mocks base method. func (m *MockArtifactsService) DeleteClusterArtifactVersion(arg0 context.Context, arg1 *sql.Tx, arg2, arg3 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteClusterArtifactVersion", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) return ret0 } // DeleteClusterArtifactVersion indicates an expected call of DeleteClusterArtifactVersion. func (mr *MockArtifactsServiceMockRecorder) DeleteClusterArtifactVersion(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).DeleteClusterArtifactVersion), arg0, arg1, arg2, arg3) } // GetAvailableArtifactVersions mocks base method. func (m *MockArtifactsService) GetAvailableArtifactVersions(arg0 context.Context, arg1 string) ([]types.ArtifactVersion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAvailableArtifactVersions", arg0, arg1) ret0, _ := ret[0].([]types.ArtifactVersion) ret1, _ := ret[1].(error) return ret0, ret1 } // GetAvailableArtifactVersions indicates an expected call of GetAvailableArtifactVersions. func (mr *MockArtifactsServiceMockRecorder) GetAvailableArtifactVersions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAvailableArtifactVersions", reflect.TypeOf((*MockArtifactsService)(nil).GetAvailableArtifactVersions), arg0, arg1) } // GetClusterArtifactVersions mocks base method. func (m *MockArtifactsService) GetClusterArtifactVersions(arg0 context.Context, arg1 string) ([]types.ArtifactVersion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetClusterArtifactVersions", arg0, arg1) ret0, _ := ret[0].([]types.ArtifactVersion) ret1, _ := ret[1].(error) return ret0, ret1 } // GetClusterArtifactVersions indicates an expected call of GetClusterArtifactVersions. func (mr *MockArtifactsServiceMockRecorder) GetClusterArtifactVersions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterArtifactVersions", reflect.TypeOf((*MockArtifactsService)(nil).GetClusterArtifactVersions), arg0, arg1) } // GetLatestAvailableArtifactVersion mocks base method. func (m *MockArtifactsService) GetLatestAvailableArtifactVersion(arg0 context.Context, arg1 string) (*types.ArtifactVersion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetLatestAvailableArtifactVersion", arg0, arg1) ret0, _ := ret[0].(*types.ArtifactVersion) ret1, _ := ret[1].(error) return ret0, ret1 } // GetLatestAvailableArtifactVersion indicates an expected call of GetLatestAvailableArtifactVersion. func (mr *MockArtifactsServiceMockRecorder) GetLatestAvailableArtifactVersion(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestAvailableArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).GetLatestAvailableArtifactVersion), arg0, arg1) } // UpdateClusterFleetVersionAndArtifact mocks base method. func (m *MockArtifactsService) UpdateClusterFleetVersionAndArtifact(arg0 context.Context, arg1, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClusterFleetVersionAndArtifact", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // UpdateClusterFleetVersionAndArtifact indicates an expected call of UpdateClusterFleetVersionAndArtifact. func (mr *MockArtifactsServiceMockRecorder) UpdateClusterFleetVersionAndArtifact(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterFleetVersionAndArtifact", reflect.TypeOf((*MockArtifactsService)(nil).UpdateClusterFleetVersionAndArtifact), arg0, arg1, arg2) } // UpdateClustersToLatestArtifactVersion mocks base method. func (m *MockArtifactsService) UpdateClustersToLatestArtifactVersion(arg0 context.Context, arg1 string) (int, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClustersToLatestArtifactVersion", arg0, arg1) ret0, _ := ret[0].(int) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateClustersToLatestArtifactVersion indicates an expected call of UpdateClustersToLatestArtifactVersion. func (mr *MockArtifactsServiceMockRecorder) UpdateClustersToLatestArtifactVersion(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClustersToLatestArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).UpdateClustersToLatestArtifactVersion), arg0, arg1) }