mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDI

type CDI struct {
	mock.Mock
}

CDI is an autogenerated mock type for the CDI type

func NewCDI

func NewCDI(t mockConstructorTestingTNewCDI) *CDI

NewCDI creates a new instance of CDI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CDI) CreateCDISpec

func (_m *CDI) CreateCDISpec(resourcePrefix string, resourceName string, poolName string, devices []types.PciNetDevice) error

CreateCDISpec provides a mock function with given fields: resourcePrefix, resourceName, poolName, devices

func (*CDI) CreateContainerAnnotations

func (_m *CDI) CreateContainerAnnotations(devices []types.PciNetDevice, resourcePrefix string, resourceKind string) (map[string]string, error)

CreateContainerAnnotations provides a mock function with given fields: devices, resourcePrefix, resourceKind

Jump to

Keyboard shortcuts

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