mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Simplify AddOdoProjectVolume and AddOdoMandatoryVolume * Rename / Clarify HandleEphemeralStorage function * Regroup volume-specific code * Move volume specific code to a separated function * Add a new module configAutomount * Automount PVC (without options) * Add unit tests * Separate functions * Mount secrets * Mount configmaps * Specific mount path * MountAs annotation * Mounting cm/secret as env * Refacto: use inAllContainers + replace result with volume * Mounting cm/secret as subpath * Read-only * Integration tests * Rename label * Automount during odo deploy Exec command * Add documentation * Fix TODO * Review * Fix indentation * Rename labels/annotations
50 lines
1.4 KiB
Go
Generated
50 lines
1.4 KiB
Go
Generated
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: pkg/configAutomount/interface.go
|
|
|
|
// Package configAutomount is a generated GoMock package.
|
|
package configAutomount
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockClient is a mock of Client interface.
|
|
type MockClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockClientMockRecorder
|
|
}
|
|
|
|
// MockClientMockRecorder is the mock recorder for MockClient.
|
|
type MockClientMockRecorder struct {
|
|
mock *MockClient
|
|
}
|
|
|
|
// NewMockClient creates a new mock instance.
|
|
func NewMockClient(ctrl *gomock.Controller) *MockClient {
|
|
mock := &MockClient{ctrl: ctrl}
|
|
mock.recorder = &MockClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockClient) EXPECT() *MockClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetAutomountingVolumes mocks base method.
|
|
func (m *MockClient) GetAutomountingVolumes() ([]AutomountInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetAutomountingVolumes")
|
|
ret0, _ := ret[0].([]AutomountInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetAutomountingVolumes indicates an expected call of GetAutomountingVolumes.
|
|
func (mr *MockClientMockRecorder) GetAutomountingVolumes() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutomountingVolumes", reflect.TypeOf((*MockClient)(nil).GetAutomountingVolumes))
|
|
}
|