Documentation
¶
Overview ¶
Package fctesting is a generated GoMock package.
Index ¶
- func RequiresRoot(t testing.TB)
- type MockClient
- func (c *MockClient) CreateSyncAction(params *ops.CreateSyncActionParams) (*ops.CreateSyncActionNoContent, error)
- func (c *MockClient) DescribeInstance(params *ops.DescribeInstanceParams) (*ops.DescribeInstanceOK, error)
- func (c *MockClient) GetMachineConfig(params *ops.GetMachineConfigParams) (*ops.GetMachineConfigOK, error)
- func (c *MockClient) GetMmds(params *ops.GetMmdsParams) (*ops.GetMmdsOK, error)
- func (c *MockClient) PatchGuestDriveByID(params *ops.PatchGuestDriveByIDParams) (*ops.PatchGuestDriveByIDNoContent, error)
- func (c *MockClient) PatchGuestNetworkInterfaceByID(params *ops.PatchGuestNetworkInterfaceByIDParams) (*ops.PatchGuestNetworkInterfaceByIDNoContent, error)
- func (c *MockClient) PatchMmds(params *ops.PatchMmdsParams) (*ops.PatchMmdsNoContent, error)
- func (c *MockClient) PutGuestBootSource(params *ops.PutGuestBootSourceParams) (*ops.PutGuestBootSourceNoContent, error)
- func (c *MockClient) PutGuestDriveByID(params *ops.PutGuestDriveByIDParams) (*ops.PutGuestDriveByIDNoContent, error)
- func (c *MockClient) PutGuestNetworkInterfaceByID(params *ops.PutGuestNetworkInterfaceByIDParams) (*ops.PutGuestNetworkInterfaceByIDNoContent, error)
- func (c *MockClient) PutGuestVsockByID(params *ops.PutGuestVsockByIDParams) (*ops.PutGuestVsockByIDCreated, *ops.PutGuestVsockByIDNoContent, error)
- func (c *MockClient) PutLogger(params *ops.PutLoggerParams) (*ops.PutLoggerNoContent, error)
- func (c *MockClient) PutMachineConfiguration(params *ops.PutMachineConfigurationParams) (*ops.PutMachineConfigurationNoContent, error)
- func (c *MockClient) PutMmds(params *ops.PutMmdsParams) (*ops.PutMmdsNoContent, error)
- type MockFirecracker
- func (m *MockFirecracker) CreateSyncAction(ctx context.Context, info *models.InstanceActionInfo) (*operations.CreateSyncActionNoContent, error)
- func (m *MockFirecracker) EXPECT() *MockFirecrackerMockRecorder
- func (m *MockFirecracker) GetMachineConfig() (*operations.GetMachineConfigOK, error)
- func (m *MockFirecracker) PutGuestBootSource(ctx context.Context, source *models.BootSource) (*operations.PutGuestBootSourceNoContent, error)
- func (m *MockFirecracker) PutGuestDriveByID(ctx context.Context, driveID string, drive *models.Drive) (*operations.PutGuestDriveByIDNoContent, error)
- func (m *MockFirecracker) PutGuestNetworkInterfaceByID(ctx context.Context, ifaceID string, ifaceCfg *models.NetworkInterface) (*operations.PutGuestNetworkInterfaceByIDNoContent, error)
- func (m *MockFirecracker) PutGuestVsockByID(ctx context.Context, vsockID string, vsock *models.Vsock) (*operations.PutGuestVsockByIDCreated, *operations.PutGuestVsockByIDNoContent, ...)
- func (m *MockFirecracker) PutLogger(ctx context.Context, logger *models.Logger) (*operations.PutLoggerNoContent, error)
- func (m *MockFirecracker) PutMachineConfiguration(ctx context.Context, cfg *models.MachineConfiguration) (*operations.PutMachineConfigurationNoContent, error)
- func (m *MockFirecracker) PutMmds(ctx context.Context, metadata interface{}) (*operations.PutMmdsNoContent, error)
- type MockFirecrackerMockRecorder
- func (mr *MockFirecrackerMockRecorder) CreateSyncAction(ctx, info interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) GetMachineConfig() *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutGuestBootSource(ctx, source interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutGuestDriveByID(ctx, driveID, drive interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutGuestNetworkInterfaceByID(ctx, ifaceID, ifaceCfg interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutGuestVsockByID(ctx, vsockID, vsock interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutLogger(ctx, logger interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutMachineConfiguration(ctx, cfg interface{}) *gomock.Call
- func (mr *MockFirecrackerMockRecorder) PutMmds(ctx, metadata interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiresRoot ¶
RequiresRoot will ensure that tests that require root access are actually root. In addition, this will skip root tests if the DISABLE_ROOT_TESTS is set to true
Types ¶
type MockClient ¶
type MockClient struct {
GetMachineConfigFn func(params *ops.GetMachineConfigParams) (*ops.GetMachineConfigOK, error)
GetMmdsFn func(params *ops.GetMmdsParams) (*ops.GetMmdsOK, error)
PatchMmdsFn func(params *ops.PatchMmdsParams) (*ops.PatchMmdsNoContent, error)
PutMmdsFn func(params *ops.PutMmdsParams) (*ops.PutMmdsNoContent, error)
CreateSyncActionFn func(params *ops.CreateSyncActionParams) (*ops.CreateSyncActionNoContent, error)
DescribeInstanceFn func(params *ops.DescribeInstanceParams) (*ops.DescribeInstanceOK, error)
PatchGuestDriveByIDFn func(params *ops.PatchGuestDriveByIDParams) (*ops.PatchGuestDriveByIDNoContent, error)
PatchGuestNetworkInterfaceByIDFn func(params *ops.PatchGuestNetworkInterfaceByIDParams) (*ops.PatchGuestNetworkInterfaceByIDNoContent, error)
PutGuestBootSourceFn func(params *ops.PutGuestBootSourceParams) (*ops.PutGuestBootSourceNoContent, error)
PutGuestDriveByIDFn func(params *ops.PutGuestDriveByIDParams) (*ops.PutGuestDriveByIDNoContent, error)
PutGuestNetworkInterfaceByIDFn func(params *ops.PutGuestNetworkInterfaceByIDParams) (*ops.PutGuestNetworkInterfaceByIDNoContent, error)
PutGuestVsockByIDFn func(params *ops.PutGuestVsockByIDParams) (*ops.PutGuestVsockByIDCreated, *ops.PutGuestVsockByIDNoContent, error)
PutLoggerFn func(params *ops.PutLoggerParams) (*ops.PutLoggerNoContent, error)
PutMachineConfigurationFn func(params *ops.PutMachineConfigurationParams) (*ops.PutMachineConfigurationNoContent, error)
}
func (*MockClient) CreateSyncAction ¶
func (c *MockClient) CreateSyncAction(params *ops.CreateSyncActionParams) (*ops.CreateSyncActionNoContent, error)
func (*MockClient) DescribeInstance ¶
func (c *MockClient) DescribeInstance(params *ops.DescribeInstanceParams) (*ops.DescribeInstanceOK, error)
func (*MockClient) GetMachineConfig ¶
func (c *MockClient) GetMachineConfig(params *ops.GetMachineConfigParams) (*ops.GetMachineConfigOK, error)
func (*MockClient) GetMmds ¶
func (c *MockClient) GetMmds(params *ops.GetMmdsParams) (*ops.GetMmdsOK, error)
func (*MockClient) PatchGuestDriveByID ¶
func (c *MockClient) PatchGuestDriveByID(params *ops.PatchGuestDriveByIDParams) (*ops.PatchGuestDriveByIDNoContent, error)
func (*MockClient) PatchGuestNetworkInterfaceByID ¶
func (c *MockClient) PatchGuestNetworkInterfaceByID(params *ops.PatchGuestNetworkInterfaceByIDParams) (*ops.PatchGuestNetworkInterfaceByIDNoContent, error)
func (*MockClient) PatchMmds ¶
func (c *MockClient) PatchMmds(params *ops.PatchMmdsParams) (*ops.PatchMmdsNoContent, error)
func (*MockClient) PutGuestBootSource ¶
func (c *MockClient) PutGuestBootSource(params *ops.PutGuestBootSourceParams) (*ops.PutGuestBootSourceNoContent, error)
func (*MockClient) PutGuestDriveByID ¶
func (c *MockClient) PutGuestDriveByID(params *ops.PutGuestDriveByIDParams) (*ops.PutGuestDriveByIDNoContent, error)
func (*MockClient) PutGuestNetworkInterfaceByID ¶
func (c *MockClient) PutGuestNetworkInterfaceByID(params *ops.PutGuestNetworkInterfaceByIDParams) (*ops.PutGuestNetworkInterfaceByIDNoContent, error)
func (*MockClient) PutGuestVsockByID ¶
func (c *MockClient) PutGuestVsockByID(params *ops.PutGuestVsockByIDParams) (*ops.PutGuestVsockByIDCreated, *ops.PutGuestVsockByIDNoContent, error)
func (*MockClient) PutLogger ¶
func (c *MockClient) PutLogger(params *ops.PutLoggerParams) (*ops.PutLoggerNoContent, error)
func (*MockClient) PutMachineConfiguration ¶
func (c *MockClient) PutMachineConfiguration(params *ops.PutMachineConfigurationParams) (*ops.PutMachineConfigurationNoContent, error)
func (*MockClient) PutMmds ¶
func (c *MockClient) PutMmds(params *ops.PutMmdsParams) (*ops.PutMmdsNoContent, error)
type MockFirecracker ¶
type MockFirecracker struct {
// contains filtered or unexported fields
}
MockFirecracker is a mock of Firecracker interface
func NewMockFirecracker ¶
func NewMockFirecracker(ctrl *gomock.Controller) *MockFirecracker
NewMockFirecracker creates a new mock instance
func (*MockFirecracker) CreateSyncAction ¶
func (m *MockFirecracker) CreateSyncAction(ctx context.Context, info *models.InstanceActionInfo) (*operations.CreateSyncActionNoContent, error)
CreateSyncAction mocks base method
func (*MockFirecracker) EXPECT ¶
func (m *MockFirecracker) EXPECT() *MockFirecrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFirecracker) GetMachineConfig ¶
func (m *MockFirecracker) GetMachineConfig() (*operations.GetMachineConfigOK, error)
GetMachineConfig mocks base method
func (*MockFirecracker) PutGuestBootSource ¶
func (m *MockFirecracker) PutGuestBootSource(ctx context.Context, source *models.BootSource) (*operations.PutGuestBootSourceNoContent, error)
PutGuestBootSource mocks base method
func (*MockFirecracker) PutGuestDriveByID ¶
func (m *MockFirecracker) PutGuestDriveByID(ctx context.Context, driveID string, drive *models.Drive) (*operations.PutGuestDriveByIDNoContent, error)
PutGuestDriveByID mocks base method
func (*MockFirecracker) PutGuestNetworkInterfaceByID ¶
func (m *MockFirecracker) PutGuestNetworkInterfaceByID(ctx context.Context, ifaceID string, ifaceCfg *models.NetworkInterface) (*operations.PutGuestNetworkInterfaceByIDNoContent, error)
PutGuestNetworkInterfaceByID mocks base method
func (*MockFirecracker) PutGuestVsockByID ¶
func (m *MockFirecracker) PutGuestVsockByID(ctx context.Context, vsockID string, vsock *models.Vsock) (*operations.PutGuestVsockByIDCreated, *operations.PutGuestVsockByIDNoContent, error)
PutGuestVsockByID mocks base method
func (*MockFirecracker) PutLogger ¶
func (m *MockFirecracker) PutLogger(ctx context.Context, logger *models.Logger) (*operations.PutLoggerNoContent, error)
PutLogger mocks base method
func (*MockFirecracker) PutMachineConfiguration ¶
func (m *MockFirecracker) PutMachineConfiguration(ctx context.Context, cfg *models.MachineConfiguration) (*operations.PutMachineConfigurationNoContent, error)
PutMachineConfiguration mocks base method
func (*MockFirecracker) PutMmds ¶
func (m *MockFirecracker) PutMmds(ctx context.Context, metadata interface{}) (*operations.PutMmdsNoContent, error)
PutMmds mocks base method
type MockFirecrackerMockRecorder ¶
type MockFirecrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockFirecrackerMockRecorder is the mock recorder for MockFirecracker
func (*MockFirecrackerMockRecorder) CreateSyncAction ¶
func (mr *MockFirecrackerMockRecorder) CreateSyncAction(ctx, info interface{}) *gomock.Call
CreateSyncAction indicates an expected call of CreateSyncAction
func (*MockFirecrackerMockRecorder) GetMachineConfig ¶
func (mr *MockFirecrackerMockRecorder) GetMachineConfig() *gomock.Call
GetMachineConfig indicates an expected call of GetMachineConfig
func (*MockFirecrackerMockRecorder) PutGuestBootSource ¶
func (mr *MockFirecrackerMockRecorder) PutGuestBootSource(ctx, source interface{}) *gomock.Call
PutGuestBootSource indicates an expected call of PutGuestBootSource
func (*MockFirecrackerMockRecorder) PutGuestDriveByID ¶
func (mr *MockFirecrackerMockRecorder) PutGuestDriveByID(ctx, driveID, drive interface{}) *gomock.Call
PutGuestDriveByID indicates an expected call of PutGuestDriveByID
func (*MockFirecrackerMockRecorder) PutGuestNetworkInterfaceByID ¶
func (mr *MockFirecrackerMockRecorder) PutGuestNetworkInterfaceByID(ctx, ifaceID, ifaceCfg interface{}) *gomock.Call
PutGuestNetworkInterfaceByID indicates an expected call of PutGuestNetworkInterfaceByID
func (*MockFirecrackerMockRecorder) PutGuestVsockByID ¶
func (mr *MockFirecrackerMockRecorder) PutGuestVsockByID(ctx, vsockID, vsock interface{}) *gomock.Call
PutGuestVsockByID indicates an expected call of PutGuestVsockByID
func (*MockFirecrackerMockRecorder) PutLogger ¶
func (mr *MockFirecrackerMockRecorder) PutLogger(ctx, logger interface{}) *gomock.Call
PutLogger indicates an expected call of PutLogger
func (*MockFirecrackerMockRecorder) PutMachineConfiguration ¶
func (mr *MockFirecrackerMockRecorder) PutMachineConfiguration(ctx, cfg interface{}) *gomock.Call
PutMachineConfiguration indicates an expected call of PutMachineConfiguration
func (*MockFirecrackerMockRecorder) PutMmds ¶
func (mr *MockFirecrackerMockRecorder) PutMmds(ctx, metadata interface{}) *gomock.Call
PutMmds indicates an expected call of PutMmds