v1alpha1

package
v1.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=cdi.kubevirt.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder tbd
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme tbd
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: datavolumecontroller.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 DataVolume

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

	Spec   DataVolumeSpec   `json:"spec"`
	Status DataVolumeStatus `json:"status"`
}

DataVolume provides a representation of our data volume +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DataVolume) DeepCopy

func (in *DataVolume) DeepCopy() *DataVolume

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

func (*DataVolume) DeepCopyInto

func (in *DataVolume) DeepCopyInto(out *DataVolume)

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

func (*DataVolume) DeepCopyObject

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

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

type DataVolumeList

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

	// Items provides a list of DataVolumes
	Items []DataVolume `json:"items"`
}

DataVolumeList provides the needed parameters to do request a list of Data Volumes from the system +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DataVolumeList) DeepCopy

func (in *DataVolumeList) DeepCopy() *DataVolumeList

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

func (*DataVolumeList) DeepCopyInto

func (in *DataVolumeList) DeepCopyInto(out *DataVolumeList)

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

func (*DataVolumeList) DeepCopyObject

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

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

type DataVolumePhase

type DataVolumePhase string

DataVolumePhase is the current phase of the DataVolume

const (
	// PhaseUnset represents a data volume with no current phase
	PhaseUnset DataVolumePhase = ""

	// Pending represents a data volume with a current phase of Pending
	Pending DataVolumePhase = "Pending"
	// PVCBound represents a data volume with a current phase of PVCBound
	PVCBound DataVolumePhase = "PVCBound"

	// ImportScheduled represents a data volume with a current phase of ImportScheduled
	ImportScheduled DataVolumePhase = "ImportScheduled"

	// ImportInProgress represents a data volume with a current phase of ImportInProgress
	ImportInProgress DataVolumePhase = "ImportInProgress"

	// Succeeded represents a DataVolumePhase of Succeeded
	Succeeded DataVolumePhase = "Succeeded"
	// Failed represents a DataVolumePhase of Failed
	Failed DataVolumePhase = "Failed"
	// Unknown represents a DataVolumePhase of Unknown
	Unknown DataVolumePhase = "Unknown"
)

type DataVolumeSource

type DataVolumeSource struct {
	HTTP *DataVolumeSourceHTTP `json:"http,omitempty"`
	S3   *DataVolumeSourceS3   `json:"s3,omitempty"`
	PVC  *DataVolumeSourcePVC  `json:"pvc,omitempty"`
}

DataVolumeSource represents the source for our Data Volume, this can be HTTP, S3 or an existing PVC

func (*DataVolumeSource) DeepCopy

func (in *DataVolumeSource) DeepCopy() *DataVolumeSource

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

func (*DataVolumeSource) DeepCopyInto

func (in *DataVolumeSource) DeepCopyInto(out *DataVolumeSource)

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

type DataVolumeSourceHTTP

type DataVolumeSourceHTTP struct {
	//URL is the URL of the http source
	URL string `json:"url,omitempty"`
}

DataVolumeSourceHTTP provides the parameters to create a Data Volume from an HTTP source

func (*DataVolumeSourceHTTP) DeepCopy

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

func (*DataVolumeSourceHTTP) DeepCopyInto

func (in *DataVolumeSourceHTTP) DeepCopyInto(out *DataVolumeSourceHTTP)

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

type DataVolumeSourcePVC

type DataVolumeSourcePVC struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
}

DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC

func (*DataVolumeSourcePVC) DeepCopy

func (in *DataVolumeSourcePVC) DeepCopy() *DataVolumeSourcePVC

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

func (*DataVolumeSourcePVC) DeepCopyInto

func (in *DataVolumeSourcePVC) DeepCopyInto(out *DataVolumeSourcePVC)

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

type DataVolumeSourceS3

type DataVolumeSourceS3 struct {
	//URL is the url of the S3 source
	URL string `json:"url,omitempty"`
	//SecretRef provides the secret reference needed to access the S3 source
	SecretRef string `json:"secretRef,omitempty"`
}

DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source

func (*DataVolumeSourceS3) DeepCopy

func (in *DataVolumeSourceS3) DeepCopy() *DataVolumeSourceS3

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

func (*DataVolumeSourceS3) DeepCopyInto

func (in *DataVolumeSourceS3) DeepCopyInto(out *DataVolumeSourceS3)

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

type DataVolumeSpec

type DataVolumeSpec struct {
	//Source is the src of the data for the requested DataVolume
	Source DataVolumeSource `json:"source"`
	//PVC is a pointer to the PVC Spec we want to use
	PVC *corev1.PersistentVolumeClaimSpec `json:"pvc"`
}

DataVolumeSpec defines our specification for a DataVolume type

func (*DataVolumeSpec) DeepCopy

func (in *DataVolumeSpec) DeepCopy() *DataVolumeSpec

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

func (*DataVolumeSpec) DeepCopyInto

func (in *DataVolumeSpec) DeepCopyInto(out *DataVolumeSpec)

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

type DataVolumeStatus

type DataVolumeStatus struct {
	//Phase is the current phase of the data volume
	Phase DataVolumePhase `json:"phase,omitempty"`
}

DataVolumeStatus provides the parameters to store the phase of the Data Volume

func (*DataVolumeStatus) DeepCopy

func (in *DataVolumeStatus) DeepCopy() *DataVolumeStatus

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

func (*DataVolumeStatus) DeepCopyInto

func (in *DataVolumeStatus) DeepCopyInto(out *DataVolumeStatus)

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