1
0
Fork 0
mirror of https://github.com/kastenhq/kubestr.git synced 2024-12-14 11:57:56 +00:00
kastenhq-kubestr/pkg/csi/mocks/mock_api_version_fetcher.go
Sirish Bathina 8d5674a59e
CSI snapshot restore (#37)
* starting with the validation

* Create application and use mocks

* Added snapshotter

* cleanup and full execution test

* last bit of wiring

* Nil checks for comments

* removing debug print

* unused variable
2020-12-07 11:16:53 -10:00

49 lines
1.7 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/kastenhq/kubestr/pkg/csi (interfaces: ApiVersionFetcher)
// Package mocks is a generated GoMock package.
package mocks
import (
gomock "github.com/golang/mock/gomock"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
reflect "reflect"
)
// MockApiVersionFetcher is a mock of ApiVersionFetcher interface
type MockApiVersionFetcher struct {
ctrl *gomock.Controller
recorder *MockApiVersionFetcherMockRecorder
}
// MockApiVersionFetcherMockRecorder is the mock recorder for MockApiVersionFetcher
type MockApiVersionFetcherMockRecorder struct {
mock *MockApiVersionFetcher
}
// NewMockApiVersionFetcher creates a new mock instance
func NewMockApiVersionFetcher(ctrl *gomock.Controller) *MockApiVersionFetcher {
mock := &MockApiVersionFetcher{ctrl: ctrl}
mock.recorder = &MockApiVersionFetcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockApiVersionFetcher) EXPECT() *MockApiVersionFetcherMockRecorder {
return m.recorder
}
// GetCSISnapshotGroupVersion mocks base method
func (m *MockApiVersionFetcher) GetCSISnapshotGroupVersion() (*v1.GroupVersionForDiscovery, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCSISnapshotGroupVersion")
ret0, _ := ret[0].(*v1.GroupVersionForDiscovery)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCSISnapshotGroupVersion indicates an expected call of GetCSISnapshotGroupVersion
func (mr *MockApiVersionFetcherMockRecorder) GetCSISnapshotGroupVersion() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCSISnapshotGroupVersion", reflect.TypeOf((*MockApiVersionFetcher)(nil).GetCSISnapshotGroupVersion))
}