Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: base.go
Generated by this command:
mockgen -source=base.go -destination=../../mock/base.go -package=mock
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: openstack.go
Generated by this command:
mockgen -source=openstack.go -destination=../../mock/openstack.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockOpenStackClient
- type MockOpenStackClientMockRecorder
- type MockOpenStackComputeClient
- func (m *MockOpenStackComputeClient) AttachIP(serverID, fip string) error
- func (m *MockOpenStackComputeClient) CreateKeypair(keyNamePrefix string) (*keypairs.KeyPair, error)
- func (m *MockOpenStackComputeClient) CreateServer(keypairName, flavor, networkID string, attachConfigDrive *bool, ...) (*servers.Server, error)
- func (m *MockOpenStackComputeClient) EXPECT() *MockOpenStackComputeClientMockRecorder
- func (m *MockOpenStackComputeClient) GetFlavorIDByName(name string) (string, error)
- func (m *MockOpenStackComputeClient) GetServerStatus(sid string) (bool, error)
- func (m *MockOpenStackComputeClient) RemoveKeypair(keyName string) error
- func (m *MockOpenStackComputeClient) RemoveServer(serverID string) error
- type MockOpenStackComputeClientMockRecorder
- func (mr *MockOpenStackComputeClientMockRecorder) AttachIP(serverID, fip any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) CreateKeypair(keyNamePrefix any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) CreateServer(keypairName, flavor, networkID, attachConfigDrive, userData, imageID, ... any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) GetFlavorIDByName(name any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) GetServerStatus(sid any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) RemoveKeypair(keyName any) *gomock.Call
- func (mr *MockOpenStackComputeClientMockRecorder) RemoveServer(serverID any) *gomock.Call
- type MockOpenStackImageClient
- func (m *MockOpenStackImageClient) ChangeImageVisibility(imgID string, visibility images.ImageVisibility) error
- func (m *MockOpenStackImageClient) EXPECT() *MockOpenStackImageClientMockRecorder
- func (m *MockOpenStackImageClient) FetchAllImages(wildcard string) ([]images.Image, error)
- func (m *MockOpenStackImageClient) FetchImage(imgID string) (*images.Image, error)
- func (m *MockOpenStackImageClient) ModifyImageMetadata(imgID, key, value string, operation images.UpdateOp) (*images.Image, error)
- func (m *MockOpenStackImageClient) RemoveImage(imgID string) error
- func (m *MockOpenStackImageClient) TagImage(properties map[string]any, imgID, value, tagName string) error
- type MockOpenStackImageClientMockRecorder
- func (mr *MockOpenStackImageClientMockRecorder) ChangeImageVisibility(imgID, visibility any) *gomock.Call
- func (mr *MockOpenStackImageClientMockRecorder) FetchAllImages(wildcard any) *gomock.Call
- func (mr *MockOpenStackImageClientMockRecorder) FetchImage(imgID any) *gomock.Call
- func (mr *MockOpenStackImageClientMockRecorder) ModifyImageMetadata(imgID, key, value, operation any) *gomock.Call
- func (mr *MockOpenStackImageClientMockRecorder) RemoveImage(imgID any) *gomock.Call
- func (mr *MockOpenStackImageClientMockRecorder) TagImage(properties, imgID, value, tagName any) *gomock.Call
- type MockOpenStackNetworkClient
- type MockOpenStackNetworkClientMockRecorder
- type MockOpenStackScannerInterface
- func (m *MockOpenStackScannerInterface) CheckResults() error
- func (m *MockOpenStackScannerInterface) EXPECT() *MockOpenStackScannerInterfaceMockRecorder
- func (m *MockOpenStackScannerInterface) FetchScanResults() error
- func (m *MockOpenStackScannerInterface) RunScan(o *flags.ScanOptions) error
- func (m *MockOpenStackScannerInterface) TagImage() error
- func (m *MockOpenStackScannerInterface) UploadResultsToS3() error
- type MockOpenStackScannerInterfaceMockRecorder
- func (mr *MockOpenStackScannerInterfaceMockRecorder) CheckResults() *gomock.Call
- func (mr *MockOpenStackScannerInterfaceMockRecorder) FetchScanResults() *gomock.Call
- func (mr *MockOpenStackScannerInterfaceMockRecorder) RunScan(o any) *gomock.Call
- func (mr *MockOpenStackScannerInterfaceMockRecorder) TagImage() *gomock.Call
- func (mr *MockOpenStackScannerInterfaceMockRecorder) UploadResultsToS3() *gomock.Call
- type MockS3Interface
- type MockS3InterfaceMockRecorder
- type MockSSHInterface
- type MockSSHInterfaceMockRecorder
- type MockVaultInterface
- type MockVaultInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOpenStackClient ¶
type MockOpenStackClient struct {
// contains filtered or unexported fields
}
MockOpenStackClient is a mock of OpenStackClient interface.
func NewMockOpenStackClient ¶
func NewMockOpenStackClient(ctrl *gomock.Controller) *MockOpenStackClient
NewMockOpenStackClient creates a new mock instance.
func (*MockOpenStackClient) Client ¶
func (m *MockOpenStackClient) Client() (*gophercloud.ProviderClient, error)
Client mocks base method.
func (*MockOpenStackClient) EXPECT ¶
func (m *MockOpenStackClient) EXPECT() *MockOpenStackClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOpenStackClientMockRecorder ¶
type MockOpenStackClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenStackClientMockRecorder is the mock recorder for MockOpenStackClient.
func (*MockOpenStackClientMockRecorder) Client ¶
func (mr *MockOpenStackClientMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
type MockOpenStackComputeClient ¶
type MockOpenStackComputeClient struct {
// contains filtered or unexported fields
}
MockOpenStackComputeClient is a mock of OpenStackComputeClient interface.
func NewMockOpenStackComputeClient ¶
func NewMockOpenStackComputeClient(ctrl *gomock.Controller) *MockOpenStackComputeClient
NewMockOpenStackComputeClient creates a new mock instance.
func (*MockOpenStackComputeClient) AttachIP ¶
func (m *MockOpenStackComputeClient) AttachIP(serverID, fip string) error
AttachIP mocks base method.
func (*MockOpenStackComputeClient) CreateKeypair ¶
func (m *MockOpenStackComputeClient) CreateKeypair(keyNamePrefix string) (*keypairs.KeyPair, error)
CreateKeypair mocks base method.
func (*MockOpenStackComputeClient) CreateServer ¶
func (m *MockOpenStackComputeClient) CreateServer(keypairName, flavor, networkID string, attachConfigDrive *bool, userData []byte, imageID string, securityGroups []string) (*servers.Server, error)
CreateServer mocks base method.
func (*MockOpenStackComputeClient) EXPECT ¶
func (m *MockOpenStackComputeClient) EXPECT() *MockOpenStackComputeClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenStackComputeClient) GetFlavorIDByName ¶
func (m *MockOpenStackComputeClient) GetFlavorIDByName(name string) (string, error)
GetFlavorIDByName mocks base method.
func (*MockOpenStackComputeClient) GetServerStatus ¶
func (m *MockOpenStackComputeClient) GetServerStatus(sid string) (bool, error)
GetServerStatus mocks base method.
func (*MockOpenStackComputeClient) RemoveKeypair ¶
func (m *MockOpenStackComputeClient) RemoveKeypair(keyName string) error
RemoveKeypair mocks base method.
func (*MockOpenStackComputeClient) RemoveServer ¶
func (m *MockOpenStackComputeClient) RemoveServer(serverID string) error
RemoveServer mocks base method.
type MockOpenStackComputeClientMockRecorder ¶
type MockOpenStackComputeClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenStackComputeClientMockRecorder is the mock recorder for MockOpenStackComputeClient.
func (*MockOpenStackComputeClientMockRecorder) AttachIP ¶
func (mr *MockOpenStackComputeClientMockRecorder) AttachIP(serverID, fip any) *gomock.Call
AttachIP indicates an expected call of AttachIP.
func (*MockOpenStackComputeClientMockRecorder) CreateKeypair ¶
func (mr *MockOpenStackComputeClientMockRecorder) CreateKeypair(keyNamePrefix any) *gomock.Call
CreateKeypair indicates an expected call of CreateKeypair.
func (*MockOpenStackComputeClientMockRecorder) CreateServer ¶
func (mr *MockOpenStackComputeClientMockRecorder) CreateServer(keypairName, flavor, networkID, attachConfigDrive, userData, imageID, securityGroups any) *gomock.Call
CreateServer indicates an expected call of CreateServer.
func (*MockOpenStackComputeClientMockRecorder) GetFlavorIDByName ¶
func (mr *MockOpenStackComputeClientMockRecorder) GetFlavorIDByName(name any) *gomock.Call
GetFlavorIDByName indicates an expected call of GetFlavorIDByName.
func (*MockOpenStackComputeClientMockRecorder) GetServerStatus ¶
func (mr *MockOpenStackComputeClientMockRecorder) GetServerStatus(sid any) *gomock.Call
GetServerStatus indicates an expected call of GetServerStatus.
func (*MockOpenStackComputeClientMockRecorder) RemoveKeypair ¶
func (mr *MockOpenStackComputeClientMockRecorder) RemoveKeypair(keyName any) *gomock.Call
RemoveKeypair indicates an expected call of RemoveKeypair.
func (*MockOpenStackComputeClientMockRecorder) RemoveServer ¶
func (mr *MockOpenStackComputeClientMockRecorder) RemoveServer(serverID any) *gomock.Call
RemoveServer indicates an expected call of RemoveServer.
type MockOpenStackImageClient ¶
type MockOpenStackImageClient struct {
// contains filtered or unexported fields
}
MockOpenStackImageClient is a mock of OpenStackImageClient interface.
func NewMockOpenStackImageClient ¶
func NewMockOpenStackImageClient(ctrl *gomock.Controller) *MockOpenStackImageClient
NewMockOpenStackImageClient creates a new mock instance.
func (*MockOpenStackImageClient) ChangeImageVisibility ¶
func (m *MockOpenStackImageClient) ChangeImageVisibility(imgID string, visibility images.ImageVisibility) error
ChangeImageVisibility mocks base method.
func (*MockOpenStackImageClient) EXPECT ¶
func (m *MockOpenStackImageClient) EXPECT() *MockOpenStackImageClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenStackImageClient) FetchAllImages ¶
func (m *MockOpenStackImageClient) FetchAllImages(wildcard string) ([]images.Image, error)
FetchAllImages mocks base method.
func (*MockOpenStackImageClient) FetchImage ¶
func (m *MockOpenStackImageClient) FetchImage(imgID string) (*images.Image, error)
FetchImage mocks base method.
func (*MockOpenStackImageClient) ModifyImageMetadata ¶
func (m *MockOpenStackImageClient) ModifyImageMetadata(imgID, key, value string, operation images.UpdateOp) (*images.Image, error)
ModifyImageMetadata mocks base method.
func (*MockOpenStackImageClient) RemoveImage ¶
func (m *MockOpenStackImageClient) RemoveImage(imgID string) error
RemoveImage mocks base method.
type MockOpenStackImageClientMockRecorder ¶
type MockOpenStackImageClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenStackImageClientMockRecorder is the mock recorder for MockOpenStackImageClient.
func (*MockOpenStackImageClientMockRecorder) ChangeImageVisibility ¶
func (mr *MockOpenStackImageClientMockRecorder) ChangeImageVisibility(imgID, visibility any) *gomock.Call
ChangeImageVisibility indicates an expected call of ChangeImageVisibility.
func (*MockOpenStackImageClientMockRecorder) FetchAllImages ¶
func (mr *MockOpenStackImageClientMockRecorder) FetchAllImages(wildcard any) *gomock.Call
FetchAllImages indicates an expected call of FetchAllImages.
func (*MockOpenStackImageClientMockRecorder) FetchImage ¶
func (mr *MockOpenStackImageClientMockRecorder) FetchImage(imgID any) *gomock.Call
FetchImage indicates an expected call of FetchImage.
func (*MockOpenStackImageClientMockRecorder) ModifyImageMetadata ¶
func (mr *MockOpenStackImageClientMockRecorder) ModifyImageMetadata(imgID, key, value, operation any) *gomock.Call
ModifyImageMetadata indicates an expected call of ModifyImageMetadata.
func (*MockOpenStackImageClientMockRecorder) RemoveImage ¶
func (mr *MockOpenStackImageClientMockRecorder) RemoveImage(imgID any) *gomock.Call
RemoveImage indicates an expected call of RemoveImage.
type MockOpenStackNetworkClient ¶
type MockOpenStackNetworkClient struct {
// contains filtered or unexported fields
}
MockOpenStackNetworkClient is a mock of OpenStackNetworkClient interface.
func NewMockOpenStackNetworkClient ¶
func NewMockOpenStackNetworkClient(ctrl *gomock.Controller) *MockOpenStackNetworkClient
NewMockOpenStackNetworkClient creates a new mock instance.
func (*MockOpenStackNetworkClient) EXPECT ¶
func (m *MockOpenStackNetworkClient) EXPECT() *MockOpenStackNetworkClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenStackNetworkClient) GetFloatingIP ¶
func (m *MockOpenStackNetworkClient) GetFloatingIP(networkName string) (*floatingips.FloatingIP, error)
GetFloatingIP mocks base method.
func (*MockOpenStackNetworkClient) RemoveFIP ¶
func (m *MockOpenStackNetworkClient) RemoveFIP(fipID string) error
RemoveFIP mocks base method.
type MockOpenStackNetworkClientMockRecorder ¶
type MockOpenStackNetworkClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenStackNetworkClientMockRecorder is the mock recorder for MockOpenStackNetworkClient.
func (*MockOpenStackNetworkClientMockRecorder) GetFloatingIP ¶
func (mr *MockOpenStackNetworkClientMockRecorder) GetFloatingIP(networkName any) *gomock.Call
GetFloatingIP indicates an expected call of GetFloatingIP.
type MockOpenStackScannerInterface ¶
type MockOpenStackScannerInterface struct {
// contains filtered or unexported fields
}
MockOpenStackScannerInterface is a mock of OpenStackScannerInterface interface.
func NewMockOpenStackScannerInterface ¶
func NewMockOpenStackScannerInterface(ctrl *gomock.Controller) *MockOpenStackScannerInterface
NewMockOpenStackScannerInterface creates a new mock instance.
func (*MockOpenStackScannerInterface) CheckResults ¶
func (m *MockOpenStackScannerInterface) CheckResults() error
CheckResults mocks base method.
func (*MockOpenStackScannerInterface) EXPECT ¶
func (m *MockOpenStackScannerInterface) EXPECT() *MockOpenStackScannerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenStackScannerInterface) FetchScanResults ¶
func (m *MockOpenStackScannerInterface) FetchScanResults() error
FetchScanResults mocks base method.
func (*MockOpenStackScannerInterface) RunScan ¶
func (m *MockOpenStackScannerInterface) RunScan(o *flags.ScanOptions) error
RunScan mocks base method.
func (*MockOpenStackScannerInterface) TagImage ¶
func (m *MockOpenStackScannerInterface) TagImage() error
TagImage mocks base method.
func (*MockOpenStackScannerInterface) UploadResultsToS3 ¶
func (m *MockOpenStackScannerInterface) UploadResultsToS3() error
UploadResultsToS3 mocks base method.
type MockOpenStackScannerInterfaceMockRecorder ¶
type MockOpenStackScannerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenStackScannerInterfaceMockRecorder is the mock recorder for MockOpenStackScannerInterface.
func (*MockOpenStackScannerInterfaceMockRecorder) CheckResults ¶
func (mr *MockOpenStackScannerInterfaceMockRecorder) CheckResults() *gomock.Call
CheckResults indicates an expected call of CheckResults.
func (*MockOpenStackScannerInterfaceMockRecorder) FetchScanResults ¶
func (mr *MockOpenStackScannerInterfaceMockRecorder) FetchScanResults() *gomock.Call
FetchScanResults indicates an expected call of FetchScanResults.
func (*MockOpenStackScannerInterfaceMockRecorder) RunScan ¶
func (mr *MockOpenStackScannerInterfaceMockRecorder) RunScan(o any) *gomock.Call
RunScan indicates an expected call of RunScan.
func (*MockOpenStackScannerInterfaceMockRecorder) TagImage ¶
func (mr *MockOpenStackScannerInterfaceMockRecorder) TagImage() *gomock.Call
TagImage indicates an expected call of TagImage.
func (*MockOpenStackScannerInterfaceMockRecorder) UploadResultsToS3 ¶
func (mr *MockOpenStackScannerInterfaceMockRecorder) UploadResultsToS3() *gomock.Call
UploadResultsToS3 indicates an expected call of UploadResultsToS3.
type MockS3Interface ¶
type MockS3Interface struct {
// contains filtered or unexported fields
}
MockS3Interface is a mock of S3Interface interface.
func NewMockS3Interface ¶
func NewMockS3Interface(ctrl *gomock.Controller) *MockS3Interface
NewMockS3Interface creates a new mock instance.
func (*MockS3Interface) EXPECT ¶
func (m *MockS3Interface) EXPECT() *MockS3InterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockS3Interface) Fetch ¶
func (m *MockS3Interface) Fetch(arg0 string) ([]byte, error)
Fetch mocks base method.
type MockS3InterfaceMockRecorder ¶
type MockS3InterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockS3InterfaceMockRecorder is the mock recorder for MockS3Interface.
func (*MockS3InterfaceMockRecorder) Fetch ¶
func (mr *MockS3InterfaceMockRecorder) Fetch(arg0 any) *gomock.Call
Fetch indicates an expected call of Fetch.
type MockSSHInterface ¶
type MockSSHInterface struct {
// contains filtered or unexported fields
}
MockSSHInterface is a mock of SSHInterface interface.
func NewMockSSHInterface ¶
func NewMockSSHInterface(ctrl *gomock.Controller) *MockSSHInterface
NewMockSSHInterface creates a new mock instance.
func (*MockSSHInterface) CopyFromRemoteServer ¶
func (m *MockSSHInterface) CopyFromRemoteServer(src, dst string) (*os.File, error)
CopyFromRemoteServer mocks base method.
func (*MockSSHInterface) EXPECT ¶
func (m *MockSSHInterface) EXPECT() *MockSSHInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSSHInterface) SFTPClose ¶
func (m *MockSSHInterface) SFTPClose() error
SFTPClose mocks base method.
func (*MockSSHInterface) SSHClose ¶
func (m *MockSSHInterface) SSHClose() error
SSHClose mocks base method.
type MockSSHInterfaceMockRecorder ¶
type MockSSHInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSSHInterfaceMockRecorder is the mock recorder for MockSSHInterface.
func (*MockSSHInterfaceMockRecorder) CopyFromRemoteServer ¶
func (mr *MockSSHInterfaceMockRecorder) CopyFromRemoteServer(src, dst any) *gomock.Call
CopyFromRemoteServer indicates an expected call of CopyFromRemoteServer.
func (*MockSSHInterfaceMockRecorder) SFTPClose ¶
func (mr *MockSSHInterfaceMockRecorder) SFTPClose() *gomock.Call
SFTPClose indicates an expected call of SFTPClose.
func (*MockSSHInterfaceMockRecorder) SSHClose ¶
func (mr *MockSSHInterfaceMockRecorder) SSHClose() *gomock.Call
SSHClose indicates an expected call of SSHClose.
type MockVaultInterface ¶
type MockVaultInterface struct {
// contains filtered or unexported fields
}
MockVaultInterface is a mock of VaultInterface interface.
func NewMockVaultInterface ¶
func NewMockVaultInterface(ctrl *gomock.Controller) *MockVaultInterface
NewMockVaultInterface creates a new mock instance.
func (*MockVaultInterface) EXPECT ¶
func (m *MockVaultInterface) EXPECT() *MockVaultInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVaultInterfaceMockRecorder ¶
type MockVaultInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockVaultInterfaceMockRecorder is the mock recorder for MockVaultInterface.