mock_api

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAzure

type MockAzure struct {
	// contains filtered or unexported fields
}

MockAzure is a mock of Azure interface.

func NewMockAzure

func NewMockAzure(ctrl *gomock.Controller) *MockAzure

NewMockAzure creates a new mock instance.

func (*MockAzure) CapacityPools

func (m *MockAzure) CapacityPools() *[]*api.CapacityPool

CapacityPools mocks base method.

func (*MockAzure) CapacityPoolsForStoragePool

func (m *MockAzure) CapacityPoolsForStoragePool(arg0 context.Context, arg1 storage.Pool, arg2 string) []*api.CapacityPool

CapacityPoolsForStoragePool mocks base method.

func (*MockAzure) CapacityPoolsForStoragePools

func (m *MockAzure) CapacityPoolsForStoragePools(arg0 context.Context) []*api.CapacityPool

CapacityPoolsForStoragePools mocks base method.

func (*MockAzure) CreateSnapshot

func (m *MockAzure) CreateSnapshot(arg0 context.Context, arg1 *api.FileSystem, arg2 string) (*api.Snapshot, error)

CreateSnapshot mocks base method.

func (*MockAzure) CreateSubvolume

func (m *MockAzure) CreateSubvolume(arg0 context.Context, arg1 *api.SubvolumeCreateRequest) (*api.Subvolume, error)

CreateSubvolume mocks base method.

func (*MockAzure) CreateVolume

func (m *MockAzure) CreateVolume(arg0 context.Context, arg1 *api.FilesystemCreateRequest) (*api.FileSystem, error)

CreateVolume mocks base method.

func (*MockAzure) DeleteSnapshot

func (m *MockAzure) DeleteSnapshot(arg0 context.Context, arg1 *api.FileSystem, arg2 *api.Snapshot) error

DeleteSnapshot mocks base method.

func (*MockAzure) DeleteSubvolume

func (m *MockAzure) DeleteSubvolume(arg0 context.Context, arg1 *api.Subvolume) error

DeleteSubvolume mocks base method.

func (*MockAzure) DeleteVolume

func (m *MockAzure) DeleteVolume(arg0 context.Context, arg1 *api.FileSystem) error

DeleteVolume mocks base method.

func (*MockAzure) DiscoverAzureResources

func (m *MockAzure) DiscoverAzureResources(arg0 context.Context) error

DiscoverAzureResources mocks base method.

func (*MockAzure) EXPECT

func (m *MockAzure) EXPECT() *MockAzureMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAzure) EnableAzureFeatures

func (m *MockAzure) EnableAzureFeatures(arg0 context.Context, arg1 ...string) error

EnableAzureFeatures mocks base method.

func (*MockAzure) EnsureVolumeInValidCapacityPool

func (m *MockAzure) EnsureVolumeInValidCapacityPool(arg0 context.Context, arg1 *api.FileSystem) error

EnsureVolumeInValidCapacityPool mocks base method.

func (*MockAzure) Features

func (m *MockAzure) Features() map[string]bool

Features mocks base method.

func (*MockAzure) HasFeature

func (m *MockAzure) HasFeature(arg0 string) bool

HasFeature mocks base method.

func (*MockAzure) Init

func (m *MockAzure) Init(arg0 context.Context, arg1 map[string]storage.Pool) error

Init mocks base method.

func (*MockAzure) ModifyVolume

func (m *MockAzure) ModifyVolume(arg0 context.Context, arg1 *api.FileSystem, arg2 map[string]string, arg3 *string) error

ModifyVolume mocks base method.

func (*MockAzure) RandomCapacityPoolForStoragePool

func (m *MockAzure) RandomCapacityPoolForStoragePool(arg0 context.Context, arg1 storage.Pool, arg2 string) *api.CapacityPool

RandomCapacityPoolForStoragePool mocks base method.

func (*MockAzure) RandomSubnetForStoragePool

func (m *MockAzure) RandomSubnetForStoragePool(arg0 context.Context, arg1 storage.Pool) *api.Subnet

RandomSubnetForStoragePool mocks base method.

func (*MockAzure) RefreshAzureResources

func (m *MockAzure) RefreshAzureResources(arg0 context.Context) error

RefreshAzureResources mocks base method.

func (*MockAzure) ResizeSubvolume

func (m *MockAzure) ResizeSubvolume(arg0 context.Context, arg1 *api.Subvolume, arg2 int64) error

ResizeSubvolume mocks base method.

func (*MockAzure) ResizeVolume

func (m *MockAzure) ResizeVolume(arg0 context.Context, arg1 *api.FileSystem, arg2 int64) error

ResizeVolume mocks base method.

func (*MockAzure) SnapshotForVolume

func (m *MockAzure) SnapshotForVolume(arg0 context.Context, arg1 *api.FileSystem, arg2 string) (*api.Snapshot, error)

SnapshotForVolume mocks base method.

func (*MockAzure) SnapshotsForVolume

func (m *MockAzure) SnapshotsForVolume(arg0 context.Context, arg1 *api.FileSystem) (*[]*api.Snapshot, error)

SnapshotsForVolume mocks base method.

func (*MockAzure) SubnetsForStoragePool

func (m *MockAzure) SubnetsForStoragePool(arg0 context.Context, arg1 storage.Pool) []*api.Subnet

SubnetsForStoragePool mocks base method.

func (*MockAzure) Subvolume

func (m *MockAzure) Subvolume(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 bool) (*api.Subvolume, error)

Subvolume mocks base method.

func (*MockAzure) SubvolumeByCreationToken

func (m *MockAzure) SubvolumeByCreationToken(arg0 context.Context, arg1 string, arg2 []string, arg3 bool) (*api.Subvolume, error)

SubvolumeByCreationToken mocks base method.

func (*MockAzure) SubvolumeByID

func (m *MockAzure) SubvolumeByID(arg0 context.Context, arg1 string, arg2 bool) (*api.Subvolume, error)

SubvolumeByID mocks base method.

func (*MockAzure) SubvolumeExists

func (m *MockAzure) SubvolumeExists(arg0 context.Context, arg1 *storage.VolumeConfig, arg2 []string) (bool, *api.Subvolume, error)

SubvolumeExists mocks base method.

func (*MockAzure) SubvolumeExistsByCreationToken

func (m *MockAzure) SubvolumeExistsByCreationToken(arg0 context.Context, arg1 string, arg2 []string) (bool, *api.Subvolume, error)

SubvolumeExistsByCreationToken mocks base method.

func (*MockAzure) SubvolumeExistsByID

func (m *MockAzure) SubvolumeExistsByID(arg0 context.Context, arg1 string) (bool, *api.Subvolume, error)

SubvolumeExistsByID mocks base method.

func (*MockAzure) SubvolumeParentVolume

func (m *MockAzure) SubvolumeParentVolume(arg0 context.Context, arg1 *storage.VolumeConfig) (*api.FileSystem, error)

SubvolumeParentVolume mocks base method.

func (*MockAzure) Subvolumes

func (m *MockAzure) Subvolumes(arg0 context.Context, arg1 []string) (*[]*api.Subvolume, error)

Subvolumes mocks base method.

func (*MockAzure) ValidateFilePoolVolumes

func (m *MockAzure) ValidateFilePoolVolumes(arg0 context.Context, arg1 []string) ([]*api.FileSystem, error)

ValidateFilePoolVolumes mocks base method.

func (*MockAzure) Volume

func (m *MockAzure) Volume(arg0 context.Context, arg1 *storage.VolumeConfig) (*api.FileSystem, error)

Volume mocks base method.

func (*MockAzure) VolumeByCreationToken

func (m *MockAzure) VolumeByCreationToken(arg0 context.Context, arg1 string) (*api.FileSystem, error)

VolumeByCreationToken mocks base method.

func (*MockAzure) VolumeByID

func (m *MockAzure) VolumeByID(arg0 context.Context, arg1 string) (*api.FileSystem, error)

VolumeByID mocks base method.

func (*MockAzure) VolumeExists

func (m *MockAzure) VolumeExists(arg0 context.Context, arg1 *storage.VolumeConfig) (bool, *api.FileSystem, error)

VolumeExists mocks base method.

func (*MockAzure) VolumeExistsByCreationToken

func (m *MockAzure) VolumeExistsByCreationToken(arg0 context.Context, arg1 string) (bool, *api.FileSystem, error)

VolumeExistsByCreationToken mocks base method.

func (*MockAzure) VolumeExistsByID

func (m *MockAzure) VolumeExistsByID(arg0 context.Context, arg1 string) (bool, *api.FileSystem, error)

VolumeExistsByID mocks base method.

func (*MockAzure) Volumes

func (m *MockAzure) Volumes(arg0 context.Context) (*[]*api.FileSystem, error)

Volumes mocks base method.

func (*MockAzure) WaitForSnapshotState

func (m *MockAzure) WaitForSnapshotState(arg0 context.Context, arg1 *api.Snapshot, arg2 *api.FileSystem, arg3 string, arg4 []string, arg5 time.Duration) error

WaitForSnapshotState mocks base method.

func (*MockAzure) WaitForSubvolumeState

func (m *MockAzure) WaitForSubvolumeState(arg0 context.Context, arg1 *api.Subvolume, arg2 string, arg3 []string, arg4 time.Duration) (string, error)

WaitForSubvolumeState mocks base method.

func (*MockAzure) WaitForVolumeState

func (m *MockAzure) WaitForVolumeState(arg0 context.Context, arg1 *api.FileSystem, arg2 string, arg3 []string, arg4 time.Duration) (string, error)

WaitForVolumeState mocks base method.

type MockAzureMockRecorder

type MockAzureMockRecorder struct {
	// contains filtered or unexported fields
}

MockAzureMockRecorder is the mock recorder for MockAzure.

func (*MockAzureMockRecorder) CapacityPools

func (mr *MockAzureMockRecorder) CapacityPools() *gomock.Call

CapacityPools indicates an expected call of CapacityPools.

func (*MockAzureMockRecorder) CapacityPoolsForStoragePool

func (mr *MockAzureMockRecorder) CapacityPoolsForStoragePool(arg0, arg1, arg2 interface{}) *gomock.Call

CapacityPoolsForStoragePool indicates an expected call of CapacityPoolsForStoragePool.

func (*MockAzureMockRecorder) CapacityPoolsForStoragePools

func (mr *MockAzureMockRecorder) CapacityPoolsForStoragePools(arg0 interface{}) *gomock.Call

CapacityPoolsForStoragePools indicates an expected call of CapacityPoolsForStoragePools.

func (*MockAzureMockRecorder) CreateSnapshot

func (mr *MockAzureMockRecorder) CreateSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockAzureMockRecorder) CreateSubvolume

func (mr *MockAzureMockRecorder) CreateSubvolume(arg0, arg1 interface{}) *gomock.Call

CreateSubvolume indicates an expected call of CreateSubvolume.

func (*MockAzureMockRecorder) CreateVolume

func (mr *MockAzureMockRecorder) CreateVolume(arg0, arg1 interface{}) *gomock.Call

CreateVolume indicates an expected call of CreateVolume.

func (*MockAzureMockRecorder) DeleteSnapshot

func (mr *MockAzureMockRecorder) DeleteSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteSnapshot indicates an expected call of DeleteSnapshot.

func (*MockAzureMockRecorder) DeleteSubvolume

func (mr *MockAzureMockRecorder) DeleteSubvolume(arg0, arg1 interface{}) *gomock.Call

DeleteSubvolume indicates an expected call of DeleteSubvolume.

func (*MockAzureMockRecorder) DeleteVolume

func (mr *MockAzureMockRecorder) DeleteVolume(arg0, arg1 interface{}) *gomock.Call

DeleteVolume indicates an expected call of DeleteVolume.

func (*MockAzureMockRecorder) DiscoverAzureResources

func (mr *MockAzureMockRecorder) DiscoverAzureResources(arg0 interface{}) *gomock.Call

DiscoverAzureResources indicates an expected call of DiscoverAzureResources.

func (*MockAzureMockRecorder) EnableAzureFeatures

func (mr *MockAzureMockRecorder) EnableAzureFeatures(arg0 interface{}, arg1 ...interface{}) *gomock.Call

EnableAzureFeatures indicates an expected call of EnableAzureFeatures.

func (*MockAzureMockRecorder) EnsureVolumeInValidCapacityPool

func (mr *MockAzureMockRecorder) EnsureVolumeInValidCapacityPool(arg0, arg1 interface{}) *gomock.Call

EnsureVolumeInValidCapacityPool indicates an expected call of EnsureVolumeInValidCapacityPool.

func (*MockAzureMockRecorder) Features

func (mr *MockAzureMockRecorder) Features() *gomock.Call

Features indicates an expected call of Features.

func (*MockAzureMockRecorder) HasFeature

func (mr *MockAzureMockRecorder) HasFeature(arg0 interface{}) *gomock.Call

HasFeature indicates an expected call of HasFeature.

func (*MockAzureMockRecorder) Init

func (mr *MockAzureMockRecorder) Init(arg0, arg1 interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockAzureMockRecorder) ModifyVolume

func (mr *MockAzureMockRecorder) ModifyVolume(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ModifyVolume indicates an expected call of ModifyVolume.

func (*MockAzureMockRecorder) RandomCapacityPoolForStoragePool

func (mr *MockAzureMockRecorder) RandomCapacityPoolForStoragePool(arg0, arg1, arg2 interface{}) *gomock.Call

RandomCapacityPoolForStoragePool indicates an expected call of RandomCapacityPoolForStoragePool.

func (*MockAzureMockRecorder) RandomSubnetForStoragePool

func (mr *MockAzureMockRecorder) RandomSubnetForStoragePool(arg0, arg1 interface{}) *gomock.Call

RandomSubnetForStoragePool indicates an expected call of RandomSubnetForStoragePool.

func (*MockAzureMockRecorder) RefreshAzureResources

func (mr *MockAzureMockRecorder) RefreshAzureResources(arg0 interface{}) *gomock.Call

RefreshAzureResources indicates an expected call of RefreshAzureResources.

func (*MockAzureMockRecorder) ResizeSubvolume

func (mr *MockAzureMockRecorder) ResizeSubvolume(arg0, arg1, arg2 interface{}) *gomock.Call

ResizeSubvolume indicates an expected call of ResizeSubvolume.

func (*MockAzureMockRecorder) ResizeVolume

func (mr *MockAzureMockRecorder) ResizeVolume(arg0, arg1, arg2 interface{}) *gomock.Call

ResizeVolume indicates an expected call of ResizeVolume.

func (*MockAzureMockRecorder) SnapshotForVolume

func (mr *MockAzureMockRecorder) SnapshotForVolume(arg0, arg1, arg2 interface{}) *gomock.Call

SnapshotForVolume indicates an expected call of SnapshotForVolume.

func (*MockAzureMockRecorder) SnapshotsForVolume

func (mr *MockAzureMockRecorder) SnapshotsForVolume(arg0, arg1 interface{}) *gomock.Call

SnapshotsForVolume indicates an expected call of SnapshotsForVolume.

func (*MockAzureMockRecorder) SubnetsForStoragePool

func (mr *MockAzureMockRecorder) SubnetsForStoragePool(arg0, arg1 interface{}) *gomock.Call

SubnetsForStoragePool indicates an expected call of SubnetsForStoragePool.

func (*MockAzureMockRecorder) Subvolume

func (mr *MockAzureMockRecorder) Subvolume(arg0, arg1, arg2 interface{}) *gomock.Call

Subvolume indicates an expected call of Subvolume.

func (*MockAzureMockRecorder) SubvolumeByCreationToken

func (mr *MockAzureMockRecorder) SubvolumeByCreationToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SubvolumeByCreationToken indicates an expected call of SubvolumeByCreationToken.

func (*MockAzureMockRecorder) SubvolumeByID

func (mr *MockAzureMockRecorder) SubvolumeByID(arg0, arg1, arg2 interface{}) *gomock.Call

SubvolumeByID indicates an expected call of SubvolumeByID.

func (*MockAzureMockRecorder) SubvolumeExists

func (mr *MockAzureMockRecorder) SubvolumeExists(arg0, arg1, arg2 interface{}) *gomock.Call

SubvolumeExists indicates an expected call of SubvolumeExists.

func (*MockAzureMockRecorder) SubvolumeExistsByCreationToken

func (mr *MockAzureMockRecorder) SubvolumeExistsByCreationToken(arg0, arg1, arg2 interface{}) *gomock.Call

SubvolumeExistsByCreationToken indicates an expected call of SubvolumeExistsByCreationToken.

func (*MockAzureMockRecorder) SubvolumeExistsByID

func (mr *MockAzureMockRecorder) SubvolumeExistsByID(arg0, arg1 interface{}) *gomock.Call

SubvolumeExistsByID indicates an expected call of SubvolumeExistsByID.

func (*MockAzureMockRecorder) SubvolumeParentVolume

func (mr *MockAzureMockRecorder) SubvolumeParentVolume(arg0, arg1 interface{}) *gomock.Call

SubvolumeParentVolume indicates an expected call of SubvolumeParentVolume.

func (*MockAzureMockRecorder) Subvolumes

func (mr *MockAzureMockRecorder) Subvolumes(arg0, arg1 interface{}) *gomock.Call

Subvolumes indicates an expected call of Subvolumes.

func (*MockAzureMockRecorder) ValidateFilePoolVolumes

func (mr *MockAzureMockRecorder) ValidateFilePoolVolumes(arg0, arg1 interface{}) *gomock.Call

ValidateFilePoolVolumes indicates an expected call of ValidateFilePoolVolumes.

func (*MockAzureMockRecorder) Volume

func (mr *MockAzureMockRecorder) Volume(arg0, arg1 interface{}) *gomock.Call

Volume indicates an expected call of Volume.

func (*MockAzureMockRecorder) VolumeByCreationToken

func (mr *MockAzureMockRecorder) VolumeByCreationToken(arg0, arg1 interface{}) *gomock.Call

VolumeByCreationToken indicates an expected call of VolumeByCreationToken.

func (*MockAzureMockRecorder) VolumeByID

func (mr *MockAzureMockRecorder) VolumeByID(arg0, arg1 interface{}) *gomock.Call

VolumeByID indicates an expected call of VolumeByID.

func (*MockAzureMockRecorder) VolumeExists

func (mr *MockAzureMockRecorder) VolumeExists(arg0, arg1 interface{}) *gomock.Call

VolumeExists indicates an expected call of VolumeExists.

func (*MockAzureMockRecorder) VolumeExistsByCreationToken

func (mr *MockAzureMockRecorder) VolumeExistsByCreationToken(arg0, arg1 interface{}) *gomock.Call

VolumeExistsByCreationToken indicates an expected call of VolumeExistsByCreationToken.

func (*MockAzureMockRecorder) VolumeExistsByID

func (mr *MockAzureMockRecorder) VolumeExistsByID(arg0, arg1 interface{}) *gomock.Call

VolumeExistsByID indicates an expected call of VolumeExistsByID.

func (*MockAzureMockRecorder) Volumes

func (mr *MockAzureMockRecorder) Volumes(arg0 interface{}) *gomock.Call

Volumes indicates an expected call of Volumes.

func (*MockAzureMockRecorder) WaitForSnapshotState

func (mr *MockAzureMockRecorder) WaitForSnapshotState(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

WaitForSnapshotState indicates an expected call of WaitForSnapshotState.

func (*MockAzureMockRecorder) WaitForSubvolumeState

func (mr *MockAzureMockRecorder) WaitForSubvolumeState(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

WaitForSubvolumeState indicates an expected call of WaitForSubvolumeState.

func (*MockAzureMockRecorder) WaitForVolumeState

func (mr *MockAzureMockRecorder) WaitForVolumeState(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

WaitForVolumeState indicates an expected call of WaitForVolumeState.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL