...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_gcp_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 (interfaces: GCPService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	model "edge-infra.dev/pkg/edge/api/graph/model"
    13  	gomock "github.com/golang/mock/gomock"
    14  )
    15  
    16  // MockGCPService is a mock of GCPService interface.
    17  type MockGCPService struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockGCPServiceMockRecorder
    20  }
    21  
    22  // MockGCPServiceMockRecorder is the mock recorder for MockGCPService.
    23  type MockGCPServiceMockRecorder struct {
    24  	mock *MockGCPService
    25  }
    26  
    27  // NewMockGCPService creates a new mock instance.
    28  func NewMockGCPService(ctrl *gomock.Controller) *MockGCPService {
    29  	mock := &MockGCPService{ctrl: ctrl}
    30  	mock.recorder = &MockGCPServiceMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockGCPService) EXPECT() *MockGCPServiceMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // AddSecret mocks base method.
    40  func (m *MockGCPService) AddSecret(arg0 context.Context, arg1, arg2, arg3 string, arg4 []*model.KeyValues, arg5 string, arg6 *string, arg7 *time.Time) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "AddSecret", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // AddSecret indicates an expected call of AddSecret.
    48  func (mr *MockGCPServiceMockRecorder) AddSecret(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSecret", reflect.TypeOf((*MockGCPService)(nil).AddSecret), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
    51  }
    52  
    53  // DeleteSecret mocks base method.
    54  func (m *MockGCPService) DeleteSecret(arg0 context.Context, arg1, arg2 string) (bool, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "DeleteSecret", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(bool)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // DeleteSecret indicates an expected call of DeleteSecret.
    63  func (mr *MockGCPServiceMockRecorder) DeleteSecret(arg0, arg1, arg2 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecret", reflect.TypeOf((*MockGCPService)(nil).DeleteSecret), arg0, arg1, arg2)
    66  }
    67  
    68  // GetGKEVersions mocks base method.
    69  func (m *MockGCPService) GetGKEVersions(arg0 context.Context, arg1 string) ([]*string, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "GetGKEVersions", arg0, arg1)
    72  	ret0, _ := ret[0].([]*string)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // GetGKEVersions indicates an expected call of GetGKEVersions.
    78  func (mr *MockGCPServiceMockRecorder) GetGKEVersions(arg0, arg1 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGKEVersions", reflect.TypeOf((*MockGCPService)(nil).GetGKEVersions), arg0, arg1)
    81  }
    82  
    83  // GetMachineType mocks base method.
    84  func (m *MockGCPService) GetMachineType(arg0 context.Context, arg1, arg2 string) (*model.MachineTypeInfo, error) {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "GetMachineType", arg0, arg1, arg2)
    87  	ret0, _ := ret[0].(*model.MachineTypeInfo)
    88  	ret1, _ := ret[1].(error)
    89  	return ret0, ret1
    90  }
    91  
    92  // GetMachineType indicates an expected call of GetMachineType.
    93  func (mr *MockGCPServiceMockRecorder) GetMachineType(arg0, arg1, arg2 interface{}) *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMachineType", reflect.TypeOf((*MockGCPService)(nil).GetMachineType), arg0, arg1, arg2)
    96  }
    97  
    98  // GetMachineTypes mocks base method.
    99  func (m *MockGCPService) GetMachineTypes(arg0 context.Context, arg1 string) ([]*model.MachineTypeInfo, error) {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "GetMachineTypes", arg0, arg1)
   102  	ret0, _ := ret[0].([]*model.MachineTypeInfo)
   103  	ret1, _ := ret[1].(error)
   104  	return ret0, ret1
   105  }
   106  
   107  // GetMachineTypes indicates an expected call of GetMachineTypes.
   108  func (mr *MockGCPServiceMockRecorder) GetMachineTypes(arg0, arg1 interface{}) *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMachineTypes", reflect.TypeOf((*MockGCPService)(nil).GetMachineTypes), arg0, arg1)
   111  }
   112  
   113  // GetSecrets mocks base method.
   114  func (m *MockGCPService) GetSecrets(arg0 context.Context, arg1, arg2, arg3 *string, arg4 bool, arg5 string) ([]*model.SecretManagerResponse, error) {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "GetSecrets", arg0, arg1, arg2, arg3, arg4, arg5)
   117  	ret0, _ := ret[0].([]*model.SecretManagerResponse)
   118  	ret1, _ := ret[1].(error)
   119  	return ret0, ret1
   120  }
   121  
   122  // GetSecrets indicates an expected call of GetSecrets.
   123  func (mr *MockGCPServiceMockRecorder) GetSecrets(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecrets", reflect.TypeOf((*MockGCPService)(nil).GetSecrets), arg0, arg1, arg2, arg3, arg4, arg5)
   126  }
   127  
   128  // GetZones mocks base method.
   129  func (m *MockGCPService) GetZones(arg0 context.Context) ([]*string, error) {
   130  	m.ctrl.T.Helper()
   131  	ret := m.ctrl.Call(m, "GetZones", arg0)
   132  	ret0, _ := ret[0].([]*string)
   133  	ret1, _ := ret[1].(error)
   134  	return ret0, ret1
   135  }
   136  
   137  // GetZones indicates an expected call of GetZones.
   138  func (mr *MockGCPServiceMockRecorder) GetZones(arg0 interface{}) *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetZones", reflect.TypeOf((*MockGCPService)(nil).GetZones), arg0)
   141  }
   142  

View as plain text