v1alpha1

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: snapshot.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

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 DeletionPolicy

type DeletionPolicy string

DeletionPolicy defines that to do with VirtualMachineSnapshot when VirtualMachineSnapshot is deleted

const (
	// VirtualMachineSnapshotContentDelete is the default and causes the
	// VirtualMachineSnapshotContent to be deleted
	VirtualMachineSnapshotContentDelete DeletionPolicy = "Delete"

	// VirtualMachineSnapshotContentRetain is the default and causes the
	// VirtualMachineSnapshotContent to stay around
	VirtualMachineSnapshotContentRetain DeletionPolicy = "Retain"
)

type SourceSpec

type SourceSpec struct {
	// +optional
	VirtualMachine *v1.VirtualMachine `json:"virtualMachine,omitempty"`
}

SourceSpec contains the appropriate spec for the resource being snapshotted

func (*SourceSpec) DeepCopy

func (in *SourceSpec) DeepCopy() *SourceSpec

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

func (*SourceSpec) DeepCopyInto

func (in *SourceSpec) DeepCopyInto(out *SourceSpec)

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

func (SourceSpec) SwaggerDoc

func (SourceSpec) SwaggerDoc() map[string]string

type VirtualMachineSnapshot

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

	Spec VirtualMachineSnapshotSpec `json:"spec"`

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

VirtualMachineSnapshot defines the operation of snapshotting a VM +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VirtualMachineSnapshot) DeepCopy

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

func (*VirtualMachineSnapshot) DeepCopyInto

func (in *VirtualMachineSnapshot) DeepCopyInto(out *VirtualMachineSnapshot)

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

func (*VirtualMachineSnapshot) DeepCopyObject

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

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

func (VirtualMachineSnapshot) SwaggerDoc

func (VirtualMachineSnapshot) SwaggerDoc() map[string]string

type VirtualMachineSnapshotCondition

type VirtualMachineSnapshotCondition struct {
	Type VirtualMachineSnapshotConditionType `json:"type"`

	Status corev1.ConditionStatus `json:"status"`

	// +optional
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`

	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// +optional
	Reason string `json:"reason,omitempty"`

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

VirtualMachineSnapshotCondition defines snapshot conditions

func (*VirtualMachineSnapshotCondition) DeepCopy

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

func (*VirtualMachineSnapshotCondition) DeepCopyInto

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

func (VirtualMachineSnapshotCondition) SwaggerDoc

type VirtualMachineSnapshotConditionType

type VirtualMachineSnapshotConditionType string

VirtualMachineSnapshotConditionType is the const type for VirtualMachineSnapshotConditions

const (
	// VirtualMachineSnapshotConditionReady is the "ready" condition type
	VirtualMachineSnapshotConditionReady VirtualMachineSnapshotConditionType = "Ready"

	// VirtualMachineSnapshotConditionProgressing is the "progressing" condition type
	VirtualMachineSnapshotConditionProgressing VirtualMachineSnapshotConditionType = "Progressing"
)

type VirtualMachineSnapshotContent

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

	Spec VirtualMachineSnapshotContentSpec `json:"spec"`

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

VirtualMachineSnapshotContent contains the snapshot data +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VirtualMachineSnapshotContent) DeepCopy

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

func (*VirtualMachineSnapshotContent) DeepCopyInto

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

func (*VirtualMachineSnapshotContent) DeepCopyObject

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

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

func (VirtualMachineSnapshotContent) SwaggerDoc

func (VirtualMachineSnapshotContent) SwaggerDoc() map[string]string

type VirtualMachineSnapshotContentList

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

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

VirtualMachineSnapshotContentList is a list of VirtualMachineSnapshot resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VirtualMachineSnapshotContentList) DeepCopy

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

func (*VirtualMachineSnapshotContentList) DeepCopyInto

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

func (*VirtualMachineSnapshotContentList) DeepCopyObject

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

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

func (VirtualMachineSnapshotContentList) SwaggerDoc

type VirtualMachineSnapshotContentSpec

type VirtualMachineSnapshotContentSpec struct {
	VirtualMachineSnapshotName *string `json:"virtualMachineSnapshotName,omitempty"`

	Source SourceSpec `json:"source"`

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

VirtualMachineSnapshotContentSpec is the spec for a VirtualMachineSnapshotContent resource

func (*VirtualMachineSnapshotContentSpec) DeepCopy

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

func (*VirtualMachineSnapshotContentSpec) DeepCopyInto

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

func (VirtualMachineSnapshotContentSpec) SwaggerDoc

type VirtualMachineSnapshotContentStatus

type VirtualMachineSnapshotContentStatus struct {
	// +optional
	CreationTime *metav1.Time `json:"creationTime,omitempty"`

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

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

	// +optional
	VolumeSnapshotStatus []VolumeSnapshotStatus `json:"volumeSnapshotStatus,omitempty"`
}

VirtualMachineSnapshotContentStatus is the status for a VirtualMachineSnapshotStatus resource

func (*VirtualMachineSnapshotContentStatus) DeepCopy

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

func (*VirtualMachineSnapshotContentStatus) DeepCopyInto

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

func (VirtualMachineSnapshotContentStatus) SwaggerDoc

type VirtualMachineSnapshotError

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

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

VirtualMachineSnapshotError is the last error encountered while creating the snapshot

func (*VirtualMachineSnapshotError) DeepCopy

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

func (*VirtualMachineSnapshotError) DeepCopyInto

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

func (VirtualMachineSnapshotError) SwaggerDoc

func (VirtualMachineSnapshotError) SwaggerDoc() map[string]string

type VirtualMachineSnapshotList

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

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

VirtualMachineSnapshotList is a list of VirtualMachineSnapshot resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VirtualMachineSnapshotList) DeepCopy

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

func (*VirtualMachineSnapshotList) DeepCopyInto

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

func (*VirtualMachineSnapshotList) DeepCopyObject

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

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

func (VirtualMachineSnapshotList) SwaggerDoc

func (VirtualMachineSnapshotList) SwaggerDoc() map[string]string

type VirtualMachineSnapshotSpec

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

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

VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot resource

func (*VirtualMachineSnapshotSpec) DeepCopy

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

func (*VirtualMachineSnapshotSpec) DeepCopyInto

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

func (VirtualMachineSnapshotSpec) SwaggerDoc

func (VirtualMachineSnapshotSpec) SwaggerDoc() map[string]string

type VirtualMachineSnapshotStatus

type VirtualMachineSnapshotStatus struct {
	// +optional
	VirtualMachineSnapshotContentName *string `json:"virtualMachineSnapshotContentName,omitempty"`

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

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

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

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

VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource

func (*VirtualMachineSnapshotStatus) DeepCopy

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

func (*VirtualMachineSnapshotStatus) DeepCopyInto

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

func (VirtualMachineSnapshotStatus) SwaggerDoc

func (VirtualMachineSnapshotStatus) SwaggerDoc() map[string]string

type VolumeBackup

type VolumeBackup struct {
	DiskName string `json:"diskName"`

	PersistentVolumeClaim corev1.PersistentVolumeClaim `json:"persistentVolumeClaim"`

	// +optional
	VolumeSnapshotName *string `json:"volumeSnapshotName,omitempty"`
}

VolumeBackup contains the data neeed 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.

func (VolumeBackup) SwaggerDoc

func (VolumeBackup) SwaggerDoc() map[string]string

type VolumeSnapshotStatus

type VolumeSnapshotStatus struct {
	VolumeSnapshotName string `json:"volumeSnapshotName"`

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

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

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

VolumeSnapshotStatus is the status of a VolumeSnapshot

func (*VolumeSnapshotStatus) DeepCopy

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

func (*VolumeSnapshotStatus) DeepCopyInto

func (in *VolumeSnapshotStatus) DeepCopyInto(out *VolumeSnapshotStatus)

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

func (VolumeSnapshotStatus) SwaggerDoc

func (VolumeSnapshotStatus) SwaggerDoc() map[string]string

Jump to

Keyboard shortcuts

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