export

package
v1.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExportPaused = "ExportPaused"
)

Variables

This section is empty.

Functions

func ContainerEnvToMap added in v1.3.0

func ContainerEnvToMap(env []corev1.EnvVar) map[string]string

ContainerEnvToMap converts the container environment variables to a map

func EnvironToMap added in v1.3.0

func EnvironToMap() map[string]string

EnvironToMap converts the environment variables to a map

Types

type CertParams added in v0.58.0

type CertParams struct {
	Duration    time.Duration
	RenewBefore time.Duration
}

type ServerPaths added in v1.3.0

type ServerPaths struct {
	VMURI     string
	SecretURI string
	Volumes   []VolumeInfo
}

ServerPaths contains static paths and per-volume paths

func CreateServerPaths added in v1.3.0

func CreateServerPaths(env map[string]string) *ServerPaths

CreateServerPaths creates a ServerPaths object from the environment variables

func (*ServerPaths) GetVolumeInfo added in v1.3.0

func (sp *ServerPaths) GetVolumeInfo(pvcName string) *VolumeInfo

GetVolumeInfo returns the VolumeInfo for a given PVC name

type VMExportController

type VMExportController struct {
	Client kubecli.KubevirtClient

	TemplateService services.TemplateService

	VMExportInformer            cache.SharedIndexInformer
	PVCInformer                 cache.SharedIndexInformer
	VMSnapshotInformer          cache.SharedIndexInformer
	VMSnapshotContentInformer   cache.SharedIndexInformer
	PodInformer                 cache.SharedIndexInformer
	DataVolumeInformer          cache.SharedIndexInformer
	ConfigMapInformer           cache.SharedIndexInformer
	ServiceInformer             cache.SharedIndexInformer
	VMInformer                  cache.SharedIndexInformer
	VMIInformer                 cache.SharedIndexInformer
	RouteConfigMapInformer      cache.SharedInformer
	RouteCache                  cache.Store
	IngressCache                cache.Store
	SecretInformer              cache.SharedIndexInformer
	CRDInformer                 cache.SharedIndexInformer
	KubeVirtInformer            cache.SharedIndexInformer
	VolumeSnapshotProvider      snapshot.VolumeSnapshotProvider
	InstancetypeInformer        cache.SharedIndexInformer
	ClusterInstancetypeInformer cache.SharedIndexInformer
	PreferenceInformer          cache.SharedIndexInformer
	ClusterPreferenceInformer   cache.SharedIndexInformer
	ControllerRevisionInformer  cache.SharedIndexInformer

	Recorder record.EventRecorder

	KubevirtNamespace string
	// contains filtered or unexported fields
}

VMExportController is resonsible for exporting VMs

func (*VMExportController) Init

func (ctrl *VMExportController) Init() error

Init initializes the export controller

func (*VMExportController) Run

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

Run the controller

type VolumeInfo added in v1.3.0

type VolumeInfo struct {
	Path       string
	ArchiveURI string
	DirURI     string
	RawURI     string
	RawGzURI   string
}

VolumeInfo contains paths for a volume

Jump to

Keyboard shortcuts

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