mock

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComputeClient

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

MockComputeClient is a mock of ComputeClient interface.

func NewMockComputeClient

func NewMockComputeClient(ctrl *gomock.Controller) *MockComputeClient

NewMockComputeClient creates a new mock instance.

func (*MockComputeClient) CreateFlavor

CreateFlavor mocks base method.

func (*MockComputeClient) CreateServer

func (m *MockComputeClient) CreateServer(ctx context.Context, createOpts servers.CreateOptsBuilder, schedulerHints servers.SchedulerHintOptsBuilder) (*servers.Server, error)

CreateServer mocks base method.

func (*MockComputeClient) DeleteFlavor

func (m *MockComputeClient) DeleteFlavor(ctx context.Context, id string) error

DeleteFlavor mocks base method.

func (*MockComputeClient) DeleteServer

func (m *MockComputeClient) DeleteServer(ctx context.Context, serverID string) error

DeleteServer mocks base method.

func (*MockComputeClient) EXPECT

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

func (*MockComputeClient) GetFlavor

func (m *MockComputeClient) GetFlavor(ctx context.Context, id string) (*flavors.Flavor, error)

GetFlavor mocks base method.

func (*MockComputeClient) GetServer

func (m *MockComputeClient) GetServer(ctx context.Context, serverID string) (*servers.Server, error)

GetServer mocks base method.

func (*MockComputeClient) ListFlavors

ListFlavors mocks base method.

func (*MockComputeClient) ListServers

ListServers mocks base method.

type MockComputeClientMockRecorder

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

MockComputeClientMockRecorder is the mock recorder for MockComputeClient.

func (*MockComputeClientMockRecorder) CreateFlavor

func (mr *MockComputeClientMockRecorder) CreateFlavor(ctx, opts any) *gomock.Call

CreateFlavor indicates an expected call of CreateFlavor.

func (*MockComputeClientMockRecorder) CreateServer

func (mr *MockComputeClientMockRecorder) CreateServer(ctx, createOpts, schedulerHints any) *gomock.Call

CreateServer indicates an expected call of CreateServer.

func (*MockComputeClientMockRecorder) DeleteFlavor

func (mr *MockComputeClientMockRecorder) DeleteFlavor(ctx, id any) *gomock.Call

DeleteFlavor indicates an expected call of DeleteFlavor.

func (*MockComputeClientMockRecorder) DeleteServer

func (mr *MockComputeClientMockRecorder) DeleteServer(ctx, serverID any) *gomock.Call

DeleteServer indicates an expected call of DeleteServer.

func (*MockComputeClientMockRecorder) GetFlavor

func (mr *MockComputeClientMockRecorder) GetFlavor(ctx, id any) *gomock.Call

GetFlavor indicates an expected call of GetFlavor.

func (*MockComputeClientMockRecorder) GetServer

func (mr *MockComputeClientMockRecorder) GetServer(ctx, serverID any) *gomock.Call

GetServer indicates an expected call of GetServer.

func (*MockComputeClientMockRecorder) ListFlavors

func (mr *MockComputeClientMockRecorder) ListFlavors(ctx, listOpts any) *gomock.Call

ListFlavors indicates an expected call of ListFlavors.

func (*MockComputeClientMockRecorder) ListServers

func (mr *MockComputeClientMockRecorder) ListServers(ctx, listOpts any) *gomock.Call

ListServers indicates an expected call of ListServers.

type MockIdentityClient added in v2.1.0

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

MockIdentityClient is a mock of IdentityClient interface.

func NewMockIdentityClient added in v2.1.0

func NewMockIdentityClient(ctrl *gomock.Controller) *MockIdentityClient

NewMockIdentityClient creates a new mock instance.

func (*MockIdentityClient) CreateProject added in v2.1.0

CreateProject mocks base method.

func (*MockIdentityClient) DeleteProject added in v2.1.0

func (m *MockIdentityClient) DeleteProject(ctx context.Context, id string) error

DeleteProject mocks base method.

func (*MockIdentityClient) EXPECT added in v2.1.0

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

func (*MockIdentityClient) GetProject added in v2.1.0

func (m *MockIdentityClient) GetProject(ctx context.Context, id string) (*projects.Project, error)

GetProject mocks base method.

func (*MockIdentityClient) ListProjects added in v2.1.0

ListProjects mocks base method.

type MockIdentityClientMockRecorder added in v2.1.0

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

MockIdentityClientMockRecorder is the mock recorder for MockIdentityClient.

func (*MockIdentityClientMockRecorder) CreateProject added in v2.1.0

func (mr *MockIdentityClientMockRecorder) CreateProject(ctx, opts any) *gomock.Call

CreateProject indicates an expected call of CreateProject.

func (*MockIdentityClientMockRecorder) DeleteProject added in v2.1.0

func (mr *MockIdentityClientMockRecorder) DeleteProject(ctx, id any) *gomock.Call

DeleteProject indicates an expected call of DeleteProject.

func (*MockIdentityClientMockRecorder) GetProject added in v2.1.0

func (mr *MockIdentityClientMockRecorder) GetProject(ctx, id any) *gomock.Call

GetProject indicates an expected call of GetProject.

func (*MockIdentityClientMockRecorder) ListProjects added in v2.1.0

func (mr *MockIdentityClientMockRecorder) ListProjects(ctx, opts any) *gomock.Call

ListProjects indicates an expected call of ListProjects.

type MockImageClient

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

MockImageClient is a mock of ImageClient interface.

func NewMockImageClient

func NewMockImageClient(ctrl *gomock.Controller) *MockImageClient

NewMockImageClient creates a new mock instance.

func (*MockImageClient) CreateImage

func (m *MockImageClient) CreateImage(ctx context.Context, createOpts images.CreateOptsBuilder) (*images.Image, error)

CreateImage mocks base method.

func (*MockImageClient) CreateImport

func (m *MockImageClient) CreateImport(ctx context.Context, id string, createOpts imageimport.CreateOptsBuilder) error

CreateImport mocks base method.

func (*MockImageClient) DeleteImage

func (m *MockImageClient) DeleteImage(ctx context.Context, id string) error

DeleteImage mocks base method.

func (*MockImageClient) EXPECT

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

func (*MockImageClient) GetImage

func (m *MockImageClient) GetImage(ctx context.Context, id string) (*images.Image, error)

GetImage mocks base method.

func (*MockImageClient) GetImportInfo

func (m *MockImageClient) GetImportInfo(ctx context.Context) (*imageimport.ImportInfo, error)

GetImportInfo mocks base method.

func (*MockImageClient) ListImages

func (m *MockImageClient) ListImages(ctx context.Context, listOpts images.ListOptsBuilder) iter.Seq2[*images.Image, error]

ListImages mocks base method.

func (*MockImageClient) UploadData

func (m *MockImageClient) UploadData(ctx context.Context, id string, data io.Reader) error

UploadData mocks base method.

type MockImageClientMockRecorder

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

MockImageClientMockRecorder is the mock recorder for MockImageClient.

func (*MockImageClientMockRecorder) CreateImage

func (mr *MockImageClientMockRecorder) CreateImage(ctx, createOpts any) *gomock.Call

CreateImage indicates an expected call of CreateImage.

func (*MockImageClientMockRecorder) CreateImport

func (mr *MockImageClientMockRecorder) CreateImport(ctx, id, createOpts any) *gomock.Call

CreateImport indicates an expected call of CreateImport.

func (*MockImageClientMockRecorder) DeleteImage

func (mr *MockImageClientMockRecorder) DeleteImage(ctx, id any) *gomock.Call

DeleteImage indicates an expected call of DeleteImage.

func (*MockImageClientMockRecorder) GetImage

func (mr *MockImageClientMockRecorder) GetImage(ctx, id any) *gomock.Call

GetImage indicates an expected call of GetImage.

func (*MockImageClientMockRecorder) GetImportInfo

func (mr *MockImageClientMockRecorder) GetImportInfo(ctx any) *gomock.Call

GetImportInfo indicates an expected call of GetImportInfo.

func (*MockImageClientMockRecorder) ListImages

func (mr *MockImageClientMockRecorder) ListImages(ctx, listOpts any) *gomock.Call

ListImages indicates an expected call of ListImages.

func (*MockImageClientMockRecorder) UploadData

func (mr *MockImageClientMockRecorder) UploadData(ctx, id, data any) *gomock.Call

UploadData indicates an expected call of UploadData.

type MockNetworkClient

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

MockNetworkClient is a mock of NetworkClient interface.

func NewMockNetworkClient

func NewMockNetworkClient(ctrl *gomock.Controller) *MockNetworkClient

NewMockNetworkClient creates a new mock instance.

func (*MockNetworkClient) AddRouterInterface

AddRouterInterface mocks base method.

func (*MockNetworkClient) CreateNetwork

CreateNetwork mocks base method.

func (*MockNetworkClient) CreatePort

CreatePort mocks base method.

func (*MockNetworkClient) CreateRouter

CreateRouter mocks base method.

func (*MockNetworkClient) CreateSecGroup

func (m *MockNetworkClient) CreateSecGroup(ctx context.Context, opts groups.CreateOptsBuilder) (*groups.SecGroup, error)

CreateSecGroup mocks base method.

func (*MockNetworkClient) CreateSecGroupRules

func (m *MockNetworkClient) CreateSecGroupRules(ctx context.Context, opts []rules.CreateOpts) ([]rules.SecGroupRule, error)

CreateSecGroupRules mocks base method.

func (*MockNetworkClient) CreateSubnet

CreateSubnet mocks base method.

func (*MockNetworkClient) DeleteNetwork

func (m *MockNetworkClient) DeleteNetwork(ctx context.Context, id string) error

DeleteNetwork mocks base method.

func (*MockNetworkClient) DeletePort

func (m *MockNetworkClient) DeletePort(ctx context.Context, id string) error

DeletePort mocks base method.

func (*MockNetworkClient) DeleteRouter

func (m *MockNetworkClient) DeleteRouter(ctx context.Context, id string) error

DeleteRouter mocks base method.

func (*MockNetworkClient) DeleteSecGroup

func (m *MockNetworkClient) DeleteSecGroup(ctx context.Context, id string) error

DeleteSecGroup mocks base method.

func (*MockNetworkClient) DeleteSecGroupRule

func (m *MockNetworkClient) DeleteSecGroupRule(ctx context.Context, id string) error

DeleteSecGroupRule mocks base method.

func (*MockNetworkClient) DeleteSubnet

func (m *MockNetworkClient) DeleteSubnet(ctx context.Context, id string) error

DeleteSubnet mocks base method.

func (*MockNetworkClient) EXPECT

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

func (*MockNetworkClient) GetNetwork

func (m *MockNetworkClient) GetNetwork(ctx context.Context, id string) (*osclients.NetworkExt, error)

GetNetwork mocks base method.

func (*MockNetworkClient) GetPort

func (m *MockNetworkClient) GetPort(ctx context.Context, id string) (*osclients.PortExt, error)

GetPort mocks base method.

func (*MockNetworkClient) GetRouter

func (m *MockNetworkClient) GetRouter(ctx context.Context, id string) (*routers.Router, error)

GetRouter mocks base method.

func (*MockNetworkClient) GetSecGroup

func (m *MockNetworkClient) GetSecGroup(ctx context.Context, id string) (*groups.SecGroup, error)

GetSecGroup mocks base method.

func (*MockNetworkClient) GetSecGroupRule

func (m *MockNetworkClient) GetSecGroupRule(ctx context.Context, id string) (*rules.SecGroupRule, error)

GetSecGroupRule mocks base method.

func (*MockNetworkClient) GetSubnet

func (m *MockNetworkClient) GetSubnet(ctx context.Context, id string) (*subnets.Subnet, error)

GetSubnet mocks base method.

func (*MockNetworkClient) ListNetwork

ListNetwork mocks base method.

func (*MockNetworkClient) ListPort

ListPort mocks base method.

func (*MockNetworkClient) ListRouter

ListRouter mocks base method.

func (*MockNetworkClient) ListSecGroup

func (m *MockNetworkClient) ListSecGroup(ctx context.Context, opts groups.ListOpts) iter.Seq2[*groups.SecGroup, error]

ListSecGroup mocks base method.

func (*MockNetworkClient) ListSecGroupRule

func (m *MockNetworkClient) ListSecGroupRule(ctx context.Context, opts rules.ListOpts) ([]rules.SecGroupRule, error)

ListSecGroupRule mocks base method.

func (*MockNetworkClient) ListSubnet

ListSubnet mocks base method.

func (*MockNetworkClient) RemoveRouterInterface

RemoveRouterInterface mocks base method.

func (*MockNetworkClient) ReplaceAllAttributesTags

func (m *MockNetworkClient) ReplaceAllAttributesTags(ctx context.Context, resourceType, resourceID string, opts attributestags.ReplaceAllOptsBuilder) ([]string, error)

ReplaceAllAttributesTags mocks base method.

func (*MockNetworkClient) UpdateNetwork

UpdateNetwork mocks base method.

func (*MockNetworkClient) UpdatePort

UpdatePort mocks base method.

func (*MockNetworkClient) UpdateRouter

UpdateRouter mocks base method.

func (*MockNetworkClient) UpdateSecGroup

func (m *MockNetworkClient) UpdateSecGroup(ctx context.Context, id string, opts groups.UpdateOptsBuilder) (*groups.SecGroup, error)

UpdateSecGroup mocks base method.

func (*MockNetworkClient) UpdateSubnet

UpdateSubnet mocks base method.

type MockNetworkClientMockRecorder

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

MockNetworkClientMockRecorder is the mock recorder for MockNetworkClient.

func (*MockNetworkClientMockRecorder) AddRouterInterface

func (mr *MockNetworkClientMockRecorder) AddRouterInterface(ctx, id, opts any) *gomock.Call

AddRouterInterface indicates an expected call of AddRouterInterface.

func (*MockNetworkClientMockRecorder) CreateNetwork

func (mr *MockNetworkClientMockRecorder) CreateNetwork(ctx, opts any) *gomock.Call

CreateNetwork indicates an expected call of CreateNetwork.

func (*MockNetworkClientMockRecorder) CreatePort

func (mr *MockNetworkClientMockRecorder) CreatePort(ctx, opts any) *gomock.Call

CreatePort indicates an expected call of CreatePort.

func (*MockNetworkClientMockRecorder) CreateRouter

func (mr *MockNetworkClientMockRecorder) CreateRouter(ctx, opts any) *gomock.Call

CreateRouter indicates an expected call of CreateRouter.

func (*MockNetworkClientMockRecorder) CreateSecGroup

func (mr *MockNetworkClientMockRecorder) CreateSecGroup(ctx, opts any) *gomock.Call

CreateSecGroup indicates an expected call of CreateSecGroup.

func (*MockNetworkClientMockRecorder) CreateSecGroupRules

func (mr *MockNetworkClientMockRecorder) CreateSecGroupRules(ctx, opts any) *gomock.Call

CreateSecGroupRules indicates an expected call of CreateSecGroupRules.

func (*MockNetworkClientMockRecorder) CreateSubnet

func (mr *MockNetworkClientMockRecorder) CreateSubnet(ctx, opts any) *gomock.Call

CreateSubnet indicates an expected call of CreateSubnet.

func (*MockNetworkClientMockRecorder) DeleteNetwork

func (mr *MockNetworkClientMockRecorder) DeleteNetwork(ctx, id any) *gomock.Call

DeleteNetwork indicates an expected call of DeleteNetwork.

func (*MockNetworkClientMockRecorder) DeletePort

func (mr *MockNetworkClientMockRecorder) DeletePort(ctx, id any) *gomock.Call

DeletePort indicates an expected call of DeletePort.

func (*MockNetworkClientMockRecorder) DeleteRouter

func (mr *MockNetworkClientMockRecorder) DeleteRouter(ctx, id any) *gomock.Call

DeleteRouter indicates an expected call of DeleteRouter.

func (*MockNetworkClientMockRecorder) DeleteSecGroup

func (mr *MockNetworkClientMockRecorder) DeleteSecGroup(ctx, id any) *gomock.Call

DeleteSecGroup indicates an expected call of DeleteSecGroup.

func (*MockNetworkClientMockRecorder) DeleteSecGroupRule

func (mr *MockNetworkClientMockRecorder) DeleteSecGroupRule(ctx, id any) *gomock.Call

DeleteSecGroupRule indicates an expected call of DeleteSecGroupRule.

func (*MockNetworkClientMockRecorder) DeleteSubnet

func (mr *MockNetworkClientMockRecorder) DeleteSubnet(ctx, id any) *gomock.Call

DeleteSubnet indicates an expected call of DeleteSubnet.

func (*MockNetworkClientMockRecorder) GetNetwork

func (mr *MockNetworkClientMockRecorder) GetNetwork(ctx, id any) *gomock.Call

GetNetwork indicates an expected call of GetNetwork.

func (*MockNetworkClientMockRecorder) GetPort

func (mr *MockNetworkClientMockRecorder) GetPort(ctx, id any) *gomock.Call

GetPort indicates an expected call of GetPort.

func (*MockNetworkClientMockRecorder) GetRouter

func (mr *MockNetworkClientMockRecorder) GetRouter(ctx, id any) *gomock.Call

GetRouter indicates an expected call of GetRouter.

func (*MockNetworkClientMockRecorder) GetSecGroup

func (mr *MockNetworkClientMockRecorder) GetSecGroup(ctx, id any) *gomock.Call

GetSecGroup indicates an expected call of GetSecGroup.

func (*MockNetworkClientMockRecorder) GetSecGroupRule

func (mr *MockNetworkClientMockRecorder) GetSecGroupRule(ctx, id any) *gomock.Call

GetSecGroupRule indicates an expected call of GetSecGroupRule.

func (*MockNetworkClientMockRecorder) GetSubnet

func (mr *MockNetworkClientMockRecorder) GetSubnet(ctx, id any) *gomock.Call

GetSubnet indicates an expected call of GetSubnet.

func (*MockNetworkClientMockRecorder) ListNetwork

func (mr *MockNetworkClientMockRecorder) ListNetwork(ctx, opts any) *gomock.Call

ListNetwork indicates an expected call of ListNetwork.

func (*MockNetworkClientMockRecorder) ListPort

func (mr *MockNetworkClientMockRecorder) ListPort(ctx, opts any) *gomock.Call

ListPort indicates an expected call of ListPort.

func (*MockNetworkClientMockRecorder) ListRouter

func (mr *MockNetworkClientMockRecorder) ListRouter(ctx, opts any) *gomock.Call

ListRouter indicates an expected call of ListRouter.

func (*MockNetworkClientMockRecorder) ListSecGroup

func (mr *MockNetworkClientMockRecorder) ListSecGroup(ctx, opts any) *gomock.Call

ListSecGroup indicates an expected call of ListSecGroup.

func (*MockNetworkClientMockRecorder) ListSecGroupRule

func (mr *MockNetworkClientMockRecorder) ListSecGroupRule(ctx, opts any) *gomock.Call

ListSecGroupRule indicates an expected call of ListSecGroupRule.

func (*MockNetworkClientMockRecorder) ListSubnet

func (mr *MockNetworkClientMockRecorder) ListSubnet(ctx, opts any) *gomock.Call

ListSubnet indicates an expected call of ListSubnet.

func (*MockNetworkClientMockRecorder) RemoveRouterInterface

func (mr *MockNetworkClientMockRecorder) RemoveRouterInterface(ctx, id, opts any) *gomock.Call

RemoveRouterInterface indicates an expected call of RemoveRouterInterface.

func (*MockNetworkClientMockRecorder) ReplaceAllAttributesTags

func (mr *MockNetworkClientMockRecorder) ReplaceAllAttributesTags(ctx, resourceType, resourceID, opts any) *gomock.Call

ReplaceAllAttributesTags indicates an expected call of ReplaceAllAttributesTags.

func (*MockNetworkClientMockRecorder) UpdateNetwork

func (mr *MockNetworkClientMockRecorder) UpdateNetwork(ctx, id, opts any) *gomock.Call

UpdateNetwork indicates an expected call of UpdateNetwork.

func (*MockNetworkClientMockRecorder) UpdatePort

func (mr *MockNetworkClientMockRecorder) UpdatePort(ctx, id, opts any) *gomock.Call

UpdatePort indicates an expected call of UpdatePort.

func (*MockNetworkClientMockRecorder) UpdateRouter

func (mr *MockNetworkClientMockRecorder) UpdateRouter(ctx, id, opts any) *gomock.Call

UpdateRouter indicates an expected call of UpdateRouter.

func (*MockNetworkClientMockRecorder) UpdateSecGroup

func (mr *MockNetworkClientMockRecorder) UpdateSecGroup(ctx, id, opts any) *gomock.Call

UpdateSecGroup indicates an expected call of UpdateSecGroup.

func (*MockNetworkClientMockRecorder) UpdateSubnet

func (mr *MockNetworkClientMockRecorder) UpdateSubnet(ctx, id, opts any) *gomock.Call

UpdateSubnet indicates an expected call of UpdateSubnet.

Jump to

Keyboard shortcuts

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