container_disk

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package container_disk is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWaitingForDisks   = errors.New("waiting for containerdisks")
	ErrDiskContainerGone = errors.New("disk container is gone")
)

Functions

This section is empty.

Types

type DiskChecksums added in v1.1.1

type DiskChecksums struct {
	KernelBootChecksum     KernelBootChecksum
	ContainerDiskChecksums map[string]uint32
}

type KernelBootChecksum added in v1.1.1

type KernelBootChecksum struct {
	Initrd *uint32
	Kernel *uint32
}

type MockMounter added in v0.30.6

type MockMounter struct {
	// contains filtered or unexported fields
}

MockMounter is a mock of Mounter interface.

func NewMockMounter added in v0.30.6

func NewMockMounter(ctrl *gomock.Controller) *MockMounter

NewMockMounter creates a new mock instance.

func (*MockMounter) ComputeChecksums added in v1.1.1

func (m *MockMounter) ComputeChecksums(vmi *v1.VirtualMachineInstance) (*DiskChecksums, error)

ComputeChecksums mocks base method.

func (*MockMounter) ContainerDisksReady added in v0.30.6

func (m *MockMounter) ContainerDisksReady(vmi *v1.VirtualMachineInstance, notInitializedSince time.Time) (bool, error)

ContainerDisksReady mocks base method.

func (*MockMounter) EXPECT added in v0.30.6

func (m *MockMounter) EXPECT() *MockMounterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMounter) MountAndVerify added in v0.46.0

func (m *MockMounter) MountAndVerify(vmi *v1.VirtualMachineInstance) error

MountAndVerify mocks base method.

func (*MockMounter) Unmount added in v0.30.6

func (m *MockMounter) Unmount(vmi *v1.VirtualMachineInstance) error

Unmount mocks base method.

type MockMounterMockRecorder added in v1.6.0

type MockMounterMockRecorder struct {
	// contains filtered or unexported fields
}

MockMounterMockRecorder is the mock recorder for MockMounter.

func (*MockMounterMockRecorder) ComputeChecksums added in v1.6.0

func (mr *MockMounterMockRecorder) ComputeChecksums(vmi any) *gomock.Call

ComputeChecksums indicates an expected call of ComputeChecksums.

func (*MockMounterMockRecorder) ContainerDisksReady added in v1.6.0

func (mr *MockMounterMockRecorder) ContainerDisksReady(vmi, notInitializedSince any) *gomock.Call

ContainerDisksReady indicates an expected call of ContainerDisksReady.

func (*MockMounterMockRecorder) MountAndVerify added in v1.6.0

func (mr *MockMounterMockRecorder) MountAndVerify(vmi any) *gomock.Call

MountAndVerify indicates an expected call of MountAndVerify.

func (*MockMounterMockRecorder) Unmount added in v1.6.0

func (mr *MockMounterMockRecorder) Unmount(vmi any) *gomock.Call

Unmount indicates an expected call of Unmount.

type Mounter

type Mounter interface {
	ContainerDisksReady(vmi *v1.VirtualMachineInstance, notInitializedSince time.Time) (bool, error)
	MountAndVerify(vmi *v1.VirtualMachineInstance) error
	Unmount(vmi *v1.VirtualMachineInstance) error
	// ComputeChecksums method, along with the code added in this commit, can be removed after the 1.7 release.
	// By then, we can be sure that during upgrades older versions of virt-handler no longer expect the checksum
	// in the VMI status.
	// Therefore, it will no longer be necessary to include this information in the VMI status.
	ComputeChecksums(vmi *v1.VirtualMachineInstance) (*DiskChecksums, error)
}

func NewMounter added in v0.29.0

func NewMounter(isoDetector isolation.PodIsolationDetector, mountStateDir string, clusterConfig *virtconfig.ClusterConfig) Mounter

Jump to

Keyboard shortcuts

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