Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGovcClient
- func (m *MockGovcClient) AddTag(ctx context.Context, path, tag string) error
- func (m *MockGovcClient) CreateCategoryForVM(ctx context.Context, name string) error
- func (m *MockGovcClient) CreateLibrary(ctx context.Context, datastore, library string) error
- func (m *MockGovcClient) CreateTag(ctx context.Context, tag, category string) error
- func (m *MockGovcClient) DeleteLibraryElement(ctx context.Context, element string) error
- func (m *MockGovcClient) DeployTemplateFromLibrary(ctx context.Context, ...) error
- func (m *MockGovcClient) EXPECT() *MockGovcClientMockRecorder
- func (m *MockGovcClient) GetLibraryElementContentVersion(ctx context.Context, element string) (string, error)
- func (m *MockGovcClient) ImportTemplate(ctx context.Context, library, ovaURL, name string) error
- func (m *MockGovcClient) LibraryElementExists(ctx context.Context, library string) (bool, error)
- func (m *MockGovcClient) ListCategories(ctx context.Context) ([]string, error)
- func (m *MockGovcClient) ListTags(ctx context.Context) ([]string, error)
- func (m *MockGovcClient) SearchTemplate(ctx context.Context, datacenter string, ...) (string, error)
- type MockGovcClientMockRecorder
- func (mr *MockGovcClientMockRecorder) AddTag(ctx, path, tag interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) CreateCategoryForVM(ctx, name interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) CreateLibrary(ctx, datastore, library interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) CreateTag(ctx, tag, category interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) DeleteLibraryElement(ctx, element interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) DeployTemplateFromLibrary(...) *gomock.Call
- func (mr *MockGovcClientMockRecorder) GetLibraryElementContentVersion(ctx, element interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) ImportTemplate(ctx, library, ovaURL, name interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) LibraryElementExists(ctx, library interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) ListCategories(ctx interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) ListTags(ctx interface{}) *gomock.Call
- func (mr *MockGovcClientMockRecorder) SearchTemplate(ctx, datacenter, machineConfig interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGovcClient ¶
type MockGovcClient struct {
// contains filtered or unexported fields
}
MockGovcClient is a mock of GovcClient interface.
func NewMockGovcClient ¶
func NewMockGovcClient(ctrl *gomock.Controller) *MockGovcClient
NewMockGovcClient creates a new mock instance.
func (*MockGovcClient) AddTag ¶
func (m *MockGovcClient) AddTag(ctx context.Context, path, tag string) error
AddTag mocks base method.
func (*MockGovcClient) CreateCategoryForVM ¶
func (m *MockGovcClient) CreateCategoryForVM(ctx context.Context, name string) error
CreateCategoryForVM mocks base method.
func (*MockGovcClient) CreateLibrary ¶
func (m *MockGovcClient) CreateLibrary(ctx context.Context, datastore, library string) error
CreateLibrary mocks base method.
func (*MockGovcClient) CreateTag ¶
func (m *MockGovcClient) CreateTag(ctx context.Context, tag, category string) error
CreateTag mocks base method.
func (*MockGovcClient) DeleteLibraryElement ¶ added in v0.6.0
func (m *MockGovcClient) DeleteLibraryElement(ctx context.Context, element string) error
DeleteLibraryElement mocks base method.
func (*MockGovcClient) DeployTemplateFromLibrary ¶
func (m *MockGovcClient) DeployTemplateFromLibrary(ctx context.Context, templateDir, templateName, library, datacenter, datastore, network, resourcePool string, resizeBRDisk bool) error
DeployTemplateFromLibrary mocks base method.
func (*MockGovcClient) EXPECT ¶
func (m *MockGovcClient) EXPECT() *MockGovcClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGovcClient) GetLibraryElementContentVersion ¶ added in v0.6.0
func (m *MockGovcClient) GetLibraryElementContentVersion(ctx context.Context, element string) (string, error)
GetLibraryElementContentVersion mocks base method.
func (*MockGovcClient) ImportTemplate ¶
func (m *MockGovcClient) ImportTemplate(ctx context.Context, library, ovaURL, name string) error
ImportTemplate mocks base method.
func (*MockGovcClient) LibraryElementExists ¶
LibraryElementExists mocks base method.
func (*MockGovcClient) ListCategories ¶
func (m *MockGovcClient) ListCategories(ctx context.Context) ([]string, error)
ListCategories mocks base method.
func (*MockGovcClient) ListTags ¶
func (m *MockGovcClient) ListTags(ctx context.Context) ([]string, error)
ListTags mocks base method.
func (*MockGovcClient) SearchTemplate ¶
func (m *MockGovcClient) SearchTemplate(ctx context.Context, datacenter string, machineConfig *v1alpha1.VSphereMachineConfig) (string, error)
SearchTemplate mocks base method.
type MockGovcClientMockRecorder ¶
type MockGovcClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGovcClientMockRecorder is the mock recorder for MockGovcClient.
func (*MockGovcClientMockRecorder) AddTag ¶
func (mr *MockGovcClientMockRecorder) AddTag(ctx, path, tag interface{}) *gomock.Call
AddTag indicates an expected call of AddTag.
func (*MockGovcClientMockRecorder) CreateCategoryForVM ¶
func (mr *MockGovcClientMockRecorder) CreateCategoryForVM(ctx, name interface{}) *gomock.Call
CreateCategoryForVM indicates an expected call of CreateCategoryForVM.
func (*MockGovcClientMockRecorder) CreateLibrary ¶
func (mr *MockGovcClientMockRecorder) CreateLibrary(ctx, datastore, library interface{}) *gomock.Call
CreateLibrary indicates an expected call of CreateLibrary.
func (*MockGovcClientMockRecorder) CreateTag ¶
func (mr *MockGovcClientMockRecorder) CreateTag(ctx, tag, category interface{}) *gomock.Call
CreateTag indicates an expected call of CreateTag.
func (*MockGovcClientMockRecorder) DeleteLibraryElement ¶ added in v0.6.0
func (mr *MockGovcClientMockRecorder) DeleteLibraryElement(ctx, element interface{}) *gomock.Call
DeleteLibraryElement indicates an expected call of DeleteLibraryElement.
func (*MockGovcClientMockRecorder) DeployTemplateFromLibrary ¶
func (mr *MockGovcClientMockRecorder) DeployTemplateFromLibrary(ctx, templateDir, templateName, library, datacenter, datastore, network, resourcePool, resizeBRDisk interface{}) *gomock.Call
DeployTemplateFromLibrary indicates an expected call of DeployTemplateFromLibrary.
func (*MockGovcClientMockRecorder) GetLibraryElementContentVersion ¶ added in v0.6.0
func (mr *MockGovcClientMockRecorder) GetLibraryElementContentVersion(ctx, element interface{}) *gomock.Call
GetLibraryElementContentVersion indicates an expected call of GetLibraryElementContentVersion.
func (*MockGovcClientMockRecorder) ImportTemplate ¶
func (mr *MockGovcClientMockRecorder) ImportTemplate(ctx, library, ovaURL, name interface{}) *gomock.Call
ImportTemplate indicates an expected call of ImportTemplate.
func (*MockGovcClientMockRecorder) LibraryElementExists ¶
func (mr *MockGovcClientMockRecorder) LibraryElementExists(ctx, library interface{}) *gomock.Call
LibraryElementExists indicates an expected call of LibraryElementExists.
func (*MockGovcClientMockRecorder) ListCategories ¶
func (mr *MockGovcClientMockRecorder) ListCategories(ctx interface{}) *gomock.Call
ListCategories indicates an expected call of ListCategories.
func (*MockGovcClientMockRecorder) ListTags ¶
func (mr *MockGovcClientMockRecorder) ListTags(ctx interface{}) *gomock.Call
ListTags indicates an expected call of ListTags.
func (*MockGovcClientMockRecorder) SearchTemplate ¶
func (mr *MockGovcClientMockRecorder) SearchTemplate(ctx, datacenter, machineConfig interface{}) *gomock.Call
SearchTemplate indicates an expected call of SearchTemplate.