fctesting

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fctesting is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiresRoot

func RequiresRoot(t testing.TB)

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) 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) PutLogger

func (c *MockClient) PutLogger(params *ops.PutLoggerParams) (*ops.PutLoggerNoContent, error)

func (*MockClient) PutMachineConfiguration

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

CreateSyncAction mocks base method

func (*MockFirecracker) EXPECT

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

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

PutGuestVsockByID mocks base method

func (*MockFirecracker) PutLogger

PutLogger mocks base method

func (*MockFirecracker) PutMachineConfiguration

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

Jump to

Keyboard shortcuts

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