snapshot

package
v0.56.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VmRestoreProgressing added in v0.56.0

func VmRestoreProgressing(vmRestore *snapshotv1.VirtualMachineRestore) bool

func VmSnapshotReady added in v0.56.0

func VmSnapshotReady(vmSnapshot *snapshotv1.VirtualMachineSnapshot) bool

Types

type VMRestoreController

type VMRestoreController struct {
	Client kubecli.KubevirtClient

	VMRestoreInformer         cache.SharedIndexInformer
	VMSnapshotInformer        cache.SharedIndexInformer
	VMSnapshotContentInformer cache.SharedIndexInformer
	VMInformer                cache.SharedIndexInformer
	VMIInformer               cache.SharedIndexInformer
	DataVolumeInformer        cache.SharedIndexInformer
	PVCInformer               cache.SharedIndexInformer
	StorageClassInformer      cache.SharedIndexInformer

	VolumeSnapshotProvider VolumeSnapshotProvider

	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

VMRestoreController is resonsible for restoring VMs

func (*VMRestoreController) Init

func (ctrl *VMRestoreController) Init()

Init initializes the restore controller

func (*VMRestoreController) Run

func (ctrl *VMRestoreController) Run(threadiness int, stopCh <-chan struct{}) error

Run the controller

type VMSnapshotController

type VMSnapshotController struct {
	Client kubecli.KubevirtClient

	VMSnapshotInformer        cache.SharedIndexInformer
	VMSnapshotContentInformer cache.SharedIndexInformer
	VMInformer                cache.SharedIndexInformer
	VMIInformer               cache.SharedIndexInformer
	StorageClassInformer      cache.SharedIndexInformer
	PVCInformer               cache.SharedIndexInformer
	CRDInformer               cache.SharedIndexInformer
	PodInformer               cache.SharedIndexInformer
	DVInformer                cache.SharedIndexInformer
	CRInformer                cache.SharedIndexInformer

	Recorder record.EventRecorder

	ResyncPeriod time.Duration
	// contains filtered or unexported fields
}

VMSnapshotController is resonsible for snapshotting VMs

func (*VMSnapshotController) GetVolumeSnapshot added in v0.49.1

func (ctrl *VMSnapshotController) GetVolumeSnapshot(namespace, name string) (*vsv1.VolumeSnapshot, error)

func (*VMSnapshotController) Init

func (ctrl *VMSnapshotController) Init()

Init initializes the snapshot controller

func (*VMSnapshotController) Run

func (ctrl *VMSnapshotController) Run(threadiness int, stopCh <-chan struct{}) error

Run the controller

type VolumeSnapshotProvider added in v0.49.1

type VolumeSnapshotProvider interface {
	GetVolumeSnapshot(string, string) (*vsv1.VolumeSnapshot, error)
}

Jump to

Keyboard shortcuts

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