v1alpha1

package
v0.0.0-...-e9c8490 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubemove v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kubemove.io

Package v1alpha1 contains API Schema definitions for the kubemove v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kubemove.io

Index

Constants

View Source
const (
	ResourceKindMoveEngine     = "MoveEngine"
	ResourceSingularMoveEngine = "moveengine"
	ResourcePluralMoveEngine   = "moveengines"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kubemove.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type DataSync

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

	Spec   DataSyncSpec   `json:"spec,omitempty"`
	Status DataSyncStatus `json:"status,omitempty"`
}

DataSync is the Schema for the datasyncs API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="MoveEngine",type="string",JSONPath=".spec.moveEngine" +kubebuilder:printcolumn:name="Mode",type="string",JSONPath=".spec.mode" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status" +kubebuilder:printcolumn:name="Completion-Time",type="date",JSONPath=".status.completionTime"

func (*DataSync) DeepCopy

func (in *DataSync) DeepCopy() *DataSync

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

func (*DataSync) DeepCopyInto

func (in *DataSync) DeepCopyInto(out *DataSync)

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

func (*DataSync) DeepCopyObject

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

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

type DataSyncList

type DataSyncList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DataSync `json:"items"`
}

DataSyncList contains a list of DataSync

func (*DataSyncList) DeepCopy

func (in *DataSyncList) DeepCopy() *DataSyncList

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

func (*DataSyncList) DeepCopyInto

func (in *DataSyncList) DeepCopyInto(out *DataSyncList)

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

func (*DataSyncList) DeepCopyObject

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

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

type DataSyncPhase

type DataSyncPhase string
const (
	SyncPhaseRunning   DataSyncPhase = "Running"
	SyncPhaseCompleted DataSyncPhase = "Completed"
	SyncPhaseFailed    DataSyncPhase = "Failed"
	SyncPhaseSynced    DataSyncPhase = "Synced"
)

type DataSyncSpec

type DataSyncSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Namespace      string            `json:"namespace"`
	PluginProvider string            `json:"plugin"`
	MoveEngine     string            `json:"moveEngine"`
	Mode           SyncMode          `json:"mode"`
	Config         map[string]string `json:"config,omitempty"`
}

DataSyncSpec defines the desired state of DataSync +k8s:openapi-gen=true

func (*DataSyncSpec) DeepCopy

func (in *DataSyncSpec) DeepCopy() *DataSyncSpec

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

func (*DataSyncSpec) DeepCopyInto

func (in *DataSyncSpec) DeepCopyInto(out *DataSyncSpec)

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

type DataSyncStatus

type DataSyncStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Stage          string       `json:"stage"`
	Status         SyncState    `json:"status"`
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`
	Reason         string       `json:"reason,omitempty"`
}

DataSyncStatus defines the observed state of DataSync +k8s:openapi-gen=true

func (*DataSyncStatus) DeepCopy

func (in *DataSyncStatus) DeepCopy() *DataSyncStatus

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

func (*DataSyncStatus) DeepCopyInto

func (in *DataSyncStatus) DeepCopyInto(out *DataSyncStatus)

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

type MoveEngine

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

	Spec   MoveEngineSpec   `json:"spec,omitempty"`
	Status MoveEngineStatus `json:"status,omitempty"`
}

MoveEngine is the Schema for the moveengines API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Mode",type="string",JSONPath=".spec.mode" +kubebuilder:printcolumn:name="Sync-Period",type="string",JSONPath=".spec.syncPeriod" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status" +kubebuilder:printcolumn:name="Data-Sync",type="string",JSONPath=".status.dataSync" +kubebuilder:printcolumn:name="Sync-Status",type="string",JSONPath=".status.dataSyncStatus" +kubebuilder:printcolumn:name="Synced-Time",type="date",JSONPath=".status.syncedTime"

func (*MoveEngine) DeepCopy

func (in *MoveEngine) DeepCopy() *MoveEngine

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

func (*MoveEngine) DeepCopyInto

func (in *MoveEngine) DeepCopyInto(out *MoveEngine)

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

func (*MoveEngine) DeepCopyObject

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

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

type MoveEngineList

type MoveEngineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MoveEngine `json:"items"`
}

MoveEngineList contains a list of MoveEngine

func (*MoveEngineList) DeepCopy

func (in *MoveEngineList) DeepCopy() *MoveEngineList

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

func (*MoveEngineList) DeepCopyInto

func (in *MoveEngineList) DeepCopyInto(out *MoveEngineList)

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

func (*MoveEngineList) DeepCopyObject

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

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

type MoveEngineSpec

type MoveEngineSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	MovePair         string                `json:"movePair"`
	Namespace        string                `json:"namespace"`
	RemoteNamespace  string                `json:"remoteNamespace"`
	SyncPeriod       string                `json:"syncPeriod"`
	Mode             string                `json:"mode"`
	PluginProvider   string                `json:"plugin"`
	IncludeResources bool                  `json:"includeResources"`
	PluginParameters *runtime.RawExtension `json:"pluginParameters,omitempty"`
}

MoveEngineSpec defines the desired state of MoveEngine +k8s:openapi-gen=true

func (*MoveEngineSpec) DeepCopy

func (in *MoveEngineSpec) DeepCopy() *MoveEngineSpec

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

func (*MoveEngineSpec) DeepCopyInto

func (in *MoveEngineSpec) DeepCopyInto(out *MoveEngineSpec)

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

type MoveEngineState

type MoveEngineState string
const (
	MoveEngineInitializing         MoveEngineState = "Initializing"
	MoveEngineInitialized          MoveEngineState = "Initialized"
	MoveEngineReady                MoveEngineState = "Ready"
	MoveEngineInitializationFailed MoveEngineState = "InitializationFailed"
	MoveEngineInvalid              MoveEngineState = "Invalid"
)

type MoveEngineStatus

type MoveEngineStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Status         MoveEngineState `json:"status,omitempty"`
	LastStatus     MoveEngineState `json:"lastStatus,omitempty"`
	SyncedTime     *metav1.Time    `json:"syncedTime,omitempty"`
	LastSyncedTime *metav1.Time    `json:"lastSyncedTime,omitempty"`
	DataSync       string          `json:"dataSync,omitempty"`
	DataSyncStatus DataSyncPhase   `json:"dataSyncStatus,omitempty"`
}

MoveEngineStatus defines the observed state of MoveEngine +k8s:openapi-gen=true

func (*MoveEngineStatus) DeepCopy

func (in *MoveEngineStatus) DeepCopy() *MoveEngineStatus

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

func (*MoveEngineStatus) DeepCopyInto

func (in *MoveEngineStatus) DeepCopyInto(out *MoveEngineStatus)

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

type MovePair

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

	Spec   MovePairSpec   `json:"spec,omitempty"`
	Status MovePairStatus `json:"status,omitempty"`
}

MovePair is the Schema for the movepairs API +k8s:openapi-gen=true

func (*MovePair) DeepCopy

func (in *MovePair) DeepCopy() *MovePair

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

func (*MovePair) DeepCopyInto

func (in *MovePair) DeepCopyInto(out *MovePair)

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

func (*MovePair) DeepCopyObject

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

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

type MovePairList

type MovePairList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MovePair `json:"items"`
}

MovePairList contains a list of MovePair

func (*MovePairList) DeepCopy

func (in *MovePairList) DeepCopy() *MovePairList

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

func (*MovePairList) DeepCopyInto

func (in *MovePairList) DeepCopyInto(out *MovePairList)

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

func (*MovePairList) DeepCopyObject

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

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

type MovePairSpec

type MovePairSpec struct {
	// Config specifies the cluster config
	Config clientcmdapi.Config `json:"config"`
}

MovePairSpec defines the desired state of MovePair +k8s:openapi-gen=true

func (*MovePairSpec) DeepCopy

func (in *MovePairSpec) DeepCopy() *MovePairSpec

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

func (*MovePairSpec) DeepCopyInto

func (in *MovePairSpec) DeepCopyInto(out *MovePairSpec)

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

type MovePairStatus

type MovePairStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	State PairState `json:"state"`
}

MovePairStatus defines the observed state of MovePair +k8s:openapi-gen=true

func (*MovePairStatus) DeepCopy

func (in *MovePairStatus) DeepCopy() *MovePairStatus

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

func (*MovePairStatus) DeepCopyInto

func (in *MovePairStatus) DeepCopyInto(out *MovePairStatus)

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

type MoveReverse

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

	Spec   MoveReverseSpec   `json:"spec,omitempty"`
	Status MoveReverseStatus `json:"status,omitempty"`
}

MoveReverse is the Schema for the movereverses API +k8s:openapi-gen=true

func (*MoveReverse) DeepCopy

func (in *MoveReverse) DeepCopy() *MoveReverse

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

func (*MoveReverse) DeepCopyInto

func (in *MoveReverse) DeepCopyInto(out *MoveReverse)

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

func (*MoveReverse) DeepCopyObject

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

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

type MoveReverseList

type MoveReverseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MoveReverse `json:"items"`
}

MoveReverseList contains a list of MoveReverse

func (*MoveReverseList) DeepCopy

func (in *MoveReverseList) DeepCopy() *MoveReverseList

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

func (*MoveReverseList) DeepCopyInto

func (in *MoveReverseList) DeepCopyInto(out *MoveReverseList)

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

func (*MoveReverseList) DeepCopyObject

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

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

type MoveReverseSpec

type MoveReverseSpec struct {
}

MoveReverseSpec defines the desired state of MoveReverse +k8s:openapi-gen=true

func (*MoveReverseSpec) DeepCopy

func (in *MoveReverseSpec) DeepCopy() *MoveReverseSpec

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

func (*MoveReverseSpec) DeepCopyInto

func (in *MoveReverseSpec) DeepCopyInto(out *MoveReverseSpec)

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

type MoveReverseStatus

type MoveReverseStatus struct {
}

MoveReverseStatus defines the observed state of MoveReverse +k8s:openapi-gen=true

func (*MoveReverseStatus) DeepCopy

func (in *MoveReverseStatus) DeepCopy() *MoveReverseStatus

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

func (*MoveReverseStatus) DeepCopyInto

func (in *MoveReverseStatus) DeepCopyInto(out *MoveReverseStatus)

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

type MoveSwitch

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

	Spec   MoveSwitchSpec   `json:"spec,omitempty"`
	Status MoveSwitchStatus `json:"status,omitempty"`
}

MoveSwitch is the Schema for the moveswitches API +k8s:openapi-gen=true

func (*MoveSwitch) DeepCopy

func (in *MoveSwitch) DeepCopy() *MoveSwitch

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

func (*MoveSwitch) DeepCopyInto

func (in *MoveSwitch) DeepCopyInto(out *MoveSwitch)

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

func (*MoveSwitch) DeepCopyObject

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

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

type MoveSwitchList

type MoveSwitchList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MoveSwitch `json:"items"`
}

MoveSwitchList contains a list of MoveSwitch

func (*MoveSwitchList) DeepCopy

func (in *MoveSwitchList) DeepCopy() *MoveSwitchList

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

func (*MoveSwitchList) DeepCopyInto

func (in *MoveSwitchList) DeepCopyInto(out *MoveSwitchList)

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

func (*MoveSwitchList) DeepCopyObject

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

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

type MoveSwitchSpec

type MoveSwitchSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	MoveEngine string `json:"moveEngine"`
	Active     bool   `json:"active"`
}

MoveSwitchSpec defines the desired state of MoveSwitch +k8s:openapi-gen=true

func (*MoveSwitchSpec) DeepCopy

func (in *MoveSwitchSpec) DeepCopy() *MoveSwitchSpec

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

func (*MoveSwitchSpec) DeepCopyInto

func (in *MoveSwitchSpec) DeepCopyInto(out *MoveSwitchSpec)

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

type MoveSwitchStatus

type MoveSwitchStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Stage  string
	Status string
	Reason string
	Volume []*VolumeStatus
}

MoveSwitchStatus defines the observed state of MoveSwitch +k8s:openapi-gen=true

func (*MoveSwitchStatus) DeepCopy

func (in *MoveSwitchStatus) DeepCopy() *MoveSwitchStatus

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

func (*MoveSwitchStatus) DeepCopyInto

func (in *MoveSwitchStatus) DeepCopyInto(out *MoveSwitchStatus)

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

type PairState

type PairState string
const (
	PairStateErrored    PairState = "Errored"
	PairStateConnection PairState = "Connected"
)

type ResourceStatus

type ResourceStatus struct {
	Kind       string      `json:"kind"`
	Name       string      `json:"name"`
	Phase      string      `json:"phase"`
	Status     string      `json:"status"`
	Reason     string      `json:"reason"`
	SyncedTime metav1.Time `json:"Synced"`
}

ResourceStatus sync status of resource

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

type SyncMode

type SyncMode string
const (
	SyncModeBackup  SyncMode = "backup"
	SyncModeRestore SyncMode = "restore"
)

type SyncState

type SyncState string
const (
	SyncStateRunning   SyncState = "Running"
	SyncStateCompleted SyncState = "Completed"
	SyncStateFailed    SyncState = "Failed"
)

type VolumeStatus

type VolumeStatus struct {
	Namespace       string      `json:"namespace"`
	RemoteNamespace string      `json:"remoteNamespace"`
	PVC             string      `json:"pvc"`
	Status          string      `json:"status"`
	SyncedTime      metav1.Time `json:"synced"`
	LastStatus      string      `json:"lastStatus"`
	LastSyncedTime  metav1.Time `json:"lastSyncedTime"`
	Reason          string      `json:"reason"`
	Volume          string      `json:"volume"`
	RemoteVolume    string      `json:"remoteVolume"`
}

VolumeStatus sync status of volumes

func (*VolumeStatus) DeepCopy

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto

func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)

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