// Code generated by MockGen. DO NOT EDIT. // Source: edge-infra.dev/pkg/edge/api/services/clustersecrets (interfaces: ClusterSecretService) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" model "edge-infra.dev/pkg/edge/api/graph/model" common "edge-infra.dev/pkg/sds/clustersecrets/common" gomock "github.com/golang/mock/gomock" ) // MockClusterSecretService is a mock of ClusterSecretService interface. type MockClusterSecretService struct { ctrl *gomock.Controller recorder *MockClusterSecretServiceMockRecorder } // MockClusterSecretServiceMockRecorder is the mock recorder for MockClusterSecretService. type MockClusterSecretServiceMockRecorder struct { mock *MockClusterSecretService } // NewMockClusterSecretService creates a new mock instance. func NewMockClusterSecretService(ctrl *gomock.Controller) *MockClusterSecretService { mock := &MockClusterSecretService{ctrl: ctrl} mock.recorder = &MockClusterSecretServiceMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockClusterSecretService) EXPECT() *MockClusterSecretServiceMockRecorder { return m.recorder } // AddClusterSecret mocks base method. func (m *MockClusterSecretService) AddClusterSecret(arg0 context.Context, arg1 common.ClusterSecret) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddClusterSecret", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // AddClusterSecret indicates an expected call of AddClusterSecret. func (mr *MockClusterSecretServiceMockRecorder) AddClusterSecret(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClusterSecret", reflect.TypeOf((*MockClusterSecretService)(nil).AddClusterSecret), arg0, arg1) } // CheckSecretIsExpired mocks base method. func (m *MockClusterSecretService) CheckSecretIsExpired(arg0 context.Context, arg1 string, arg2 model.ClusterSecretType) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckSecretIsExpired", arg0, arg1, arg2) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // CheckSecretIsExpired indicates an expected call of CheckSecretIsExpired. func (mr *MockClusterSecretServiceMockRecorder) CheckSecretIsExpired(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSecretIsExpired", reflect.TypeOf((*MockClusterSecretService)(nil).CheckSecretIsExpired), arg0, arg1, arg2) } // CreateLease mocks base method. func (m *MockClusterSecretService) CreateLease(arg0 context.Context, arg1 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateLease", arg0, arg1) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // CreateLease indicates an expected call of CreateLease. func (mr *MockClusterSecretServiceMockRecorder) CreateLease(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLease", reflect.TypeOf((*MockClusterSecretService)(nil).CreateLease), arg0, arg1) } // ExpireClusterSecrets mocks base method. func (m *MockClusterSecretService) ExpireClusterSecrets(arg0 context.Context, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ExpireClusterSecrets", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // ExpireClusterSecrets indicates an expected call of ExpireClusterSecrets. func (mr *MockClusterSecretServiceMockRecorder) ExpireClusterSecrets(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExpireClusterSecrets", reflect.TypeOf((*MockClusterSecretService)(nil).ExpireClusterSecrets), arg0, arg1) } // FetchClusterSecret mocks base method. func (m *MockClusterSecretService) FetchClusterSecret(arg0 context.Context, arg1 string, arg2 model.ClusterSecretType) (common.ClusterSecret, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FetchClusterSecret", arg0, arg1, arg2) ret0, _ := ret[0].(common.ClusterSecret) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchClusterSecret indicates an expected call of FetchClusterSecret. func (mr *MockClusterSecretServiceMockRecorder) FetchClusterSecret(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchClusterSecret", reflect.TypeOf((*MockClusterSecretService)(nil).FetchClusterSecret), arg0, arg1, arg2) } // FetchClusterSecretVersions mocks base method. func (m *MockClusterSecretService) FetchClusterSecretVersions(arg0 context.Context, arg1 string, arg2 model.ClusterSecretType) ([]*model.ClusterSecretVersionInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FetchClusterSecretVersions", arg0, arg1, arg2) ret0, _ := ret[0].([]*model.ClusterSecretVersionInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchClusterSecretVersions indicates an expected call of FetchClusterSecretVersions. func (mr *MockClusterSecretServiceMockRecorder) FetchClusterSecretVersions(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchClusterSecretVersions", reflect.TypeOf((*MockClusterSecretService)(nil).FetchClusterSecretVersions), arg0, arg1, arg2) } // FetchLatestTerminalClusterSecrets mocks base method. func (m *MockClusterSecretService) FetchLatestTerminalClusterSecrets(arg0 context.Context, arg1 string) ([]common.TerminalClusterSecret, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FetchLatestTerminalClusterSecrets", arg0, arg1) ret0, _ := ret[0].([]common.TerminalClusterSecret) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchLatestTerminalClusterSecrets indicates an expected call of FetchLatestTerminalClusterSecrets. func (mr *MockClusterSecretServiceMockRecorder) FetchLatestTerminalClusterSecrets(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLatestTerminalClusterSecrets", reflect.TypeOf((*MockClusterSecretService)(nil).FetchLatestTerminalClusterSecrets), arg0, arg1) } // FetchLease mocks base method. func (m *MockClusterSecretService) FetchLease(arg0 context.Context, arg1 string) (model.ClusterSecretLease, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FetchLease", arg0, arg1) ret0, _ := ret[0].(model.ClusterSecretLease) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchLease indicates an expected call of FetchLease. func (mr *MockClusterSecretServiceMockRecorder) FetchLease(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLease", reflect.TypeOf((*MockClusterSecretService)(nil).FetchLease), arg0, arg1) } // FetchLeaseID mocks base method. func (m *MockClusterSecretService) FetchLeaseID(arg0 context.Context, arg1 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FetchLeaseID", arg0, arg1) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // FetchLeaseID indicates an expected call of FetchLeaseID. func (mr *MockClusterSecretServiceMockRecorder) FetchLeaseID(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLeaseID", reflect.TypeOf((*MockClusterSecretService)(nil).FetchLeaseID), arg0, arg1) } // ObtainLease mocks base method. func (m *MockClusterSecretService) ObtainLease(arg0 context.Context, arg1 string) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ObtainLease", arg0, arg1) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // ObtainLease indicates an expected call of ObtainLease. func (mr *MockClusterSecretServiceMockRecorder) ObtainLease(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObtainLease", reflect.TypeOf((*MockClusterSecretService)(nil).ObtainLease), arg0, arg1) } // ReleaseLease mocks base method. func (m *MockClusterSecretService) ReleaseLease(arg0 context.Context, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReleaseLease", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // ReleaseLease indicates an expected call of ReleaseLease. func (mr *MockClusterSecretServiceMockRecorder) ReleaseLease(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseLease", reflect.TypeOf((*MockClusterSecretService)(nil).ReleaseLease), arg0, arg1) } // RemoveUserFromLease mocks base method. func (m *MockClusterSecretService) RemoveUserFromLease(arg0 context.Context, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveUserFromLease", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // RemoveUserFromLease indicates an expected call of RemoveUserFromLease. func (mr *MockClusterSecretServiceMockRecorder) RemoveUserFromLease(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUserFromLease", reflect.TypeOf((*MockClusterSecretService)(nil).RemoveUserFromLease), arg0, arg1) } // RevokeLease mocks base method. func (m *MockClusterSecretService) RevokeLease(arg0 context.Context, arg1, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RevokeLease", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // RevokeLease indicates an expected call of RevokeLease. func (mr *MockClusterSecretServiceMockRecorder) RevokeLease(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeLease", reflect.TypeOf((*MockClusterSecretService)(nil).RevokeLease), arg0, arg1, arg2) } // UpdateClusterSecret mocks base method. func (m *MockClusterSecretService) UpdateClusterSecret(arg0 context.Context, arg1 string, arg2 model.ClusterSecretType, arg3 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClusterSecret", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) return ret0 } // UpdateClusterSecret indicates an expected call of UpdateClusterSecret. func (mr *MockClusterSecretServiceMockRecorder) UpdateClusterSecret(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSecret", reflect.TypeOf((*MockClusterSecretService)(nil).UpdateClusterSecret), arg0, arg1, arg2, arg3) } // VerifyClusterSecretExists mocks base method. func (m *MockClusterSecretService) VerifyClusterSecretExists(arg0 context.Context, arg1 string, arg2 common.Secret, arg3 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyClusterSecretExists", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) return ret0 } // VerifyClusterSecretExists indicates an expected call of VerifyClusterSecretExists. func (mr *MockClusterSecretServiceMockRecorder) VerifyClusterSecretExists(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyClusterSecretExists", reflect.TypeOf((*MockClusterSecretService)(nil).VerifyClusterSecretExists), arg0, arg1, arg2, arg3) } // VerifyLeaseExists mocks base method. func (m *MockClusterSecretService) VerifyLeaseExists(arg0 context.Context, arg1 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyLeaseExists", arg0, arg1) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // VerifyLeaseExists indicates an expected call of VerifyLeaseExists. func (mr *MockClusterSecretServiceMockRecorder) VerifyLeaseExists(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyLeaseExists", reflect.TypeOf((*MockClusterSecretService)(nil).VerifyLeaseExists), arg0, arg1) } // VerifySecretAndLeaseExist mocks base method. func (m *MockClusterSecretService) VerifySecretAndLeaseExist(arg0 context.Context, arg1 string, arg2 common.Secret) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifySecretAndLeaseExist", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // VerifySecretAndLeaseExist indicates an expected call of VerifySecretAndLeaseExist. func (mr *MockClusterSecretServiceMockRecorder) VerifySecretAndLeaseExist(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySecretAndLeaseExist", reflect.TypeOf((*MockClusterSecretService)(nil).VerifySecretAndLeaseExist), arg0, arg1, arg2) }