Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: interfaces.go
Generated by this command:
mockgen -source=interfaces.go -destination=mock/interfaces.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockComputeInterface
- func (m *MockComputeInterface) CreateKeypair(ctx context.Context, name, publicKey string) error
- func (m *MockComputeInterface) CreateRemoteConsole(ctx context.Context, id string) (*remoteconsoles.RemoteConsole, error)
- func (m *MockComputeInterface) CreateServer(ctx context.Context, server *v1alpha1.Server, keyName string, ...) (*servers.Server, error)
- func (m *MockComputeInterface) CreateServerGroup(ctx context.Context, name string) (*servergroups.ServerGroup, error)
- func (m *MockComputeInterface) DeleteKeypair(ctx context.Context, name string) error
- func (m *MockComputeInterface) DeleteServer(ctx context.Context, id string) error
- func (m *MockComputeInterface) DeleteServerGroup(ctx context.Context, id string) error
- func (m *MockComputeInterface) EXPECT() *MockComputeInterfaceMockRecorder
- func (m *MockComputeInterface) GetFlavors(ctx context.Context) ([]flavors.Flavor, error)
- func (m *MockComputeInterface) GetServer(ctx context.Context, server *v1alpha1.Server) (*servers.Server, error)
- func (m *MockComputeInterface) RebootServer(ctx context.Context, id string, hard bool) error
- func (m *MockComputeInterface) ShowConsoleOutput(ctx context.Context, id string, length *int) (string, error)
- func (m *MockComputeInterface) StartServer(ctx context.Context, id string) error
- func (m *MockComputeInterface) StopServer(ctx context.Context, id string) error
- func (m *MockComputeInterface) UpdateQuotas(ctx context.Context, projectID string) error
- type MockComputeInterfaceMockRecorder
- func (mr *MockComputeInterfaceMockRecorder) CreateKeypair(ctx, name, publicKey any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) CreateRemoteConsole(ctx, id any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) CreateServer(ctx, server, keyName, networks, serverGroupID, metadata any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) CreateServerGroup(ctx, name any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) DeleteKeypair(ctx, name any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) DeleteServer(ctx, id any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) DeleteServerGroup(ctx, id any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) GetFlavors(ctx any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) GetServer(ctx, server any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) RebootServer(ctx, id, hard any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) ShowConsoleOutput(ctx, id, length any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) StartServer(ctx, id any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) StopServer(ctx, id any) *gomock.Call
- func (mr *MockComputeInterfaceMockRecorder) UpdateQuotas(ctx, projectID any) *gomock.Call
- type MockComputeQuotaInterface
- type MockComputeQuotaInterfaceMockRecorder
- type MockExternalNetworkInterfsce
- type MockExternalNetworkInterfsceMockRecorder
- type MockFlavorInterface
- type MockFlavorInterfaceMockRecorder
- type MockFloatingIPInterface
- func (m *MockFloatingIPInterface) CreateFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
- func (m *MockFloatingIPInterface) DeleteFloatingIP(ctx context.Context, id string) error
- func (m *MockFloatingIPInterface) EXPECT() *MockFloatingIPInterfaceMockRecorder
- func (m *MockFloatingIPInterface) GetFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
- type MockFloatingIPInterfaceMockRecorder
- type MockKeypairInterface
- type MockKeypairInterfaceMockRecorder
- type MockNetworkInterface
- func (m *MockNetworkInterface) CreateNetwork(ctx context.Context, network *v1alpha1.Network, vlanID *int) (*openstack.NetworkExt, error)
- func (m *MockNetworkInterface) DeleteNetwork(ctx context.Context, id string) error
- func (m *MockNetworkInterface) EXPECT() *MockNetworkInterfaceMockRecorder
- func (m *MockNetworkInterface) GetNetwork(ctx context.Context, network *v1alpha1.Network) (*openstack.NetworkExt, error)
- type MockNetworkInterfaceMockRecorder
- type MockNetworkingInterface
- func (m *MockNetworkingInterface) AddRouterInterface(ctx context.Context, routerID, subnetID string) error
- func (m *MockNetworkingInterface) CreateFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
- func (m *MockNetworkingInterface) CreateNetwork(ctx context.Context, network *v1alpha1.Network, vlanID *int) (*openstack.NetworkExt, error)
- func (m *MockNetworkingInterface) CreateRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
- func (m *MockNetworkingInterface) CreateSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
- func (m *MockNetworkingInterface) CreateSecurityGroupRule(ctx context.Context, securityGroupID string, direction rules.RuleDirection, ...) (*rules.SecGroupRule, error)
- func (m *MockNetworkingInterface) CreateServerPort(ctx context.Context, server *v1alpha1.Server, networkID string, ...) (*ports.Port, error)
- func (m *MockNetworkingInterface) CreateSubnet(ctx context.Context, network *v1alpha1.Network, ...) (*subnets.Subnet, error)
- func (m *MockNetworkingInterface) DeleteFloatingIP(ctx context.Context, id string) error
- func (m *MockNetworkingInterface) DeleteNetwork(ctx context.Context, id string) error
- func (m *MockNetworkingInterface) DeletePort(ctx context.Context, portID string) error
- func (m *MockNetworkingInterface) DeleteRouter(ctx context.Context, id string) error
- func (m *MockNetworkingInterface) DeleteSecurityGroup(ctx context.Context, securityGroupID string) error
- func (m *MockNetworkingInterface) DeleteSecurityGroupRule(ctx context.Context, securityGroupID, ruleID string) error
- func (m *MockNetworkingInterface) DeleteSubnet(ctx context.Context, id string) error
- func (m *MockNetworkingInterface) EXPECT() *MockNetworkingInterfaceMockRecorder
- func (m *MockNetworkingInterface) ExternalNetworks(ctx context.Context) ([]networks.Network, error)
- func (m *MockNetworkingInterface) GetFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
- func (m *MockNetworkingInterface) GetNetwork(ctx context.Context, network *v1alpha1.Network) (*openstack.NetworkExt, error)
- func (m *MockNetworkingInterface) GetRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
- func (m *MockNetworkingInterface) GetSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
- func (m *MockNetworkingInterface) GetServerPort(ctx context.Context, server *v1alpha1.Server) (*ports.Port, error)
- func (m *MockNetworkingInterface) GetSubnet(ctx context.Context, network *v1alpha1.Network) (*subnets.Subnet, error)
- func (m *MockNetworkingInterface) ListRouterPorts(ctx context.Context, routerID string) ([]ports.Port, error)
- func (m *MockNetworkingInterface) ListSecurityGroupRules(ctx context.Context, securityGroupID string) ([]rules.SecGroupRule, error)
- func (m *MockNetworkingInterface) ListServerPorts(ctx context.Context, serverID string) ([]ports.Port, error)
- func (m *MockNetworkingInterface) RemoveRouterInterface(ctx context.Context, routerID, subnetID string) error
- func (m *MockNetworkingInterface) UpdatePort(ctx context.Context, portID string, securityGroupIDs []string, ...) (*ports.Port, error)
- type MockNetworkingInterfaceMockRecorder
- func (mr *MockNetworkingInterfaceMockRecorder) AddRouterInterface(ctx, routerID, subnetID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateFloatingIP(ctx, portID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateNetwork(ctx, network, vlanID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateRouter(ctx, network any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateSecurityGroup(ctx, securityGroup any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateSecurityGroupRule(ctx, securityGroupID, direction, protocol, portStart, portEnd, prefix any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateServerPort(ctx, server, networkID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) CreateSubnet(...) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteFloatingIP(ctx, id any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteNetwork(ctx, id any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeletePort(ctx, portID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteRouter(ctx, id any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteSecurityGroup(ctx, securityGroupID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteSecurityGroupRule(ctx, securityGroupID, ruleID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) DeleteSubnet(ctx, id any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) ExternalNetworks(ctx any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetFloatingIP(ctx, portID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetNetwork(ctx, network any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetRouter(ctx, network any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetSecurityGroup(ctx, securityGroup any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetServerPort(ctx, server any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) GetSubnet(ctx, network any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) ListRouterPorts(ctx, routerID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) ListSecurityGroupRules(ctx, securityGroupID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) ListServerPorts(ctx, serverID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) RemoveRouterInterface(ctx, routerID, subnetID any) *gomock.Call
- func (mr *MockNetworkingInterfaceMockRecorder) UpdatePort(ctx, portID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
- type MockPortInterface
- func (m *MockPortInterface) CreateServerPort(ctx context.Context, server *v1alpha1.Server, networkID string, ...) (*ports.Port, error)
- func (m *MockPortInterface) DeletePort(ctx context.Context, portID string) error
- func (m *MockPortInterface) EXPECT() *MockPortInterfaceMockRecorder
- func (m *MockPortInterface) GetServerPort(ctx context.Context, server *v1alpha1.Server) (*ports.Port, error)
- func (m *MockPortInterface) ListRouterPorts(ctx context.Context, routerID string) ([]ports.Port, error)
- func (m *MockPortInterface) ListServerPorts(ctx context.Context, serverID string) ([]ports.Port, error)
- func (m *MockPortInterface) UpdatePort(ctx context.Context, portID string, securityGroupIDs []string, ...) (*ports.Port, error)
- type MockPortInterfaceMockRecorder
- func (mr *MockPortInterfaceMockRecorder) CreateServerPort(ctx, server, networkID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
- func (mr *MockPortInterfaceMockRecorder) DeletePort(ctx, portID any) *gomock.Call
- func (mr *MockPortInterfaceMockRecorder) GetServerPort(ctx, server any) *gomock.Call
- func (mr *MockPortInterfaceMockRecorder) ListRouterPorts(ctx, routerID any) *gomock.Call
- func (mr *MockPortInterfaceMockRecorder) ListServerPorts(ctx, serverID any) *gomock.Call
- func (mr *MockPortInterfaceMockRecorder) UpdatePort(ctx, portID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
- type MockRouterInterface
- func (m *MockRouterInterface) AddRouterInterface(ctx context.Context, routerID, subnetID string) error
- func (m *MockRouterInterface) CreateRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
- func (m *MockRouterInterface) DeleteRouter(ctx context.Context, id string) error
- func (m *MockRouterInterface) EXPECT() *MockRouterInterfaceMockRecorder
- func (m *MockRouterInterface) GetRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
- func (m *MockRouterInterface) RemoveRouterInterface(ctx context.Context, routerID, subnetID string) error
- type MockRouterInterfaceMockRecorder
- func (mr *MockRouterInterfaceMockRecorder) AddRouterInterface(ctx, routerID, subnetID any) *gomock.Call
- func (mr *MockRouterInterfaceMockRecorder) CreateRouter(ctx, network any) *gomock.Call
- func (mr *MockRouterInterfaceMockRecorder) DeleteRouter(ctx, id any) *gomock.Call
- func (mr *MockRouterInterfaceMockRecorder) GetRouter(ctx, network any) *gomock.Call
- func (mr *MockRouterInterfaceMockRecorder) RemoveRouterInterface(ctx, routerID, subnetID any) *gomock.Call
- type MockSecurityGroupInterface
- func (m *MockSecurityGroupInterface) CreateSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
- func (m *MockSecurityGroupInterface) CreateSecurityGroupRule(ctx context.Context, securityGroupID string, direction rules.RuleDirection, ...) (*rules.SecGroupRule, error)
- func (m *MockSecurityGroupInterface) DeleteSecurityGroup(ctx context.Context, securityGroupID string) error
- func (m *MockSecurityGroupInterface) DeleteSecurityGroupRule(ctx context.Context, securityGroupID, ruleID string) error
- func (m *MockSecurityGroupInterface) EXPECT() *MockSecurityGroupInterfaceMockRecorder
- func (m *MockSecurityGroupInterface) GetSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
- func (m *MockSecurityGroupInterface) ListSecurityGroupRules(ctx context.Context, securityGroupID string) ([]rules.SecGroupRule, error)
- type MockSecurityGroupInterfaceMockRecorder
- func (mr *MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroup(ctx, securityGroup any) *gomock.Call
- func (mr *MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroupRule(ctx, securityGroupID, direction, protocol, portStart, portEnd, prefix any) *gomock.Call
- func (mr *MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroup(ctx, securityGroupID any) *gomock.Call
- func (mr *MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroupRule(ctx, securityGroupID, ruleID any) *gomock.Call
- func (mr *MockSecurityGroupInterfaceMockRecorder) GetSecurityGroup(ctx, securityGroup any) *gomock.Call
- func (mr *MockSecurityGroupInterfaceMockRecorder) ListSecurityGroupRules(ctx, securityGroupID any) *gomock.Call
- type MockServerGroupInterface
- type MockServerGroupInterfaceMockRecorder
- type MockServerInterface
- func (m *MockServerInterface) CreateRemoteConsole(ctx context.Context, id string) (*remoteconsoles.RemoteConsole, error)
- func (m *MockServerInterface) CreateServer(ctx context.Context, server *v1alpha1.Server, keyName string, ...) (*servers.Server, error)
- func (m *MockServerInterface) DeleteServer(ctx context.Context, id string) error
- func (m *MockServerInterface) EXPECT() *MockServerInterfaceMockRecorder
- func (m *MockServerInterface) GetServer(ctx context.Context, server *v1alpha1.Server) (*servers.Server, error)
- func (m *MockServerInterface) RebootServer(ctx context.Context, id string, hard bool) error
- func (m *MockServerInterface) ShowConsoleOutput(ctx context.Context, id string, length *int) (string, error)
- func (m *MockServerInterface) StartServer(ctx context.Context, id string) error
- func (m *MockServerInterface) StopServer(ctx context.Context, id string) error
- type MockServerInterfaceMockRecorder
- func (mr *MockServerInterfaceMockRecorder) CreateRemoteConsole(ctx, id any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) CreateServer(ctx, server, keyName, networks, serverGroupID, metadata any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) DeleteServer(ctx, id any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) GetServer(ctx, server any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) RebootServer(ctx, id, hard any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) ShowConsoleOutput(ctx, id, length any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) StartServer(ctx, id any) *gomock.Call
- func (mr *MockServerInterfaceMockRecorder) StopServer(ctx, id any) *gomock.Call
- type MockSubnetInterface
- func (m *MockSubnetInterface) CreateSubnet(ctx context.Context, network *v1alpha1.Network, ...) (*subnets.Subnet, error)
- func (m *MockSubnetInterface) DeleteSubnet(ctx context.Context, id string) error
- func (m *MockSubnetInterface) EXPECT() *MockSubnetInterfaceMockRecorder
- func (m *MockSubnetInterface) GetSubnet(ctx context.Context, network *v1alpha1.Network) (*subnets.Subnet, error)
- type MockSubnetInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockComputeInterface ¶
type MockComputeInterface struct {
// contains filtered or unexported fields
}
MockComputeInterface is a mock of ComputeInterface interface.
func NewMockComputeInterface ¶
func NewMockComputeInterface(ctrl *gomock.Controller) *MockComputeInterface
NewMockComputeInterface creates a new mock instance.
func (*MockComputeInterface) CreateKeypair ¶
func (m *MockComputeInterface) CreateKeypair(ctx context.Context, name, publicKey string) error
CreateKeypair mocks base method.
func (*MockComputeInterface) CreateRemoteConsole ¶
func (m *MockComputeInterface) CreateRemoteConsole(ctx context.Context, id string) (*remoteconsoles.RemoteConsole, error)
CreateRemoteConsole mocks base method.
func (*MockComputeInterface) CreateServer ¶
func (m *MockComputeInterface) CreateServer(ctx context.Context, server *v1alpha1.Server, keyName string, networks []servers.Network, serverGroupID *string, metadata map[string]string) (*servers.Server, error)
CreateServer mocks base method.
func (*MockComputeInterface) CreateServerGroup ¶
func (m *MockComputeInterface) CreateServerGroup(ctx context.Context, name string) (*servergroups.ServerGroup, error)
CreateServerGroup mocks base method.
func (*MockComputeInterface) DeleteKeypair ¶
func (m *MockComputeInterface) DeleteKeypair(ctx context.Context, name string) error
DeleteKeypair mocks base method.
func (*MockComputeInterface) DeleteServer ¶
func (m *MockComputeInterface) DeleteServer(ctx context.Context, id string) error
DeleteServer mocks base method.
func (*MockComputeInterface) DeleteServerGroup ¶
func (m *MockComputeInterface) DeleteServerGroup(ctx context.Context, id string) error
DeleteServerGroup mocks base method.
func (*MockComputeInterface) EXPECT ¶
func (m *MockComputeInterface) EXPECT() *MockComputeInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockComputeInterface) GetFlavors ¶
GetFlavors mocks base method.
func (*MockComputeInterface) GetServer ¶
func (m *MockComputeInterface) GetServer(ctx context.Context, server *v1alpha1.Server) (*servers.Server, error)
GetServer mocks base method.
func (*MockComputeInterface) RebootServer ¶
RebootServer mocks base method.
func (*MockComputeInterface) ShowConsoleOutput ¶
func (m *MockComputeInterface) ShowConsoleOutput(ctx context.Context, id string, length *int) (string, error)
ShowConsoleOutput mocks base method.
func (*MockComputeInterface) StartServer ¶
func (m *MockComputeInterface) StartServer(ctx context.Context, id string) error
StartServer mocks base method.
func (*MockComputeInterface) StopServer ¶
func (m *MockComputeInterface) StopServer(ctx context.Context, id string) error
StopServer mocks base method.
func (*MockComputeInterface) UpdateQuotas ¶
func (m *MockComputeInterface) UpdateQuotas(ctx context.Context, projectID string) error
UpdateQuotas mocks base method.
type MockComputeInterfaceMockRecorder ¶
type MockComputeInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockComputeInterfaceMockRecorder is the mock recorder for MockComputeInterface.
func (*MockComputeInterfaceMockRecorder) CreateKeypair ¶
func (mr *MockComputeInterfaceMockRecorder) CreateKeypair(ctx, name, publicKey any) *gomock.Call
CreateKeypair indicates an expected call of CreateKeypair.
func (*MockComputeInterfaceMockRecorder) CreateRemoteConsole ¶
func (mr *MockComputeInterfaceMockRecorder) CreateRemoteConsole(ctx, id any) *gomock.Call
CreateRemoteConsole indicates an expected call of CreateRemoteConsole.
func (*MockComputeInterfaceMockRecorder) CreateServer ¶
func (mr *MockComputeInterfaceMockRecorder) CreateServer(ctx, server, keyName, networks, serverGroupID, metadata any) *gomock.Call
CreateServer indicates an expected call of CreateServer.
func (*MockComputeInterfaceMockRecorder) CreateServerGroup ¶
func (mr *MockComputeInterfaceMockRecorder) CreateServerGroup(ctx, name any) *gomock.Call
CreateServerGroup indicates an expected call of CreateServerGroup.
func (*MockComputeInterfaceMockRecorder) DeleteKeypair ¶
func (mr *MockComputeInterfaceMockRecorder) DeleteKeypair(ctx, name any) *gomock.Call
DeleteKeypair indicates an expected call of DeleteKeypair.
func (*MockComputeInterfaceMockRecorder) DeleteServer ¶
func (mr *MockComputeInterfaceMockRecorder) DeleteServer(ctx, id any) *gomock.Call
DeleteServer indicates an expected call of DeleteServer.
func (*MockComputeInterfaceMockRecorder) DeleteServerGroup ¶
func (mr *MockComputeInterfaceMockRecorder) DeleteServerGroup(ctx, id any) *gomock.Call
DeleteServerGroup indicates an expected call of DeleteServerGroup.
func (*MockComputeInterfaceMockRecorder) GetFlavors ¶
func (mr *MockComputeInterfaceMockRecorder) GetFlavors(ctx any) *gomock.Call
GetFlavors indicates an expected call of GetFlavors.
func (*MockComputeInterfaceMockRecorder) GetServer ¶
func (mr *MockComputeInterfaceMockRecorder) GetServer(ctx, server any) *gomock.Call
GetServer indicates an expected call of GetServer.
func (*MockComputeInterfaceMockRecorder) RebootServer ¶
func (mr *MockComputeInterfaceMockRecorder) RebootServer(ctx, id, hard any) *gomock.Call
RebootServer indicates an expected call of RebootServer.
func (*MockComputeInterfaceMockRecorder) ShowConsoleOutput ¶
func (mr *MockComputeInterfaceMockRecorder) ShowConsoleOutput(ctx, id, length any) *gomock.Call
ShowConsoleOutput indicates an expected call of ShowConsoleOutput.
func (*MockComputeInterfaceMockRecorder) StartServer ¶
func (mr *MockComputeInterfaceMockRecorder) StartServer(ctx, id any) *gomock.Call
StartServer indicates an expected call of StartServer.
func (*MockComputeInterfaceMockRecorder) StopServer ¶
func (mr *MockComputeInterfaceMockRecorder) StopServer(ctx, id any) *gomock.Call
StopServer indicates an expected call of StopServer.
func (*MockComputeInterfaceMockRecorder) UpdateQuotas ¶
func (mr *MockComputeInterfaceMockRecorder) UpdateQuotas(ctx, projectID any) *gomock.Call
UpdateQuotas indicates an expected call of UpdateQuotas.
type MockComputeQuotaInterface ¶
type MockComputeQuotaInterface struct {
// contains filtered or unexported fields
}
MockComputeQuotaInterface is a mock of ComputeQuotaInterface interface.
func NewMockComputeQuotaInterface ¶
func NewMockComputeQuotaInterface(ctrl *gomock.Controller) *MockComputeQuotaInterface
NewMockComputeQuotaInterface creates a new mock instance.
func (*MockComputeQuotaInterface) EXPECT ¶
func (m *MockComputeQuotaInterface) EXPECT() *MockComputeQuotaInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockComputeQuotaInterface) UpdateQuotas ¶
func (m *MockComputeQuotaInterface) UpdateQuotas(ctx context.Context, projectID string) error
UpdateQuotas mocks base method.
type MockComputeQuotaInterfaceMockRecorder ¶
type MockComputeQuotaInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockComputeQuotaInterfaceMockRecorder is the mock recorder for MockComputeQuotaInterface.
func (*MockComputeQuotaInterfaceMockRecorder) UpdateQuotas ¶
func (mr *MockComputeQuotaInterfaceMockRecorder) UpdateQuotas(ctx, projectID any) *gomock.Call
UpdateQuotas indicates an expected call of UpdateQuotas.
type MockExternalNetworkInterfsce ¶
type MockExternalNetworkInterfsce struct {
// contains filtered or unexported fields
}
MockExternalNetworkInterfsce is a mock of ExternalNetworkInterfsce interface.
func NewMockExternalNetworkInterfsce ¶
func NewMockExternalNetworkInterfsce(ctrl *gomock.Controller) *MockExternalNetworkInterfsce
NewMockExternalNetworkInterfsce creates a new mock instance.
func (*MockExternalNetworkInterfsce) EXPECT ¶
func (m *MockExternalNetworkInterfsce) EXPECT() *MockExternalNetworkInterfsceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExternalNetworkInterfsce) ExternalNetworks ¶
func (m *MockExternalNetworkInterfsce) ExternalNetworks(ctx context.Context) ([]networks.Network, error)
ExternalNetworks mocks base method.
type MockExternalNetworkInterfsceMockRecorder ¶
type MockExternalNetworkInterfsceMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalNetworkInterfsceMockRecorder is the mock recorder for MockExternalNetworkInterfsce.
func (*MockExternalNetworkInterfsceMockRecorder) ExternalNetworks ¶
func (mr *MockExternalNetworkInterfsceMockRecorder) ExternalNetworks(ctx any) *gomock.Call
ExternalNetworks indicates an expected call of ExternalNetworks.
type MockFlavorInterface ¶
type MockFlavorInterface struct {
// contains filtered or unexported fields
}
MockFlavorInterface is a mock of FlavorInterface interface.
func NewMockFlavorInterface ¶
func NewMockFlavorInterface(ctrl *gomock.Controller) *MockFlavorInterface
NewMockFlavorInterface creates a new mock instance.
func (*MockFlavorInterface) EXPECT ¶
func (m *MockFlavorInterface) EXPECT() *MockFlavorInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFlavorInterface) GetFlavors ¶
GetFlavors mocks base method.
type MockFlavorInterfaceMockRecorder ¶
type MockFlavorInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFlavorInterfaceMockRecorder is the mock recorder for MockFlavorInterface.
func (*MockFlavorInterfaceMockRecorder) GetFlavors ¶
func (mr *MockFlavorInterfaceMockRecorder) GetFlavors(ctx any) *gomock.Call
GetFlavors indicates an expected call of GetFlavors.
type MockFloatingIPInterface ¶
type MockFloatingIPInterface struct {
// contains filtered or unexported fields
}
MockFloatingIPInterface is a mock of FloatingIPInterface interface.
func NewMockFloatingIPInterface ¶
func NewMockFloatingIPInterface(ctrl *gomock.Controller) *MockFloatingIPInterface
NewMockFloatingIPInterface creates a new mock instance.
func (*MockFloatingIPInterface) CreateFloatingIP ¶
func (m *MockFloatingIPInterface) CreateFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
CreateFloatingIP mocks base method.
func (*MockFloatingIPInterface) DeleteFloatingIP ¶
func (m *MockFloatingIPInterface) DeleteFloatingIP(ctx context.Context, id string) error
DeleteFloatingIP mocks base method.
func (*MockFloatingIPInterface) EXPECT ¶
func (m *MockFloatingIPInterface) EXPECT() *MockFloatingIPInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFloatingIPInterface) GetFloatingIP ¶
func (m *MockFloatingIPInterface) GetFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
GetFloatingIP mocks base method.
type MockFloatingIPInterfaceMockRecorder ¶
type MockFloatingIPInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFloatingIPInterfaceMockRecorder is the mock recorder for MockFloatingIPInterface.
func (*MockFloatingIPInterfaceMockRecorder) CreateFloatingIP ¶
func (mr *MockFloatingIPInterfaceMockRecorder) CreateFloatingIP(ctx, portID any) *gomock.Call
CreateFloatingIP indicates an expected call of CreateFloatingIP.
func (*MockFloatingIPInterfaceMockRecorder) DeleteFloatingIP ¶
func (mr *MockFloatingIPInterfaceMockRecorder) DeleteFloatingIP(ctx, id any) *gomock.Call
DeleteFloatingIP indicates an expected call of DeleteFloatingIP.
func (*MockFloatingIPInterfaceMockRecorder) GetFloatingIP ¶
func (mr *MockFloatingIPInterfaceMockRecorder) GetFloatingIP(ctx, portID any) *gomock.Call
GetFloatingIP indicates an expected call of GetFloatingIP.
type MockKeypairInterface ¶
type MockKeypairInterface struct {
// contains filtered or unexported fields
}
MockKeypairInterface is a mock of KeypairInterface interface.
func NewMockKeypairInterface ¶
func NewMockKeypairInterface(ctrl *gomock.Controller) *MockKeypairInterface
NewMockKeypairInterface creates a new mock instance.
func (*MockKeypairInterface) CreateKeypair ¶
func (m *MockKeypairInterface) CreateKeypair(ctx context.Context, name, publicKey string) error
CreateKeypair mocks base method.
func (*MockKeypairInterface) DeleteKeypair ¶
func (m *MockKeypairInterface) DeleteKeypair(ctx context.Context, name string) error
DeleteKeypair mocks base method.
func (*MockKeypairInterface) EXPECT ¶
func (m *MockKeypairInterface) EXPECT() *MockKeypairInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockKeypairInterfaceMockRecorder ¶
type MockKeypairInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockKeypairInterfaceMockRecorder is the mock recorder for MockKeypairInterface.
func (*MockKeypairInterfaceMockRecorder) CreateKeypair ¶
func (mr *MockKeypairInterfaceMockRecorder) CreateKeypair(ctx, name, publicKey any) *gomock.Call
CreateKeypair indicates an expected call of CreateKeypair.
func (*MockKeypairInterfaceMockRecorder) DeleteKeypair ¶
func (mr *MockKeypairInterfaceMockRecorder) DeleteKeypair(ctx, name any) *gomock.Call
DeleteKeypair indicates an expected call of DeleteKeypair.
type MockNetworkInterface ¶
type MockNetworkInterface struct {
// contains filtered or unexported fields
}
MockNetworkInterface is a mock of NetworkInterface interface.
func NewMockNetworkInterface ¶
func NewMockNetworkInterface(ctrl *gomock.Controller) *MockNetworkInterface
NewMockNetworkInterface creates a new mock instance.
func (*MockNetworkInterface) CreateNetwork ¶
func (m *MockNetworkInterface) CreateNetwork(ctx context.Context, network *v1alpha1.Network, vlanID *int) (*openstack.NetworkExt, error)
CreateNetwork mocks base method.
func (*MockNetworkInterface) DeleteNetwork ¶
func (m *MockNetworkInterface) DeleteNetwork(ctx context.Context, id string) error
DeleteNetwork mocks base method.
func (*MockNetworkInterface) EXPECT ¶
func (m *MockNetworkInterface) EXPECT() *MockNetworkInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkInterface) GetNetwork ¶
func (m *MockNetworkInterface) GetNetwork(ctx context.Context, network *v1alpha1.Network) (*openstack.NetworkExt, error)
GetNetwork mocks base method.
type MockNetworkInterfaceMockRecorder ¶
type MockNetworkInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkInterfaceMockRecorder is the mock recorder for MockNetworkInterface.
func (*MockNetworkInterfaceMockRecorder) CreateNetwork ¶
func (mr *MockNetworkInterfaceMockRecorder) CreateNetwork(ctx, network, vlanID any) *gomock.Call
CreateNetwork indicates an expected call of CreateNetwork.
func (*MockNetworkInterfaceMockRecorder) DeleteNetwork ¶
func (mr *MockNetworkInterfaceMockRecorder) DeleteNetwork(ctx, id any) *gomock.Call
DeleteNetwork indicates an expected call of DeleteNetwork.
func (*MockNetworkInterfaceMockRecorder) GetNetwork ¶
func (mr *MockNetworkInterfaceMockRecorder) GetNetwork(ctx, network any) *gomock.Call
GetNetwork indicates an expected call of GetNetwork.
type MockNetworkingInterface ¶
type MockNetworkingInterface struct {
// contains filtered or unexported fields
}
MockNetworkingInterface is a mock of NetworkingInterface interface.
func NewMockNetworkingInterface ¶
func NewMockNetworkingInterface(ctrl *gomock.Controller) *MockNetworkingInterface
NewMockNetworkingInterface creates a new mock instance.
func (*MockNetworkingInterface) AddRouterInterface ¶
func (m *MockNetworkingInterface) AddRouterInterface(ctx context.Context, routerID, subnetID string) error
AddRouterInterface mocks base method.
func (*MockNetworkingInterface) CreateFloatingIP ¶
func (m *MockNetworkingInterface) CreateFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
CreateFloatingIP mocks base method.
func (*MockNetworkingInterface) CreateNetwork ¶
func (m *MockNetworkingInterface) CreateNetwork(ctx context.Context, network *v1alpha1.Network, vlanID *int) (*openstack.NetworkExt, error)
CreateNetwork mocks base method.
func (*MockNetworkingInterface) CreateRouter ¶
func (m *MockNetworkingInterface) CreateRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
CreateRouter mocks base method.
func (*MockNetworkingInterface) CreateSecurityGroup ¶
func (m *MockNetworkingInterface) CreateSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
CreateSecurityGroup mocks base method.
func (*MockNetworkingInterface) CreateSecurityGroupRule ¶
func (m *MockNetworkingInterface) CreateSecurityGroupRule(ctx context.Context, securityGroupID string, direction rules.RuleDirection, protocol rules.RuleProtocol, portStart, portEnd int, prefix string) (*rules.SecGroupRule, error)
CreateSecurityGroupRule mocks base method.
func (*MockNetworkingInterface) CreateServerPort ¶
func (m *MockNetworkingInterface) CreateServerPort(ctx context.Context, server *v1alpha1.Server, networkID string, securityGroupIDs []string, allowedAddressPairs []ports.AddressPair) (*ports.Port, error)
CreateServerPort mocks base method.
func (*MockNetworkingInterface) CreateSubnet ¶
func (m *MockNetworkingInterface) CreateSubnet(ctx context.Context, network *v1alpha1.Network, networkID, prefix, gatewayID string, dnsNameservers []string, allocationPools []subnets.AllocationPool) (*subnets.Subnet, error)
CreateSubnet mocks base method.
func (*MockNetworkingInterface) DeleteFloatingIP ¶
func (m *MockNetworkingInterface) DeleteFloatingIP(ctx context.Context, id string) error
DeleteFloatingIP mocks base method.
func (*MockNetworkingInterface) DeleteNetwork ¶
func (m *MockNetworkingInterface) DeleteNetwork(ctx context.Context, id string) error
DeleteNetwork mocks base method.
func (*MockNetworkingInterface) DeletePort ¶
func (m *MockNetworkingInterface) DeletePort(ctx context.Context, portID string) error
DeletePort mocks base method.
func (*MockNetworkingInterface) DeleteRouter ¶
func (m *MockNetworkingInterface) DeleteRouter(ctx context.Context, id string) error
DeleteRouter mocks base method.
func (*MockNetworkingInterface) DeleteSecurityGroup ¶
func (m *MockNetworkingInterface) DeleteSecurityGroup(ctx context.Context, securityGroupID string) error
DeleteSecurityGroup mocks base method.
func (*MockNetworkingInterface) DeleteSecurityGroupRule ¶
func (m *MockNetworkingInterface) DeleteSecurityGroupRule(ctx context.Context, securityGroupID, ruleID string) error
DeleteSecurityGroupRule mocks base method.
func (*MockNetworkingInterface) DeleteSubnet ¶
func (m *MockNetworkingInterface) DeleteSubnet(ctx context.Context, id string) error
DeleteSubnet mocks base method.
func (*MockNetworkingInterface) EXPECT ¶
func (m *MockNetworkingInterface) EXPECT() *MockNetworkingInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkingInterface) ExternalNetworks ¶
ExternalNetworks mocks base method.
func (*MockNetworkingInterface) GetFloatingIP ¶
func (m *MockNetworkingInterface) GetFloatingIP(ctx context.Context, portID string) (*floatingips.FloatingIP, error)
GetFloatingIP mocks base method.
func (*MockNetworkingInterface) GetNetwork ¶
func (m *MockNetworkingInterface) GetNetwork(ctx context.Context, network *v1alpha1.Network) (*openstack.NetworkExt, error)
GetNetwork mocks base method.
func (*MockNetworkingInterface) GetRouter ¶
func (m *MockNetworkingInterface) GetRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
GetRouter mocks base method.
func (*MockNetworkingInterface) GetSecurityGroup ¶
func (m *MockNetworkingInterface) GetSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
GetSecurityGroup mocks base method.
func (*MockNetworkingInterface) GetServerPort ¶
func (m *MockNetworkingInterface) GetServerPort(ctx context.Context, server *v1alpha1.Server) (*ports.Port, error)
GetServerPort mocks base method.
func (*MockNetworkingInterface) GetSubnet ¶
func (m *MockNetworkingInterface) GetSubnet(ctx context.Context, network *v1alpha1.Network) (*subnets.Subnet, error)
GetSubnet mocks base method.
func (*MockNetworkingInterface) ListRouterPorts ¶
func (m *MockNetworkingInterface) ListRouterPorts(ctx context.Context, routerID string) ([]ports.Port, error)
ListRouterPorts mocks base method.
func (*MockNetworkingInterface) ListSecurityGroupRules ¶
func (m *MockNetworkingInterface) ListSecurityGroupRules(ctx context.Context, securityGroupID string) ([]rules.SecGroupRule, error)
ListSecurityGroupRules mocks base method.
func (*MockNetworkingInterface) ListServerPorts ¶
func (m *MockNetworkingInterface) ListServerPorts(ctx context.Context, serverID string) ([]ports.Port, error)
ListServerPorts mocks base method.
func (*MockNetworkingInterface) RemoveRouterInterface ¶
func (m *MockNetworkingInterface) RemoveRouterInterface(ctx context.Context, routerID, subnetID string) error
RemoveRouterInterface mocks base method.
func (*MockNetworkingInterface) UpdatePort ¶
func (m *MockNetworkingInterface) UpdatePort(ctx context.Context, portID string, securityGroupIDs []string, allowedAddressPairs []ports.AddressPair) (*ports.Port, error)
UpdatePort mocks base method.
type MockNetworkingInterfaceMockRecorder ¶
type MockNetworkingInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkingInterfaceMockRecorder is the mock recorder for MockNetworkingInterface.
func (*MockNetworkingInterfaceMockRecorder) AddRouterInterface ¶
func (mr *MockNetworkingInterfaceMockRecorder) AddRouterInterface(ctx, routerID, subnetID any) *gomock.Call
AddRouterInterface indicates an expected call of AddRouterInterface.
func (*MockNetworkingInterfaceMockRecorder) CreateFloatingIP ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateFloatingIP(ctx, portID any) *gomock.Call
CreateFloatingIP indicates an expected call of CreateFloatingIP.
func (*MockNetworkingInterfaceMockRecorder) CreateNetwork ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateNetwork(ctx, network, vlanID any) *gomock.Call
CreateNetwork indicates an expected call of CreateNetwork.
func (*MockNetworkingInterfaceMockRecorder) CreateRouter ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateRouter(ctx, network any) *gomock.Call
CreateRouter indicates an expected call of CreateRouter.
func (*MockNetworkingInterfaceMockRecorder) CreateSecurityGroup ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateSecurityGroup(ctx, securityGroup any) *gomock.Call
CreateSecurityGroup indicates an expected call of CreateSecurityGroup.
func (*MockNetworkingInterfaceMockRecorder) CreateSecurityGroupRule ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateSecurityGroupRule(ctx, securityGroupID, direction, protocol, portStart, portEnd, prefix any) *gomock.Call
CreateSecurityGroupRule indicates an expected call of CreateSecurityGroupRule.
func (*MockNetworkingInterfaceMockRecorder) CreateServerPort ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateServerPort(ctx, server, networkID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
CreateServerPort indicates an expected call of CreateServerPort.
func (*MockNetworkingInterfaceMockRecorder) CreateSubnet ¶
func (mr *MockNetworkingInterfaceMockRecorder) CreateSubnet(ctx, network, networkID, prefix, gatewayID, dnsNameservers, allocationPools any) *gomock.Call
CreateSubnet indicates an expected call of CreateSubnet.
func (*MockNetworkingInterfaceMockRecorder) DeleteFloatingIP ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteFloatingIP(ctx, id any) *gomock.Call
DeleteFloatingIP indicates an expected call of DeleteFloatingIP.
func (*MockNetworkingInterfaceMockRecorder) DeleteNetwork ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteNetwork(ctx, id any) *gomock.Call
DeleteNetwork indicates an expected call of DeleteNetwork.
func (*MockNetworkingInterfaceMockRecorder) DeletePort ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeletePort(ctx, portID any) *gomock.Call
DeletePort indicates an expected call of DeletePort.
func (*MockNetworkingInterfaceMockRecorder) DeleteRouter ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteRouter(ctx, id any) *gomock.Call
DeleteRouter indicates an expected call of DeleteRouter.
func (*MockNetworkingInterfaceMockRecorder) DeleteSecurityGroup ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteSecurityGroup(ctx, securityGroupID any) *gomock.Call
DeleteSecurityGroup indicates an expected call of DeleteSecurityGroup.
func (*MockNetworkingInterfaceMockRecorder) DeleteSecurityGroupRule ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteSecurityGroupRule(ctx, securityGroupID, ruleID any) *gomock.Call
DeleteSecurityGroupRule indicates an expected call of DeleteSecurityGroupRule.
func (*MockNetworkingInterfaceMockRecorder) DeleteSubnet ¶
func (mr *MockNetworkingInterfaceMockRecorder) DeleteSubnet(ctx, id any) *gomock.Call
DeleteSubnet indicates an expected call of DeleteSubnet.
func (*MockNetworkingInterfaceMockRecorder) ExternalNetworks ¶
func (mr *MockNetworkingInterfaceMockRecorder) ExternalNetworks(ctx any) *gomock.Call
ExternalNetworks indicates an expected call of ExternalNetworks.
func (*MockNetworkingInterfaceMockRecorder) GetFloatingIP ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetFloatingIP(ctx, portID any) *gomock.Call
GetFloatingIP indicates an expected call of GetFloatingIP.
func (*MockNetworkingInterfaceMockRecorder) GetNetwork ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetNetwork(ctx, network any) *gomock.Call
GetNetwork indicates an expected call of GetNetwork.
func (*MockNetworkingInterfaceMockRecorder) GetRouter ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetRouter(ctx, network any) *gomock.Call
GetRouter indicates an expected call of GetRouter.
func (*MockNetworkingInterfaceMockRecorder) GetSecurityGroup ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetSecurityGroup(ctx, securityGroup any) *gomock.Call
GetSecurityGroup indicates an expected call of GetSecurityGroup.
func (*MockNetworkingInterfaceMockRecorder) GetServerPort ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetServerPort(ctx, server any) *gomock.Call
GetServerPort indicates an expected call of GetServerPort.
func (*MockNetworkingInterfaceMockRecorder) GetSubnet ¶
func (mr *MockNetworkingInterfaceMockRecorder) GetSubnet(ctx, network any) *gomock.Call
GetSubnet indicates an expected call of GetSubnet.
func (*MockNetworkingInterfaceMockRecorder) ListRouterPorts ¶
func (mr *MockNetworkingInterfaceMockRecorder) ListRouterPorts(ctx, routerID any) *gomock.Call
ListRouterPorts indicates an expected call of ListRouterPorts.
func (*MockNetworkingInterfaceMockRecorder) ListSecurityGroupRules ¶
func (mr *MockNetworkingInterfaceMockRecorder) ListSecurityGroupRules(ctx, securityGroupID any) *gomock.Call
ListSecurityGroupRules indicates an expected call of ListSecurityGroupRules.
func (*MockNetworkingInterfaceMockRecorder) ListServerPorts ¶
func (mr *MockNetworkingInterfaceMockRecorder) ListServerPorts(ctx, serverID any) *gomock.Call
ListServerPorts indicates an expected call of ListServerPorts.
func (*MockNetworkingInterfaceMockRecorder) RemoveRouterInterface ¶
func (mr *MockNetworkingInterfaceMockRecorder) RemoveRouterInterface(ctx, routerID, subnetID any) *gomock.Call
RemoveRouterInterface indicates an expected call of RemoveRouterInterface.
func (*MockNetworkingInterfaceMockRecorder) UpdatePort ¶
func (mr *MockNetworkingInterfaceMockRecorder) UpdatePort(ctx, portID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
UpdatePort indicates an expected call of UpdatePort.
type MockPortInterface ¶
type MockPortInterface struct {
// contains filtered or unexported fields
}
MockPortInterface is a mock of PortInterface interface.
func NewMockPortInterface ¶
func NewMockPortInterface(ctrl *gomock.Controller) *MockPortInterface
NewMockPortInterface creates a new mock instance.
func (*MockPortInterface) CreateServerPort ¶
func (m *MockPortInterface) CreateServerPort(ctx context.Context, server *v1alpha1.Server, networkID string, securityGroupIDs []string, allowedAddressPairs []ports.AddressPair) (*ports.Port, error)
CreateServerPort mocks base method.
func (*MockPortInterface) DeletePort ¶
func (m *MockPortInterface) DeletePort(ctx context.Context, portID string) error
DeletePort mocks base method.
func (*MockPortInterface) EXPECT ¶
func (m *MockPortInterface) EXPECT() *MockPortInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortInterface) GetServerPort ¶
func (m *MockPortInterface) GetServerPort(ctx context.Context, server *v1alpha1.Server) (*ports.Port, error)
GetServerPort mocks base method.
func (*MockPortInterface) ListRouterPorts ¶
func (m *MockPortInterface) ListRouterPorts(ctx context.Context, routerID string) ([]ports.Port, error)
ListRouterPorts mocks base method.
func (*MockPortInterface) ListServerPorts ¶
func (m *MockPortInterface) ListServerPorts(ctx context.Context, serverID string) ([]ports.Port, error)
ListServerPorts mocks base method.
func (*MockPortInterface) UpdatePort ¶
func (m *MockPortInterface) UpdatePort(ctx context.Context, portID string, securityGroupIDs []string, allowedAddressPairs []ports.AddressPair) (*ports.Port, error)
UpdatePort mocks base method.
type MockPortInterfaceMockRecorder ¶
type MockPortInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockPortInterfaceMockRecorder is the mock recorder for MockPortInterface.
func (*MockPortInterfaceMockRecorder) CreateServerPort ¶
func (mr *MockPortInterfaceMockRecorder) CreateServerPort(ctx, server, networkID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
CreateServerPort indicates an expected call of CreateServerPort.
func (*MockPortInterfaceMockRecorder) DeletePort ¶
func (mr *MockPortInterfaceMockRecorder) DeletePort(ctx, portID any) *gomock.Call
DeletePort indicates an expected call of DeletePort.
func (*MockPortInterfaceMockRecorder) GetServerPort ¶
func (mr *MockPortInterfaceMockRecorder) GetServerPort(ctx, server any) *gomock.Call
GetServerPort indicates an expected call of GetServerPort.
func (*MockPortInterfaceMockRecorder) ListRouterPorts ¶
func (mr *MockPortInterfaceMockRecorder) ListRouterPorts(ctx, routerID any) *gomock.Call
ListRouterPorts indicates an expected call of ListRouterPorts.
func (*MockPortInterfaceMockRecorder) ListServerPorts ¶
func (mr *MockPortInterfaceMockRecorder) ListServerPorts(ctx, serverID any) *gomock.Call
ListServerPorts indicates an expected call of ListServerPorts.
func (*MockPortInterfaceMockRecorder) UpdatePort ¶
func (mr *MockPortInterfaceMockRecorder) UpdatePort(ctx, portID, securityGroupIDs, allowedAddressPairs any) *gomock.Call
UpdatePort indicates an expected call of UpdatePort.
type MockRouterInterface ¶
type MockRouterInterface struct {
// contains filtered or unexported fields
}
MockRouterInterface is a mock of RouterInterface interface.
func NewMockRouterInterface ¶
func NewMockRouterInterface(ctrl *gomock.Controller) *MockRouterInterface
NewMockRouterInterface creates a new mock instance.
func (*MockRouterInterface) AddRouterInterface ¶
func (m *MockRouterInterface) AddRouterInterface(ctx context.Context, routerID, subnetID string) error
AddRouterInterface mocks base method.
func (*MockRouterInterface) CreateRouter ¶
func (m *MockRouterInterface) CreateRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
CreateRouter mocks base method.
func (*MockRouterInterface) DeleteRouter ¶
func (m *MockRouterInterface) DeleteRouter(ctx context.Context, id string) error
DeleteRouter mocks base method.
func (*MockRouterInterface) EXPECT ¶
func (m *MockRouterInterface) EXPECT() *MockRouterInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRouterInterface) GetRouter ¶
func (m *MockRouterInterface) GetRouter(ctx context.Context, network *v1alpha1.Network) (*routers.Router, error)
GetRouter mocks base method.
func (*MockRouterInterface) RemoveRouterInterface ¶
func (m *MockRouterInterface) RemoveRouterInterface(ctx context.Context, routerID, subnetID string) error
RemoveRouterInterface mocks base method.
type MockRouterInterfaceMockRecorder ¶
type MockRouterInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRouterInterfaceMockRecorder is the mock recorder for MockRouterInterface.
func (*MockRouterInterfaceMockRecorder) AddRouterInterface ¶
func (mr *MockRouterInterfaceMockRecorder) AddRouterInterface(ctx, routerID, subnetID any) *gomock.Call
AddRouterInterface indicates an expected call of AddRouterInterface.
func (*MockRouterInterfaceMockRecorder) CreateRouter ¶
func (mr *MockRouterInterfaceMockRecorder) CreateRouter(ctx, network any) *gomock.Call
CreateRouter indicates an expected call of CreateRouter.
func (*MockRouterInterfaceMockRecorder) DeleteRouter ¶
func (mr *MockRouterInterfaceMockRecorder) DeleteRouter(ctx, id any) *gomock.Call
DeleteRouter indicates an expected call of DeleteRouter.
func (*MockRouterInterfaceMockRecorder) GetRouter ¶
func (mr *MockRouterInterfaceMockRecorder) GetRouter(ctx, network any) *gomock.Call
GetRouter indicates an expected call of GetRouter.
func (*MockRouterInterfaceMockRecorder) RemoveRouterInterface ¶
func (mr *MockRouterInterfaceMockRecorder) RemoveRouterInterface(ctx, routerID, subnetID any) *gomock.Call
RemoveRouterInterface indicates an expected call of RemoveRouterInterface.
type MockSecurityGroupInterface ¶
type MockSecurityGroupInterface struct {
// contains filtered or unexported fields
}
MockSecurityGroupInterface is a mock of SecurityGroupInterface interface.
func NewMockSecurityGroupInterface ¶
func NewMockSecurityGroupInterface(ctrl *gomock.Controller) *MockSecurityGroupInterface
NewMockSecurityGroupInterface creates a new mock instance.
func (*MockSecurityGroupInterface) CreateSecurityGroup ¶
func (m *MockSecurityGroupInterface) CreateSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
CreateSecurityGroup mocks base method.
func (*MockSecurityGroupInterface) CreateSecurityGroupRule ¶
func (m *MockSecurityGroupInterface) CreateSecurityGroupRule(ctx context.Context, securityGroupID string, direction rules.RuleDirection, protocol rules.RuleProtocol, portStart, portEnd int, prefix string) (*rules.SecGroupRule, error)
CreateSecurityGroupRule mocks base method.
func (*MockSecurityGroupInterface) DeleteSecurityGroup ¶
func (m *MockSecurityGroupInterface) DeleteSecurityGroup(ctx context.Context, securityGroupID string) error
DeleteSecurityGroup mocks base method.
func (*MockSecurityGroupInterface) DeleteSecurityGroupRule ¶
func (m *MockSecurityGroupInterface) DeleteSecurityGroupRule(ctx context.Context, securityGroupID, ruleID string) error
DeleteSecurityGroupRule mocks base method.
func (*MockSecurityGroupInterface) EXPECT ¶
func (m *MockSecurityGroupInterface) EXPECT() *MockSecurityGroupInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecurityGroupInterface) GetSecurityGroup ¶
func (m *MockSecurityGroupInterface) GetSecurityGroup(ctx context.Context, securityGroup *v1alpha1.SecurityGroup) (*groups.SecGroup, error)
GetSecurityGroup mocks base method.
func (*MockSecurityGroupInterface) ListSecurityGroupRules ¶
func (m *MockSecurityGroupInterface) ListSecurityGroupRules(ctx context.Context, securityGroupID string) ([]rules.SecGroupRule, error)
ListSecurityGroupRules mocks base method.
type MockSecurityGroupInterfaceMockRecorder ¶
type MockSecurityGroupInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecurityGroupInterfaceMockRecorder is the mock recorder for MockSecurityGroupInterface.
func (*MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroup ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroup(ctx, securityGroup any) *gomock.Call
CreateSecurityGroup indicates an expected call of CreateSecurityGroup.
func (*MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroupRule ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) CreateSecurityGroupRule(ctx, securityGroupID, direction, protocol, portStart, portEnd, prefix any) *gomock.Call
CreateSecurityGroupRule indicates an expected call of CreateSecurityGroupRule.
func (*MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroup ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroup(ctx, securityGroupID any) *gomock.Call
DeleteSecurityGroup indicates an expected call of DeleteSecurityGroup.
func (*MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroupRule ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) DeleteSecurityGroupRule(ctx, securityGroupID, ruleID any) *gomock.Call
DeleteSecurityGroupRule indicates an expected call of DeleteSecurityGroupRule.
func (*MockSecurityGroupInterfaceMockRecorder) GetSecurityGroup ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) GetSecurityGroup(ctx, securityGroup any) *gomock.Call
GetSecurityGroup indicates an expected call of GetSecurityGroup.
func (*MockSecurityGroupInterfaceMockRecorder) ListSecurityGroupRules ¶
func (mr *MockSecurityGroupInterfaceMockRecorder) ListSecurityGroupRules(ctx, securityGroupID any) *gomock.Call
ListSecurityGroupRules indicates an expected call of ListSecurityGroupRules.
type MockServerGroupInterface ¶
type MockServerGroupInterface struct {
// contains filtered or unexported fields
}
MockServerGroupInterface is a mock of ServerGroupInterface interface.
func NewMockServerGroupInterface ¶
func NewMockServerGroupInterface(ctrl *gomock.Controller) *MockServerGroupInterface
NewMockServerGroupInterface creates a new mock instance.
func (*MockServerGroupInterface) CreateServerGroup ¶
func (m *MockServerGroupInterface) CreateServerGroup(ctx context.Context, name string) (*servergroups.ServerGroup, error)
CreateServerGroup mocks base method.
func (*MockServerGroupInterface) DeleteServerGroup ¶
func (m *MockServerGroupInterface) DeleteServerGroup(ctx context.Context, id string) error
DeleteServerGroup mocks base method.
func (*MockServerGroupInterface) EXPECT ¶
func (m *MockServerGroupInterface) EXPECT() *MockServerGroupInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServerGroupInterfaceMockRecorder ¶
type MockServerGroupInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockServerGroupInterfaceMockRecorder is the mock recorder for MockServerGroupInterface.
func (*MockServerGroupInterfaceMockRecorder) CreateServerGroup ¶
func (mr *MockServerGroupInterfaceMockRecorder) CreateServerGroup(ctx, name any) *gomock.Call
CreateServerGroup indicates an expected call of CreateServerGroup.
func (*MockServerGroupInterfaceMockRecorder) DeleteServerGroup ¶
func (mr *MockServerGroupInterfaceMockRecorder) DeleteServerGroup(ctx, id any) *gomock.Call
DeleteServerGroup indicates an expected call of DeleteServerGroup.
type MockServerInterface ¶
type MockServerInterface struct {
// contains filtered or unexported fields
}
MockServerInterface is a mock of ServerInterface interface.
func NewMockServerInterface ¶
func NewMockServerInterface(ctrl *gomock.Controller) *MockServerInterface
NewMockServerInterface creates a new mock instance.
func (*MockServerInterface) CreateRemoteConsole ¶
func (m *MockServerInterface) CreateRemoteConsole(ctx context.Context, id string) (*remoteconsoles.RemoteConsole, error)
CreateRemoteConsole mocks base method.
func (*MockServerInterface) CreateServer ¶
func (m *MockServerInterface) CreateServer(ctx context.Context, server *v1alpha1.Server, keyName string, networks []servers.Network, serverGroupID *string, metadata map[string]string) (*servers.Server, error)
CreateServer mocks base method.
func (*MockServerInterface) DeleteServer ¶
func (m *MockServerInterface) DeleteServer(ctx context.Context, id string) error
DeleteServer mocks base method.
func (*MockServerInterface) EXPECT ¶
func (m *MockServerInterface) EXPECT() *MockServerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServerInterface) GetServer ¶
func (m *MockServerInterface) GetServer(ctx context.Context, server *v1alpha1.Server) (*servers.Server, error)
GetServer mocks base method.
func (*MockServerInterface) RebootServer ¶
RebootServer mocks base method.
func (*MockServerInterface) ShowConsoleOutput ¶
func (m *MockServerInterface) ShowConsoleOutput(ctx context.Context, id string, length *int) (string, error)
ShowConsoleOutput mocks base method.
func (*MockServerInterface) StartServer ¶
func (m *MockServerInterface) StartServer(ctx context.Context, id string) error
StartServer mocks base method.
func (*MockServerInterface) StopServer ¶
func (m *MockServerInterface) StopServer(ctx context.Context, id string) error
StopServer mocks base method.
type MockServerInterfaceMockRecorder ¶
type MockServerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockServerInterfaceMockRecorder is the mock recorder for MockServerInterface.
func (*MockServerInterfaceMockRecorder) CreateRemoteConsole ¶
func (mr *MockServerInterfaceMockRecorder) CreateRemoteConsole(ctx, id any) *gomock.Call
CreateRemoteConsole indicates an expected call of CreateRemoteConsole.
func (*MockServerInterfaceMockRecorder) CreateServer ¶
func (mr *MockServerInterfaceMockRecorder) CreateServer(ctx, server, keyName, networks, serverGroupID, metadata any) *gomock.Call
CreateServer indicates an expected call of CreateServer.
func (*MockServerInterfaceMockRecorder) DeleteServer ¶
func (mr *MockServerInterfaceMockRecorder) DeleteServer(ctx, id any) *gomock.Call
DeleteServer indicates an expected call of DeleteServer.
func (*MockServerInterfaceMockRecorder) GetServer ¶
func (mr *MockServerInterfaceMockRecorder) GetServer(ctx, server any) *gomock.Call
GetServer indicates an expected call of GetServer.
func (*MockServerInterfaceMockRecorder) RebootServer ¶
func (mr *MockServerInterfaceMockRecorder) RebootServer(ctx, id, hard any) *gomock.Call
RebootServer indicates an expected call of RebootServer.
func (*MockServerInterfaceMockRecorder) ShowConsoleOutput ¶
func (mr *MockServerInterfaceMockRecorder) ShowConsoleOutput(ctx, id, length any) *gomock.Call
ShowConsoleOutput indicates an expected call of ShowConsoleOutput.
func (*MockServerInterfaceMockRecorder) StartServer ¶
func (mr *MockServerInterfaceMockRecorder) StartServer(ctx, id any) *gomock.Call
StartServer indicates an expected call of StartServer.
func (*MockServerInterfaceMockRecorder) StopServer ¶
func (mr *MockServerInterfaceMockRecorder) StopServer(ctx, id any) *gomock.Call
StopServer indicates an expected call of StopServer.
type MockSubnetInterface ¶
type MockSubnetInterface struct {
// contains filtered or unexported fields
}
MockSubnetInterface is a mock of SubnetInterface interface.
func NewMockSubnetInterface ¶
func NewMockSubnetInterface(ctrl *gomock.Controller) *MockSubnetInterface
NewMockSubnetInterface creates a new mock instance.
func (*MockSubnetInterface) CreateSubnet ¶
func (m *MockSubnetInterface) CreateSubnet(ctx context.Context, network *v1alpha1.Network, networkID, prefix, gatewayID string, dnsNameservers []string, allocationPools []subnets.AllocationPool) (*subnets.Subnet, error)
CreateSubnet mocks base method.
func (*MockSubnetInterface) DeleteSubnet ¶
func (m *MockSubnetInterface) DeleteSubnet(ctx context.Context, id string) error
DeleteSubnet mocks base method.
func (*MockSubnetInterface) EXPECT ¶
func (m *MockSubnetInterface) EXPECT() *MockSubnetInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSubnetInterfaceMockRecorder ¶
type MockSubnetInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSubnetInterfaceMockRecorder is the mock recorder for MockSubnetInterface.
func (*MockSubnetInterfaceMockRecorder) CreateSubnet ¶
func (mr *MockSubnetInterfaceMockRecorder) CreateSubnet(ctx, network, networkID, prefix, gatewayID, dnsNameservers, allocationPools any) *gomock.Call
CreateSubnet indicates an expected call of CreateSubnet.
func (*MockSubnetInterfaceMockRecorder) DeleteSubnet ¶
func (mr *MockSubnetInterfaceMockRecorder) DeleteSubnet(ctx, id any) *gomock.Call
DeleteSubnet indicates an expected call of DeleteSubnet.