Documentation ¶
Overview ¶
Package openstack is a generated GoMock package.
Index ¶
- type MockCompute
- func (m *MockCompute) BootFromVolume(opts servers.CreateOptsBuilder) (*servers.Server, error)
- func (m *MockCompute) CreateServer(opts servers.CreateOptsBuilder) (*servers.Server, error)
- func (m *MockCompute) DeleteServer(id string) error
- func (m *MockCompute) EXPECT() *MockComputeMockRecorder
- func (m *MockCompute) FlavorIDFromName(name string) (string, error)
- func (m *MockCompute) GetServer(id string) (*servers.Server, error)
- func (m *MockCompute) ImageIDFromName(name string) (string, error)
- func (m *MockCompute) ListServers(opts servers.ListOptsBuilder) ([]servers.Server, error)
- type MockComputeMockRecorder
- func (mr *MockComputeMockRecorder) BootFromVolume(opts any) *gomock.Call
- func (mr *MockComputeMockRecorder) CreateServer(opts any) *gomock.Call
- func (mr *MockComputeMockRecorder) DeleteServer(id any) *gomock.Call
- func (mr *MockComputeMockRecorder) FlavorIDFromName(name any) *gomock.Call
- func (mr *MockComputeMockRecorder) GetServer(id any) *gomock.Call
- func (mr *MockComputeMockRecorder) ImageIDFromName(name any) *gomock.Call
- func (mr *MockComputeMockRecorder) ListServers(opts any) *gomock.Call
- type MockNetwork
- func (m *MockNetwork) CreatePort(opts ports.CreateOptsBuilder) (*ports.Port, error)
- func (m *MockNetwork) DeletePort(id string) error
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) GetSubnet(id string) (*subnets.Subnet, error)
- func (m *MockNetwork) GroupIDFromName(name string) (string, error)
- func (m *MockNetwork) ListPorts(opts ports.ListOptsBuilder) ([]ports.Port, error)
- func (m *MockNetwork) NetworkIDFromName(name string) (string, error)
- func (m *MockNetwork) PortIDFromName(name string) (string, error)
- func (m *MockNetwork) TagPort(id string, tags []string) error
- func (m *MockNetwork) UpdatePort(id string, opts ports.UpdateOptsBuilder) error
- type MockNetworkMockRecorder
- func (mr *MockNetworkMockRecorder) CreatePort(opts any) *gomock.Call
- func (mr *MockNetworkMockRecorder) DeletePort(id any) *gomock.Call
- func (mr *MockNetworkMockRecorder) GetSubnet(id any) *gomock.Call
- func (mr *MockNetworkMockRecorder) GroupIDFromName(name any) *gomock.Call
- func (mr *MockNetworkMockRecorder) ListPorts(opts any) *gomock.Call
- func (mr *MockNetworkMockRecorder) NetworkIDFromName(name any) *gomock.Call
- func (mr *MockNetworkMockRecorder) PortIDFromName(name any) *gomock.Call
- func (mr *MockNetworkMockRecorder) TagPort(id, tags any) *gomock.Call
- func (mr *MockNetworkMockRecorder) UpdatePort(id, opts any) *gomock.Call
- type MockStorage
- func (m *MockStorage) CreateVolume(opts volumes.CreateOptsBuilder) (*volumes.Volume, error)
- func (m *MockStorage) DeleteVolume(id string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetVolume(id string) (*volumes.Volume, error)
- func (m *MockStorage) ListVolumes(opts volumes.ListOptsBuilder) ([]volumes.Volume, error)
- func (m *MockStorage) VolumeIDFromName(name string) (string, error)
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) CreateVolume(opts any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteVolume(id any) *gomock.Call
- func (mr *MockStorageMockRecorder) GetVolume(id any) *gomock.Call
- func (mr *MockStorageMockRecorder) ListVolumes(opts any) *gomock.Call
- func (mr *MockStorageMockRecorder) VolumeIDFromName(name any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCompute ¶
type MockCompute struct {
// contains filtered or unexported fields
}
MockCompute is a mock of Compute interface.
func NewMockCompute ¶
func NewMockCompute(ctrl *gomock.Controller) *MockCompute
NewMockCompute creates a new mock instance.
func (*MockCompute) BootFromVolume ¶
func (m *MockCompute) BootFromVolume(opts servers.CreateOptsBuilder) (*servers.Server, error)
BootFromVolume mocks base method.
func (*MockCompute) CreateServer ¶
func (m *MockCompute) CreateServer(opts servers.CreateOptsBuilder) (*servers.Server, error)
CreateServer mocks base method.
func (*MockCompute) DeleteServer ¶
func (m *MockCompute) DeleteServer(id string) error
DeleteServer mocks base method.
func (*MockCompute) EXPECT ¶
func (m *MockCompute) EXPECT() *MockComputeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCompute) FlavorIDFromName ¶
func (m *MockCompute) FlavorIDFromName(name string) (string, error)
FlavorIDFromName mocks base method.
func (*MockCompute) GetServer ¶
func (m *MockCompute) GetServer(id string) (*servers.Server, error)
GetServer mocks base method.
func (*MockCompute) ImageIDFromName ¶
func (m *MockCompute) ImageIDFromName(name string) (string, error)
ImageIDFromName mocks base method.
func (*MockCompute) ListServers ¶
func (m *MockCompute) ListServers(opts servers.ListOptsBuilder) ([]servers.Server, error)
ListServers mocks base method.
type MockComputeMockRecorder ¶
type MockComputeMockRecorder struct {
// contains filtered or unexported fields
}
MockComputeMockRecorder is the mock recorder for MockCompute.
func (*MockComputeMockRecorder) BootFromVolume ¶
func (mr *MockComputeMockRecorder) BootFromVolume(opts any) *gomock.Call
BootFromVolume indicates an expected call of BootFromVolume.
func (*MockComputeMockRecorder) CreateServer ¶
func (mr *MockComputeMockRecorder) CreateServer(opts any) *gomock.Call
CreateServer indicates an expected call of CreateServer.
func (*MockComputeMockRecorder) DeleteServer ¶
func (mr *MockComputeMockRecorder) DeleteServer(id any) *gomock.Call
DeleteServer indicates an expected call of DeleteServer.
func (*MockComputeMockRecorder) FlavorIDFromName ¶
func (mr *MockComputeMockRecorder) FlavorIDFromName(name any) *gomock.Call
FlavorIDFromName indicates an expected call of FlavorIDFromName.
func (*MockComputeMockRecorder) GetServer ¶
func (mr *MockComputeMockRecorder) GetServer(id any) *gomock.Call
GetServer indicates an expected call of GetServer.
func (*MockComputeMockRecorder) ImageIDFromName ¶
func (mr *MockComputeMockRecorder) ImageIDFromName(name any) *gomock.Call
ImageIDFromName indicates an expected call of ImageIDFromName.
func (*MockComputeMockRecorder) ListServers ¶
func (mr *MockComputeMockRecorder) ListServers(opts any) *gomock.Call
ListServers indicates an expected call of ListServers.
type MockNetwork ¶
type MockNetwork struct {
// contains filtered or unexported fields
}
MockNetwork is a mock of Network interface.
func NewMockNetwork ¶
func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork
NewMockNetwork creates a new mock instance.
func (*MockNetwork) CreatePort ¶
func (m *MockNetwork) CreatePort(opts ports.CreateOptsBuilder) (*ports.Port, error)
CreatePort mocks base method.
func (*MockNetwork) DeletePort ¶
func (m *MockNetwork) DeletePort(id string) error
DeletePort mocks base method.
func (*MockNetwork) EXPECT ¶
func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetwork) GetSubnet ¶
func (m *MockNetwork) GetSubnet(id string) (*subnets.Subnet, error)
GetSubnet mocks base method.
func (*MockNetwork) GroupIDFromName ¶
func (m *MockNetwork) GroupIDFromName(name string) (string, error)
GroupIDFromName mocks base method.
func (*MockNetwork) ListPorts ¶
func (m *MockNetwork) ListPorts(opts ports.ListOptsBuilder) ([]ports.Port, error)
ListPorts mocks base method.
func (*MockNetwork) NetworkIDFromName ¶
func (m *MockNetwork) NetworkIDFromName(name string) (string, error)
NetworkIDFromName mocks base method.
func (*MockNetwork) PortIDFromName ¶
func (m *MockNetwork) PortIDFromName(name string) (string, error)
PortIDFromName mocks base method.
func (*MockNetwork) TagPort ¶
func (m *MockNetwork) TagPort(id string, tags []string) error
TagPort mocks base method.
func (*MockNetwork) UpdatePort ¶
func (m *MockNetwork) UpdatePort(id string, opts ports.UpdateOptsBuilder) error
UpdatePort mocks base method.
type MockNetworkMockRecorder ¶
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork.
func (*MockNetworkMockRecorder) CreatePort ¶
func (mr *MockNetworkMockRecorder) CreatePort(opts any) *gomock.Call
CreatePort indicates an expected call of CreatePort.
func (*MockNetworkMockRecorder) DeletePort ¶
func (mr *MockNetworkMockRecorder) DeletePort(id any) *gomock.Call
DeletePort indicates an expected call of DeletePort.
func (*MockNetworkMockRecorder) GetSubnet ¶
func (mr *MockNetworkMockRecorder) GetSubnet(id any) *gomock.Call
GetSubnet indicates an expected call of GetSubnet.
func (*MockNetworkMockRecorder) GroupIDFromName ¶
func (mr *MockNetworkMockRecorder) GroupIDFromName(name any) *gomock.Call
GroupIDFromName indicates an expected call of GroupIDFromName.
func (*MockNetworkMockRecorder) ListPorts ¶
func (mr *MockNetworkMockRecorder) ListPorts(opts any) *gomock.Call
ListPorts indicates an expected call of ListPorts.
func (*MockNetworkMockRecorder) NetworkIDFromName ¶
func (mr *MockNetworkMockRecorder) NetworkIDFromName(name any) *gomock.Call
NetworkIDFromName indicates an expected call of NetworkIDFromName.
func (*MockNetworkMockRecorder) PortIDFromName ¶
func (mr *MockNetworkMockRecorder) PortIDFromName(name any) *gomock.Call
PortIDFromName indicates an expected call of PortIDFromName.
func (*MockNetworkMockRecorder) TagPort ¶
func (mr *MockNetworkMockRecorder) TagPort(id, tags any) *gomock.Call
TagPort indicates an expected call of TagPort.
func (*MockNetworkMockRecorder) UpdatePort ¶
func (mr *MockNetworkMockRecorder) UpdatePort(id, opts any) *gomock.Call
UpdatePort indicates an expected call of UpdatePort.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) CreateVolume ¶
func (m *MockStorage) CreateVolume(opts volumes.CreateOptsBuilder) (*volumes.Volume, error)
CreateVolume mocks base method.
func (*MockStorage) DeleteVolume ¶
func (m *MockStorage) DeleteVolume(id string) error
DeleteVolume mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) GetVolume ¶
func (m *MockStorage) GetVolume(id string) (*volumes.Volume, error)
GetVolume mocks base method.
func (*MockStorage) ListVolumes ¶
func (m *MockStorage) ListVolumes(opts volumes.ListOptsBuilder) ([]volumes.Volume, error)
ListVolumes mocks base method.
func (*MockStorage) VolumeIDFromName ¶
func (m *MockStorage) VolumeIDFromName(name string) (string, error)
VolumeIDFromName mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) CreateVolume ¶
func (mr *MockStorageMockRecorder) CreateVolume(opts any) *gomock.Call
CreateVolume indicates an expected call of CreateVolume.
func (*MockStorageMockRecorder) DeleteVolume ¶
func (mr *MockStorageMockRecorder) DeleteVolume(id any) *gomock.Call
DeleteVolume indicates an expected call of DeleteVolume.
func (*MockStorageMockRecorder) GetVolume ¶
func (mr *MockStorageMockRecorder) GetVolume(id any) *gomock.Call
GetVolume indicates an expected call of GetVolume.
func (*MockStorageMockRecorder) ListVolumes ¶
func (mr *MockStorageMockRecorder) ListVolumes(opts any) *gomock.Call
ListVolumes indicates an expected call of ListVolumes.
func (*MockStorageMockRecorder) VolumeIDFromName ¶
func (mr *MockStorageMockRecorder) VolumeIDFromName(name any) *gomock.Call
VolumeIDFromName indicates an expected call of VolumeIDFromName.