v1beta1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 52

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

Index

Constants

View Source
const (
	// BackupConditionReady is the "ready" condition type
	BackupConditionReady condition.Cond = "Ready"

	// ConditionProgressing is the "progressing" condition type
	BackupConditionProgressing condition.Cond = "InProgress"
)
View Source
const (
	VirtualMachineImageSourceTypeDownload     = "download"
	VirtualMachineImageSourceTypeUpload       = "upload"
	VirtualMachineImageSourceTypeExportVolume = "export-from-volume"
)

Variables

View Source
var (
	AddonOperationInProgress condition.Cond = "InProgress"
	AddonOperationCompleted  condition.Cond = "Completed"
	AddonOperationFailed     condition.Cond = "OperationFailed"
	DefaultJobBackOffLimit                  = int32(5)
)
View Source
var (
	ImageInitialized        condition.Cond = "Initialized"
	ImageImported           condition.Cond = "Imported"
	ImageRetryLimitExceeded condition.Cond = "RetryLimitExceeded"
)
View Source
var (
	VersionAssigned      condition.Cond = "assigned" // version number was assigned to templateVersion object's status.Version
	TemplateVersionReady condition.Cond = "ready"    // all images in the template are ready
)
View Source
var (
	UpgradeCompleted condition.Cond = "Completed"
	// LogReady is true when logging infrastructure for is running
	LogReady condition.Cond = "LogReady"
	// ImageReady is true when upgrade image is downloaded
	ImageReady condition.Cond = "ImageReady"
	// RepoProvisioned is true when upgrade repo is provisioned
	RepoProvisioned condition.Cond = "RepoReady"
	// NodesPrepared is true when all nodes are prepared
	NodesPrepared condition.Cond = "NodesPrepared"
	// NodesUpgraded is true when all nodes are upgraded
	NodesUpgraded condition.Cond = "NodesUpgraded"
	// SystemServicesUpgraded is true when Harvester chart is upgraded
	SystemServicesUpgraded condition.Cond = "SystemServicesUpgraded"
)
View Source
var (
	LoggingOperatorDeployed condition.Cond = "LoggingOperatorReady"
	InfraReady              condition.Cond = "InfraReady"
	UpgradeLogReady         condition.Cond = "Started"
	UpgradeEnded            condition.Cond = "Stopped"
	DownloadReady           condition.Cond = "DownloadReady"
)
View Source
var (
	AddonResourceName                         = "addons"
	KeyPairResourceName                       = "keypairs"
	PreferenceResourceName                    = "preferences"
	SettingResourceName                       = "settings"
	SupportBundleResourceName                 = "supportbundles"
	UpgradeResourceName                       = "upgrades"
	UpgradeLogResourceName                    = "upgradelogs"
	VersionResourceName                       = "versions"
	VirtualMachineBackupResourceName          = "virtualmachinebackups"
	VirtualMachineImageResourceName           = "virtualmachineimages"
	VirtualMachineRestoreResourceName         = "virtualmachinerestores"
	VirtualMachineTemplateResourceName        = "virtualmachinetemplates"
	VirtualMachineTemplateVersionResourceName = "virtualmachinetemplateversions"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	KeyPairValidated condition.Cond = "validated"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: harvesterhci.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

View Source
var (
	SettingConfigured condition.Cond = "configured"
)
View Source
var (
	SupportBundleInitialized condition.Cond = "Initialized"
)

Functions

func GetOpenAPIDefinitions added in v0.3.0

func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Addon added in v1.1.0

type Addon struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AddonSpec   `json:"spec"`
	Status            AddonStatus `json:"status,omitempty"`
}

func NewAddon added in v1.1.0

func NewAddon(namespace, name string, obj Addon) *Addon

func (*Addon) DeepCopy added in v1.1.0

func (in *Addon) DeepCopy() *Addon

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addon.

func (*Addon) DeepCopyInto added in v1.1.0

func (in *Addon) DeepCopyInto(out *Addon)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Addon) DeepCopyObject added in v1.1.0

func (in *Addon) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AddonList added in v1.1.0

type AddonList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Addon `json:"items"`
}

AddonList is a list of Addon resources

func (*AddonList) DeepCopy added in v1.1.0

func (in *AddonList) DeepCopy() *AddonList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonList.

func (*AddonList) DeepCopyInto added in v1.1.0

func (in *AddonList) DeepCopyInto(out *AddonList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AddonList) DeepCopyObject added in v1.1.0

func (in *AddonList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AddonOperation added in v1.2.0

type AddonOperation string

type AddonSpec added in v1.1.0

type AddonSpec struct {
	Repo          string `json:"repo"`
	Chart         string `json:"chart"`
	Version       string `json:"version"`
	Enabled       bool   `json:"enabled"`
	ValuesContent string `json:"valuesContent"`
}

func (*AddonSpec) DeepCopy added in v1.1.0

func (in *AddonSpec) DeepCopy() *AddonSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonSpec.

func (*AddonSpec) DeepCopyInto added in v1.1.0

func (in *AddonSpec) DeepCopyInto(out *AddonSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AddonState added in v1.1.0

type AddonState string
const (
	AddonEnabling  AddonState = "AddonEnabling"
	AddonDeployed  AddonState = "AddonDeploySuccessful"
	AddonDisabled  AddonState = "AddonDisabled"
	AddonDisabling AddonState = "AddonDisabling"

	// after successfully updating, addon will be AddonInitState when !Spec.Enabled; AddonDeployed when Spec.Enabled
	AddonUpdating AddonState = "AddonUpdating"

	AddonInitState AddonState = "" // init status, when an addon is not enabled, or disabled successfully
)

type AddonStatus added in v1.1.0

type AddonStatus struct {
	Status AddonState `json:"status,omitempty"`
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*AddonStatus) DeepCopy added in v1.1.0

func (in *AddonStatus) DeepCopy() *AddonStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonStatus.

func (*AddonStatus) DeepCopyInto added in v1.1.0

func (in *AddonStatus) DeepCopyInto(out *AddonStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Archive added in v1.1.2

type Archive struct {
	// +optional
	Size int64 `json:"size,omitempty"`
	// +optional
	GeneratedTime string `json:"generatedTime,omitempty"`
	// +optional
	Ready bool `json:"ready"`
	// +optional
	Reason string `json:"reason,omitempty"`
}

func (*Archive) DeepCopy added in v1.1.2

func (in *Archive) DeepCopy() *Archive

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Archive.

func (*Archive) DeepCopyInto added in v1.1.2

func (in *Archive) DeepCopyInto(out *Archive)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackupTarget added in v1.0.0

type BackupTarget struct {
	Endpoint     string `json:"endpoint,omitempty"`
	BucketName   string `json:"bucketName,omitempty"`
	BucketRegion string `json:"bucketRegion,omitempty"`
}

BackupTarget is where VM Backup stores

func (*BackupTarget) DeepCopy added in v1.0.0

func (in *BackupTarget) DeepCopy() *BackupTarget

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupTarget.

func (*BackupTarget) DeepCopyInto added in v1.0.0

func (in *BackupTarget) DeepCopyInto(out *BackupTarget)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BackupType added in v1.1.0

type BackupType string
const (
	Backup   BackupType = "backup"
	Snapshot BackupType = "snapshot"
)

type Condition

type Condition struct {
	// Type of the condition.
	Type condition.Cond `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition
	Message string `json:"message,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeletionPolicy

type DeletionPolicy string

DeletionPolicy defines that to do with resources when VirtualMachineRestore is deleted

const (
	// VirtualMachineRestoreDelete is the default and causes the
	// VirtualMachineRestore deleted resources like PVC to be deleted
	VirtualMachineRestoreDelete DeletionPolicy = "delete"

	// VirtualMachineRestoreRetain causes the VirtualMachineRestore deleted resources like PVC to be retained
	VirtualMachineRestoreRetain DeletionPolicy = "retain"
)

type Error

type Error struct {
	// +optional
	Time *metav1.Time `json:"time,omitempty"`

	// +optional
	Message *string `json:"message,omitempty"`
}

Error is the last error encountered during the snapshot/restore

func (*Error) DeepCopy

func (in *Error) DeepCopy() *Error

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Error.

func (*Error) DeepCopyInto

func (in *Error) DeepCopyInto(out *Error)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ErrorResponse

type ErrorResponse struct {
	// Errors happened during request.
	Errors []string `json:"errors,omitempty"`
}

func (*ErrorResponse) DeepCopy

func (in *ErrorResponse) DeepCopy() *ErrorResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrorResponse.

func (*ErrorResponse) DeepCopyInto

func (in *ErrorResponse) DeepCopyInto(out *ErrorResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeyGenInput

type KeyGenInput struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*KeyGenInput) DeepCopy

func (in *KeyGenInput) DeepCopy() *KeyGenInput

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyGenInput.

func (*KeyGenInput) DeepCopyInto

func (in *KeyGenInput) DeepCopyInto(out *KeyGenInput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeyPair

type KeyPair struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KeyPairSpec   `json:"spec"`
	Status KeyPairStatus `json:"status,omitempty"`
}

func NewKeyPair

func NewKeyPair(namespace, name string, obj KeyPair) *KeyPair

func (*KeyPair) DeepCopy

func (in *KeyPair) DeepCopy() *KeyPair

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyPair.

func (*KeyPair) DeepCopyInto

func (in *KeyPair) DeepCopyInto(out *KeyPair)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KeyPair) DeepCopyObject

func (in *KeyPair) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KeyPairList

type KeyPairList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []KeyPair `json:"items"`
}

KeyPairList is a list of KeyPair resources

func (*KeyPairList) DeepCopy

func (in *KeyPairList) DeepCopy() *KeyPairList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyPairList.

func (*KeyPairList) DeepCopyInto

func (in *KeyPairList) DeepCopyInto(out *KeyPairList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KeyPairList) DeepCopyObject

func (in *KeyPairList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KeyPairSpec

type KeyPairSpec struct {
	// +kubebuilder:validation:Required
	PublicKey string `json:"publicKey"`
}

func (*KeyPairSpec) DeepCopy

func (in *KeyPairSpec) DeepCopy() *KeyPairSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyPairSpec.

func (*KeyPairSpec) DeepCopyInto

func (in *KeyPairSpec) DeepCopyInto(out *KeyPairSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KeyPairStatus

type KeyPairStatus struct {
	// +optional
	FingerPrint string `json:"fingerPrint,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*KeyPairStatus) DeepCopy

func (in *KeyPairStatus) DeepCopy() *KeyPairStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyPairStatus.

func (*KeyPairStatus) DeepCopyInto

func (in *KeyPairStatus) DeepCopyInto(out *KeyPairStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeUpgradeStatus

type NodeUpgradeStatus struct {
	State   string `json:"state,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}

func (*NodeUpgradeStatus) DeepCopy

func (in *NodeUpgradeStatus) DeepCopy() *NodeUpgradeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUpgradeStatus.

func (*NodeUpgradeStatus) DeepCopyInto

func (in *NodeUpgradeStatus) DeepCopyInto(out *NodeUpgradeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PersistentVolumeClaimSourceSpec added in v0.3.0

type PersistentVolumeClaimSourceSpec struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	// +optional
	ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Spec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"`
}

func (*PersistentVolumeClaimSourceSpec) DeepCopy added in v0.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimSourceSpec.

func (*PersistentVolumeClaimSourceSpec) DeepCopyInto added in v0.3.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Preference

type Preference struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +kubebuilder:validation:Required
	Value string `json:"value"`
}

func NewPreference

func NewPreference(namespace, name string, obj Preference) *Preference

func (*Preference) DeepCopy

func (in *Preference) DeepCopy() *Preference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preference.

func (*Preference) DeepCopyInto

func (in *Preference) DeepCopyInto(out *Preference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Preference) DeepCopyObject

func (in *Preference) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PreferenceList

type PreferenceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Preference `json:"items"`
}

PreferenceList is a list of Preference resources

func (*PreferenceList) DeepCopy

func (in *PreferenceList) DeepCopy() *PreferenceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreferenceList.

func (*PreferenceList) DeepCopyInto

func (in *PreferenceList) DeepCopyInto(out *PreferenceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PreferenceList) DeepCopyObject

func (in *PreferenceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SecretBackup added in v1.0.0

type SecretBackup struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +optional
	Data map[string][]byte `json:"data,omitempty"`
}

SecretBackup contains the secret data need to restore a secret referenced by the VM

func (*SecretBackup) DeepCopy added in v1.0.0

func (in *SecretBackup) DeepCopy() *SecretBackup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackup.

func (*SecretBackup) DeepCopyInto added in v1.0.0

func (in *SecretBackup) DeepCopyInto(out *SecretBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Setting

type Setting struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Value string `json:"value,omitempty"`

	// +optional
	Default string `json:"default,omitempty"`

	// +optional
	Customized bool `json:"customized,omitempty"`

	// +optional
	Source string `json:"source,omitempty"`

	Status SettingStatus `json:"status,omitempty"`
}

func NewSetting

func NewSetting(namespace, name string, obj Setting) *Setting

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Setting) DeepCopyObject

func (in *Setting) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SettingList

type SettingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Setting `json:"items"`
}

SettingList is a list of Setting resources

func (*SettingList) DeepCopy

func (in *SettingList) DeepCopy() *SettingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingList.

func (*SettingList) DeepCopyInto

func (in *SettingList) DeepCopyInto(out *SettingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SettingList) DeepCopyObject

func (in *SettingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SettingStatus

type SettingStatus struct {
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*SettingStatus) DeepCopy

func (in *SettingStatus) DeepCopy() *SettingStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingStatus.

func (*SettingStatus) DeepCopyInto

func (in *SettingStatus) DeepCopyInto(out *SettingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SupportBundle

type SupportBundle struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SupportBundleSpec   `json:"spec"`
	Status SupportBundleStatus `json:"status,omitempty"`
}

func NewSupportBundle

func NewSupportBundle(namespace, name string, obj SupportBundle) *SupportBundle

func (*SupportBundle) DeepCopy

func (in *SupportBundle) DeepCopy() *SupportBundle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundle.

func (*SupportBundle) DeepCopyInto

func (in *SupportBundle) DeepCopyInto(out *SupportBundle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SupportBundle) DeepCopyObject

func (in *SupportBundle) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SupportBundleList

type SupportBundleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []SupportBundle `json:"items"`
}

SupportBundleList is a list of SupportBundle resources

func (*SupportBundleList) DeepCopy

func (in *SupportBundleList) DeepCopy() *SupportBundleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleList.

func (*SupportBundleList) DeepCopyInto

func (in *SupportBundleList) DeepCopyInto(out *SupportBundleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SupportBundleList) DeepCopyObject

func (in *SupportBundleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SupportBundleSpec

type SupportBundleSpec struct {
	// +optional
	IssueURL string `json:"issueURL"`

	// +kubebuilder:validation:Required
	Description string `json:"description"`
}

func (*SupportBundleSpec) DeepCopy

func (in *SupportBundleSpec) DeepCopy() *SupportBundleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleSpec.

func (*SupportBundleSpec) DeepCopyInto

func (in *SupportBundleSpec) DeepCopyInto(out *SupportBundleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SupportBundleStatus

type SupportBundleStatus struct {
	// +optional
	State string `json:"state,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`

	// +optional
	Filename string `json:"filename,omitempty"`

	// +optional
	Filesize int64 `json:"filesize,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*SupportBundleStatus) DeepCopy

func (in *SupportBundleStatus) DeepCopy() *SupportBundleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportBundleStatus.

func (*SupportBundleStatus) DeepCopyInto

func (in *SupportBundleStatus) DeepCopyInto(out *SupportBundleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Upgrade

type Upgrade struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   UpgradeSpec   `json:"spec"`
	Status UpgradeStatus `json:"status,omitempty"`
}

func NewUpgrade

func NewUpgrade(namespace, name string, obj Upgrade) *Upgrade

func (*Upgrade) DeepCopy

func (in *Upgrade) DeepCopy() *Upgrade

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upgrade.

func (*Upgrade) DeepCopyInto

func (in *Upgrade) DeepCopyInto(out *Upgrade)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Upgrade) DeepCopyObject

func (in *Upgrade) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradeList

type UpgradeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Upgrade `json:"items"`
}

UpgradeList is a list of Upgrade resources

func (*UpgradeList) DeepCopy

func (in *UpgradeList) DeepCopy() *UpgradeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeList.

func (*UpgradeList) DeepCopyInto

func (in *UpgradeList) DeepCopyInto(out *UpgradeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UpgradeList) DeepCopyObject

func (in *UpgradeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradeLog added in v1.1.2

type UpgradeLog struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   UpgradeLogSpec   `json:"spec"`
	Status UpgradeLogStatus `json:"status,omitempty"`
}

func NewUpgradeLog added in v1.1.2

func NewUpgradeLog(namespace, name string, obj UpgradeLog) *UpgradeLog

func (*UpgradeLog) DeepCopy added in v1.1.2

func (in *UpgradeLog) DeepCopy() *UpgradeLog

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeLog.

func (*UpgradeLog) DeepCopyInto added in v1.1.2

func (in *UpgradeLog) DeepCopyInto(out *UpgradeLog)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UpgradeLog) DeepCopyObject added in v1.1.2

func (in *UpgradeLog) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradeLogList added in v1.1.2

type UpgradeLogList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []UpgradeLog `json:"items"`
}

UpgradeLogList is a list of UpgradeLog resources

func (*UpgradeLogList) DeepCopy added in v1.1.2

func (in *UpgradeLogList) DeepCopy() *UpgradeLogList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeLogList.

func (*UpgradeLogList) DeepCopyInto added in v1.1.2

func (in *UpgradeLogList) DeepCopyInto(out *UpgradeLogList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UpgradeLogList) DeepCopyObject added in v1.1.2

func (in *UpgradeLogList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UpgradeLogSpec added in v1.1.2

type UpgradeLogSpec struct {
	// +kubebuilder:validation:Required
	UpgradeName string `json:"upgradeName,omitempty"`
}

func (*UpgradeLogSpec) DeepCopy added in v1.1.2

func (in *UpgradeLogSpec) DeepCopy() *UpgradeLogSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeLogSpec.

func (*UpgradeLogSpec) DeepCopyInto added in v1.1.2

func (in *UpgradeLogSpec) DeepCopyInto(out *UpgradeLogSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpgradeLogStatus added in v1.1.2

type UpgradeLogStatus struct {
	// +optional
	Archives map[string]Archive `json:"archives,omitempty"`
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*UpgradeLogStatus) DeepCopy added in v1.1.2

func (in *UpgradeLogStatus) DeepCopy() *UpgradeLogStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeLogStatus.

func (*UpgradeLogStatus) DeepCopyInto added in v1.1.2

func (in *UpgradeLogStatus) DeepCopyInto(out *UpgradeLogStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpgradeSpec

type UpgradeSpec struct {
	// +optional
	Version string `json:"version"`

	// +optional
	Image string `json:"image"`

	// +optional
	// +kubebuilder:default:=true
	LogEnabled bool `json:"logEnabled" default:"true"`
}

func (*UpgradeSpec) DeepCopy

func (in *UpgradeSpec) DeepCopy() *UpgradeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeSpec.

func (*UpgradeSpec) DeepCopyInto

func (in *UpgradeSpec) DeepCopyInto(out *UpgradeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpgradeStatus

type UpgradeStatus struct {
	// +optional
	PreviousVersion string `json:"previousVersion,omitempty"`
	// +optional
	ImageID string `json:"imageID,omitempty"`
	// +optional
	RepoInfo string `json:"repoInfo,omitempty"`
	// +optional
	SingleNode string `json:"singleNode,omitempty"`
	// +optional
	NodeStatuses map[string]NodeUpgradeStatus `json:"nodeStatuses,omitempty"`
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
	// +optional
	UpgradeLog string `json:"upgradeLog,omitempty"`
}

func (*UpgradeStatus) DeepCopy

func (in *UpgradeStatus) DeepCopy() *UpgradeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeStatus.

func (*UpgradeStatus) DeepCopyInto

func (in *UpgradeStatus) DeepCopyInto(out *UpgradeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Version added in v1.0.0

type Version struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec VersionSpec `json:"spec"`
}

func NewVersion added in v1.0.0

func NewVersion(namespace, name string, obj Version) *Version

func (*Version) DeepCopy added in v1.0.0

func (in *Version) DeepCopy() *Version

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.

func (*Version) DeepCopyInto added in v1.0.0

func (in *Version) DeepCopyInto(out *Version)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Version) DeepCopyObject added in v1.0.0

func (in *Version) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VersionList added in v1.0.0

type VersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Version `json:"items"`
}

VersionList is a list of Version resources

func (*VersionList) DeepCopy added in v1.0.0

func (in *VersionList) DeepCopy() *VersionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionList.

func (*VersionList) DeepCopyInto added in v1.0.0

func (in *VersionList) DeepCopyInto(out *VersionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VersionList) DeepCopyObject added in v1.0.0

func (in *VersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VersionSpec added in v1.0.0

type VersionSpec struct {
	// +kubebuilder:validation:Required
	ISOURL string `json:"isoURL"`

	// +optional
	ISOChecksum string `json:"isoChecksum"`

	// +optional
	ReleaseDate string `json:"releaseDate"`

	// +optional
	MinUpgradableVersion string `json:"minUpgradableVersion,omitempty"`

	// +optional
	Tags []string `json:"tags"`
}

func (*VersionSpec) DeepCopy added in v1.0.0

func (in *VersionSpec) DeepCopy() *VersionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionSpec.

func (*VersionSpec) DeepCopyInto added in v1.0.0

func (in *VersionSpec) DeepCopyInto(out *VersionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineBackup

type VirtualMachineBackup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec VirtualMachineBackupSpec `json:"spec"`

	// +optional
	Status *VirtualMachineBackupStatus `json:"status,omitempty" default:""`
}

func NewVirtualMachineBackup

func NewVirtualMachineBackup(namespace, name string, obj VirtualMachineBackup) *VirtualMachineBackup

func (*VirtualMachineBackup) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineBackup.

func (*VirtualMachineBackup) DeepCopyInto

func (in *VirtualMachineBackup) DeepCopyInto(out *VirtualMachineBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineBackup) DeepCopyObject

func (in *VirtualMachineBackup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineBackupList

type VirtualMachineBackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VirtualMachineBackup `json:"items"`
}

VirtualMachineBackupList is a list of VirtualMachineBackup resources

func (*VirtualMachineBackupList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineBackupList.

func (*VirtualMachineBackupList) DeepCopyInto

func (in *VirtualMachineBackupList) DeepCopyInto(out *VirtualMachineBackupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineBackupList) DeepCopyObject

func (in *VirtualMachineBackupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineBackupSpec

type VirtualMachineBackupSpec struct {
	Source corev1.TypedLocalObjectReference `json:"source"`

	// +kubebuilder:default:="backup"
	// +kubebuilder:validation:Enum=backup;snapshot
	// +kubebuilder:validation:Optional
	Type BackupType `json:"type,omitempty" default:"backup"`
}

func (*VirtualMachineBackupSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineBackupSpec.

func (*VirtualMachineBackupSpec) DeepCopyInto

func (in *VirtualMachineBackupSpec) DeepCopyInto(out *VirtualMachineBackupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineBackupStatus

type VirtualMachineBackupStatus struct {
	// +optional
	SourceUID *types.UID `json:"sourceUID,omitempty"`

	// +optional
	CreationTime *metav1.Time `json:"creationTime,omitempty"`

	// +optional
	BackupTarget *BackupTarget `json:"backupTarget,omitempty"`

	// +optional
	CSIDriverVolumeSnapshotClassNames map[string]string `json:"csiDriverVolumeSnapshotClassNames,omitempty"`

	// +kubebuilder:validation:Required
	// SourceSpec contains the vm spec source of the backup target
	SourceSpec *VirtualMachineSourceSpec `json:"source,omitempty"`

	// +optional
	VolumeBackups []VolumeBackup `json:"volumeBackups,omitempty"`

	// +optional
	SecretBackups []SecretBackup `json:"secretBackups,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`

	// +optional
	ReadyToUse *bool `json:"readyToUse,omitempty"`

	// +optional
	Error *Error `json:"error,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

VirtualMachineBackupStatus is the status for a VirtualMachineBackup resource

func (*VirtualMachineBackupStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineBackupStatus.

func (*VirtualMachineBackupStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineImage

type VirtualMachineImage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineImageSpec   `json:"spec"`
	Status VirtualMachineImageStatus `json:"status,omitempty"`
}

func NewVirtualMachineImage

func NewVirtualMachineImage(namespace, name string, obj VirtualMachineImage) *VirtualMachineImage

func (*VirtualMachineImage) DeepCopy

func (in *VirtualMachineImage) DeepCopy() *VirtualMachineImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImage.

func (*VirtualMachineImage) DeepCopyInto

func (in *VirtualMachineImage) DeepCopyInto(out *VirtualMachineImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineImage) DeepCopyObject

func (in *VirtualMachineImage) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineImageList

type VirtualMachineImageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VirtualMachineImage `json:"items"`
}

VirtualMachineImageList is a list of VirtualMachineImage resources

func (*VirtualMachineImageList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImageList.

func (*VirtualMachineImageList) DeepCopyInto

func (in *VirtualMachineImageList) DeepCopyInto(out *VirtualMachineImageList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineImageList) DeepCopyObject

func (in *VirtualMachineImageList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineImageSpec

type VirtualMachineImageSpec struct {
	// +optional
	Description string `json:"description,omitempty"`

	// +kubebuilder:validation:Required
	DisplayName string `json:"displayName"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=download;upload;export-from-volume
	SourceType string `json:"sourceType"`

	// +optional
	PVCName string `json:"pvcName"`

	// +optional
	PVCNamespace string `json:"pvcNamespace"`

	// +optional
	URL string `json:"url"`

	// +optional
	Checksum string `json:"checksum"`

	// +optional
	StorageClassParameters map[string]string `json:"storageClassParameters"`

	// +optional
	// +kubebuilder:default:=3
	// +kubebuilder:validation:Minimum:=0
	// +kubebuilder:validation:Maximum:=10
	// +kubebuilder:validation:Optional
	Retry int `json:"retry" default:"3"`
}

func (*VirtualMachineImageSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImageSpec.

func (*VirtualMachineImageSpec) DeepCopyInto

func (in *VirtualMachineImageSpec) DeepCopyInto(out *VirtualMachineImageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineImageStatus

type VirtualMachineImageStatus struct {
	// +optional
	AppliedURL string `json:"appliedUrl,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`

	// +optional
	Size int64 `json:"size,omitempty"`

	// +optional
	StorageClassName string `json:"storageClassName,omitempty"`

	// +optional
	// +kubebuilder:default:=0
	// +kubebuilder:validation:Minimum:=0
	Failed int `json:"failed"`

	// +optional
	// +kubebuilder:validation:Optional
	LastFailedTime string `json:"lastFailedTime,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*VirtualMachineImageStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImageStatus.

func (*VirtualMachineImageStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineRestore

type VirtualMachineRestore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec VirtualMachineRestoreSpec `json:"spec"`

	// +optional
	Status *VirtualMachineRestoreStatus `json:"status,omitempty"`
}

func NewVirtualMachineRestore

func NewVirtualMachineRestore(namespace, name string, obj VirtualMachineRestore) *VirtualMachineRestore

func (*VirtualMachineRestore) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineRestore.

func (*VirtualMachineRestore) DeepCopyInto

func (in *VirtualMachineRestore) DeepCopyInto(out *VirtualMachineRestore)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineRestore) DeepCopyObject

func (in *VirtualMachineRestore) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineRestoreList

type VirtualMachineRestoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VirtualMachineRestore `json:"items"`
}

VirtualMachineRestoreList is a list of VirtualMachineRestore resources

func (*VirtualMachineRestoreList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineRestoreList.

func (*VirtualMachineRestoreList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineRestoreList) DeepCopyObject

func (in *VirtualMachineRestoreList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineRestoreSpec

type VirtualMachineRestoreSpec struct {
	// initially only VirtualMachine type supported
	Target corev1.TypedLocalObjectReference `json:"target"`

	// +kubebuilder:validation:Required
	VirtualMachineBackupName string `json:"virtualMachineBackupName"`

	// +kubebuilder:validation:Required
	VirtualMachineBackupNamespace string `json:"virtualMachineBackupNamespace"`

	// +optional
	NewVM bool `json:"newVM,omitempty"`

	// +optional
	DeletionPolicy DeletionPolicy `json:"deletionPolicy,omitempty"`

	// +optional
	// KeepMacAddress only works when NewVM is true.
	// For replacing original VM, the macaddress will be the same.
	KeepMacAddress bool `json:"keepMacAddress,omitempty"`
}

VirtualMachineRestoreSpec is the spec for a VirtualMachineRestore resource

func (*VirtualMachineRestoreSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineRestoreSpec.

func (*VirtualMachineRestoreSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineRestoreStatus

type VirtualMachineRestoreStatus struct {
	// +optional
	VolumeRestores []VolumeRestore `json:"restores,omitempty"`

	// +optional
	RestoreTime *metav1.Time `json:"restoreTime,omitempty"`

	// +optional
	DeletedVolumes []string `json:"deletedVolumes,omitempty"`

	// +optional
	Complete *bool `json:"complete,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`

	TargetUID *types.UID `json:"targetUID,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`
}

VirtualMachineRestoreStatus is the spec for a VirtualMachineRestore resource

func (*VirtualMachineRestoreStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineRestoreStatus.

func (*VirtualMachineRestoreStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSourceSpec added in v0.3.0

type VirtualMachineSourceSpec struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	// +optional
	ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec kubevirtv1.VirtualMachineSpec `json:"spec,omitempty"`
}

func (*VirtualMachineSourceSpec) DeepCopy added in v0.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineSourceSpec.

func (*VirtualMachineSourceSpec) DeepCopyInto added in v0.3.0

func (in *VirtualMachineSourceSpec) DeepCopyInto(out *VirtualMachineSourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineTemplate

type VirtualMachineTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineTemplateSpec   `json:"spec,omitempty"`
	Status VirtualMachineTemplateStatus `json:"status,omitempty"`
}

func NewVirtualMachineTemplate

func NewVirtualMachineTemplate(namespace, name string, obj VirtualMachineTemplate) *VirtualMachineTemplate

func (*VirtualMachineTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplate.

func (*VirtualMachineTemplate) DeepCopyInto

func (in *VirtualMachineTemplate) DeepCopyInto(out *VirtualMachineTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineTemplate) DeepCopyObject

func (in *VirtualMachineTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineTemplateList

type VirtualMachineTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VirtualMachineTemplate `json:"items"`
}

VirtualMachineTemplateList is a list of VirtualMachineTemplate resources

func (*VirtualMachineTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateList.

func (*VirtualMachineTemplateList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineTemplateList) DeepCopyObject

func (in *VirtualMachineTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineTemplateSpec

type VirtualMachineTemplateSpec struct {
	// +optional
	DefaultVersionID string `json:"defaultVersionId"`

	// +optional
	Description string `json:"description,omitempty"`
}

func (*VirtualMachineTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateSpec.

func (*VirtualMachineTemplateSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineTemplateStatus

type VirtualMachineTemplateStatus struct {
	// +optional
	DefaultVersion int `json:"defaultVersion,omitempty"`

	// +optional
	LatestVersion int `json:"latestVersion,omitempty"`
}

func (*VirtualMachineTemplateStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateStatus.

func (*VirtualMachineTemplateStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineTemplateVersion

type VirtualMachineTemplateVersion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineTemplateVersionSpec   `json:"spec"`
	Status VirtualMachineTemplateVersionStatus `json:"status,omitempty"`
}

func NewVirtualMachineTemplateVersion

func NewVirtualMachineTemplateVersion(namespace, name string, obj VirtualMachineTemplateVersion) *VirtualMachineTemplateVersion

func (*VirtualMachineTemplateVersion) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateVersion.

func (*VirtualMachineTemplateVersion) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineTemplateVersion) DeepCopyObject

func (in *VirtualMachineTemplateVersion) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineTemplateVersionList

type VirtualMachineTemplateVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VirtualMachineTemplateVersion `json:"items"`
}

VirtualMachineTemplateVersionList is a list of VirtualMachineTemplateVersion resources

func (*VirtualMachineTemplateVersionList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateVersionList.

func (*VirtualMachineTemplateVersionList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineTemplateVersionList) DeepCopyObject

func (in *VirtualMachineTemplateVersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineTemplateVersionSpec

type VirtualMachineTemplateVersionSpec struct {
	// +kubebuilder:validation:Required
	TemplateID string `json:"templateId"`

	// +optional
	Description string `json:"description,omitempty"`

	// +optional
	ImageID string `json:"imageId,omitempty"`

	// +optional
	KeyPairIDs []string `json:"keyPairIds,omitempty"`

	// +optional
	VM VirtualMachineSourceSpec `json:"vm,omitempty"`
}

func (*VirtualMachineTemplateVersionSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateVersionSpec.

func (*VirtualMachineTemplateVersionSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineTemplateVersionStatus

type VirtualMachineTemplateVersionStatus struct {
	// +optional
	Version int `json:"version,omitempty"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*VirtualMachineTemplateVersionStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateVersionStatus.

func (*VirtualMachineTemplateVersionStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VolumeBackup

type VolumeBackup struct {
	// +optional
	Name *string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	VolumeName string `json:"volumeName"`

	// +kubebuilder:default:="driver.longhorn.io"
	// +kubebuilder:validation:Required
	CSIDriverName string `json:"csiDriverName"`

	// +optional
	CreationTime *metav1.Time `json:"creationTime,omitempty"`

	// +kubebuilder:validation:Required
	PersistentVolumeClaim PersistentVolumeClaimSourceSpec `json:"persistentVolumeClaim"`

	// +optional
	LonghornBackupName *string `json:"longhornBackupName,omitempty"`

	// +optional
	VolumeSize int64 `json:"volumeSize,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`

	// +optional
	ReadyToUse *bool `json:"readyToUse,omitempty"`

	// +optional
	Error *Error `json:"error,omitempty"`
}

VolumeBackup contains the volume data need to restore a PVC

func (*VolumeBackup) DeepCopy

func (in *VolumeBackup) DeepCopy() *VolumeBackup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeBackup.

func (*VolumeBackup) DeepCopyInto

func (in *VolumeBackup) DeepCopyInto(out *VolumeBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VolumeRestore

type VolumeRestore struct {
	VolumeName string `json:"volumeName,omitempty"`

	PersistentVolumeClaim PersistentVolumeClaimSourceSpec `json:"persistentVolumeClaimSpec,omitempty"`

	VolumeBackupName string `json:"volumeBackupName,omitempty"`

	// +optional
	LonghornEngineName *string `json:"longhornEngineName,omitempty"`

	// +optional
	Progress int `json:"progress,omitempty"`

	// +optional
	VolumeSize int64 `json:"volumeSize,omitempty"`
}

VolumeRestore contains the volume data need to restore a PVC

func (*VolumeRestore) DeepCopy

func (in *VolumeRestore) DeepCopy() *VolumeRestore

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeRestore.

func (*VolumeRestore) DeepCopyInto

func (in *VolumeRestore) DeepCopyInto(out *VolumeRestore)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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