...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_artifacts_service.go

Documentation: edge-infra.dev/pkg/edge/api/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/edge/api/services/artifacts (interfaces: Service)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	sql "database/sql"
    10  	reflect "reflect"
    11  
    12  	types "edge-infra.dev/pkg/edge/api/types"
    13  	gomock "github.com/golang/mock/gomock"
    14  )
    15  
    16  // MockArtifactsService is a mock of Service interface.
    17  type MockArtifactsService struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockArtifactsServiceMockRecorder
    20  }
    21  
    22  // MockArtifactsServiceMockRecorder is the mock recorder for MockArtifactsService.
    23  type MockArtifactsServiceMockRecorder struct {
    24  	mock *MockArtifactsService
    25  }
    26  
    27  // NewMockArtifactsService creates a new mock instance.
    28  func NewMockArtifactsService(ctrl *gomock.Controller) *MockArtifactsService {
    29  	mock := &MockArtifactsService{ctrl: ctrl}
    30  	mock.recorder = &MockArtifactsServiceMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockArtifactsService) EXPECT() *MockArtifactsServiceMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // AddClusterArtifactVersion mocks base method.
    40  func (m *MockArtifactsService) AddClusterArtifactVersion(arg0 context.Context, arg1 *sql.Tx, arg2, arg3 string) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "AddClusterArtifactVersion", arg0, arg1, arg2, arg3)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // AddClusterArtifactVersion indicates an expected call of AddClusterArtifactVersion.
    48  func (mr *MockArtifactsServiceMockRecorder) AddClusterArtifactVersion(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClusterArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).AddClusterArtifactVersion), arg0, arg1, arg2, arg3)
    51  }
    52  
    53  // DeleteClusterArtifactVersion mocks base method.
    54  func (m *MockArtifactsService) DeleteClusterArtifactVersion(arg0 context.Context, arg1 *sql.Tx, arg2, arg3 string) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "DeleteClusterArtifactVersion", arg0, arg1, arg2, arg3)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // DeleteClusterArtifactVersion indicates an expected call of DeleteClusterArtifactVersion.
    62  func (mr *MockArtifactsServiceMockRecorder) DeleteClusterArtifactVersion(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).DeleteClusterArtifactVersion), arg0, arg1, arg2, arg3)
    65  }
    66  
    67  // GetAvailableArtifactVersions mocks base method.
    68  func (m *MockArtifactsService) GetAvailableArtifactVersions(arg0 context.Context, arg1 string) ([]types.ArtifactVersion, error) {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "GetAvailableArtifactVersions", arg0, arg1)
    71  	ret0, _ := ret[0].([]types.ArtifactVersion)
    72  	ret1, _ := ret[1].(error)
    73  	return ret0, ret1
    74  }
    75  
    76  // GetAvailableArtifactVersions indicates an expected call of GetAvailableArtifactVersions.
    77  func (mr *MockArtifactsServiceMockRecorder) GetAvailableArtifactVersions(arg0, arg1 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAvailableArtifactVersions", reflect.TypeOf((*MockArtifactsService)(nil).GetAvailableArtifactVersions), arg0, arg1)
    80  }
    81  
    82  // GetClusterArtifactVersions mocks base method.
    83  func (m *MockArtifactsService) GetClusterArtifactVersions(arg0 context.Context, arg1 string) ([]types.ArtifactVersion, error) {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "GetClusterArtifactVersions", arg0, arg1)
    86  	ret0, _ := ret[0].([]types.ArtifactVersion)
    87  	ret1, _ := ret[1].(error)
    88  	return ret0, ret1
    89  }
    90  
    91  // GetClusterArtifactVersions indicates an expected call of GetClusterArtifactVersions.
    92  func (mr *MockArtifactsServiceMockRecorder) GetClusterArtifactVersions(arg0, arg1 interface{}) *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterArtifactVersions", reflect.TypeOf((*MockArtifactsService)(nil).GetClusterArtifactVersions), arg0, arg1)
    95  }
    96  
    97  // GetLatestAvailableArtifactVersion mocks base method.
    98  func (m *MockArtifactsService) GetLatestAvailableArtifactVersion(arg0 context.Context, arg1 string) (*types.ArtifactVersion, error) {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "GetLatestAvailableArtifactVersion", arg0, arg1)
   101  	ret0, _ := ret[0].(*types.ArtifactVersion)
   102  	ret1, _ := ret[1].(error)
   103  	return ret0, ret1
   104  }
   105  
   106  // GetLatestAvailableArtifactVersion indicates an expected call of GetLatestAvailableArtifactVersion.
   107  func (mr *MockArtifactsServiceMockRecorder) GetLatestAvailableArtifactVersion(arg0, arg1 interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestAvailableArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).GetLatestAvailableArtifactVersion), arg0, arg1)
   110  }
   111  
   112  // UpdateClusterFleetVersionAndArtifact mocks base method.
   113  func (m *MockArtifactsService) UpdateClusterFleetVersionAndArtifact(arg0 context.Context, arg1, arg2 string) error {
   114  	m.ctrl.T.Helper()
   115  	ret := m.ctrl.Call(m, "UpdateClusterFleetVersionAndArtifact", arg0, arg1, arg2)
   116  	ret0, _ := ret[0].(error)
   117  	return ret0
   118  }
   119  
   120  // UpdateClusterFleetVersionAndArtifact indicates an expected call of UpdateClusterFleetVersionAndArtifact.
   121  func (mr *MockArtifactsServiceMockRecorder) UpdateClusterFleetVersionAndArtifact(arg0, arg1, arg2 interface{}) *gomock.Call {
   122  	mr.mock.ctrl.T.Helper()
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterFleetVersionAndArtifact", reflect.TypeOf((*MockArtifactsService)(nil).UpdateClusterFleetVersionAndArtifact), arg0, arg1, arg2)
   124  }
   125  
   126  // UpdateClustersToLatestArtifactVersion mocks base method.
   127  func (m *MockArtifactsService) UpdateClustersToLatestArtifactVersion(arg0 context.Context, arg1 string) (int, error) {
   128  	m.ctrl.T.Helper()
   129  	ret := m.ctrl.Call(m, "UpdateClustersToLatestArtifactVersion", arg0, arg1)
   130  	ret0, _ := ret[0].(int)
   131  	ret1, _ := ret[1].(error)
   132  	return ret0, ret1
   133  }
   134  
   135  // UpdateClustersToLatestArtifactVersion indicates an expected call of UpdateClustersToLatestArtifactVersion.
   136  func (mr *MockArtifactsServiceMockRecorder) UpdateClustersToLatestArtifactVersion(arg0, arg1 interface{}) *gomock.Call {
   137  	mr.mock.ctrl.T.Helper()
   138  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClustersToLatestArtifactVersion", reflect.TypeOf((*MockArtifactsService)(nil).UpdateClustersToLatestArtifactVersion), arg0, arg1)
   139  }
   140  

View as plain text