Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.storage.ramendr.io
Index ¶
- Variables
- type ReplicationState
- type State
- type VolumeGroupReplication
- type VolumeGroupReplicationClass
- type VolumeGroupReplicationClassList
- type VolumeGroupReplicationClassSpec
- type VolumeGroupReplicationClassStatus
- type VolumeGroupReplicationList
- type VolumeGroupReplicationSpec
- type VolumeGroupReplicationStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cache.storage.ramendr.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ReplicationState ¶
type ReplicationState string
ReplicationState represents the replication operations to be performed on the volume
const ( // Promote the protected PVCs to primary Primary ReplicationState = "primary" // Demote the proteced PVCs to secondary Secondary ReplicationState = "secondary" )
type VolumeGroupReplication ¶
type VolumeGroupReplication struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VolumeGroupReplicationSpec `json:"spec,omitempty"` Status VolumeGroupReplicationStatus `json:"status,omitempty"` }
VolumeGroupReplication is the Schema for the volumegroupreplications API
func (*VolumeGroupReplication) DeepCopy ¶
func (in *VolumeGroupReplication) DeepCopy() *VolumeGroupReplication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplication.
func (*VolumeGroupReplication) DeepCopyInto ¶
func (in *VolumeGroupReplication) DeepCopyInto(out *VolumeGroupReplication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeGroupReplication) DeepCopyObject ¶
func (in *VolumeGroupReplication) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeGroupReplicationClass ¶
type VolumeGroupReplicationClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VolumeGroupReplicationClassSpec `json:"spec,omitempty"` Status VolumeGroupReplicationClassStatus `json:"status,omitempty"` }
VolumeGroupReplicationClass is the Schema for the volumegroupreplicationclasses API
func (*VolumeGroupReplicationClass) DeepCopy ¶
func (in *VolumeGroupReplicationClass) DeepCopy() *VolumeGroupReplicationClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationClass.
func (*VolumeGroupReplicationClass) DeepCopyInto ¶
func (in *VolumeGroupReplicationClass) DeepCopyInto(out *VolumeGroupReplicationClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeGroupReplicationClass) DeepCopyObject ¶
func (in *VolumeGroupReplicationClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeGroupReplicationClassList ¶
type VolumeGroupReplicationClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VolumeGroupReplicationClass `json:"items"` }
VolumeGroupReplicationClassList contains a list of VolumeGroupReplicationClass
func (*VolumeGroupReplicationClassList) DeepCopy ¶
func (in *VolumeGroupReplicationClassList) DeepCopy() *VolumeGroupReplicationClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationClassList.
func (*VolumeGroupReplicationClassList) DeepCopyInto ¶
func (in *VolumeGroupReplicationClassList) DeepCopyInto(out *VolumeGroupReplicationClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeGroupReplicationClassList) DeepCopyObject ¶
func (in *VolumeGroupReplicationClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeGroupReplicationClassSpec ¶
type VolumeGroupReplicationClassSpec struct { // Provisioner is the name of storage provisioner Provisioner string `json:"provisioner"` // Parameters is a key-value map with storage provisioner specific configurations for Parameters map[string]string `json:"parameters,omitempty"` }
VolumeGroupReplicationClassSpec defines the desired state of VolumeGroupReplicationClass
func (*VolumeGroupReplicationClassSpec) DeepCopy ¶
func (in *VolumeGroupReplicationClassSpec) DeepCopy() *VolumeGroupReplicationClassSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationClassSpec.
func (*VolumeGroupReplicationClassSpec) DeepCopyInto ¶
func (in *VolumeGroupReplicationClassSpec) DeepCopyInto(out *VolumeGroupReplicationClassSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeGroupReplicationClassStatus ¶
type VolumeGroupReplicationClassStatus struct{}
VolumeGroupReplicationClassStatus defines the observed state of VolumeGroupReplicationClass
func (*VolumeGroupReplicationClassStatus) DeepCopy ¶
func (in *VolumeGroupReplicationClassStatus) DeepCopy() *VolumeGroupReplicationClassStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationClassStatus.
func (*VolumeGroupReplicationClassStatus) DeepCopyInto ¶
func (in *VolumeGroupReplicationClassStatus) DeepCopyInto(out *VolumeGroupReplicationClassStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeGroupReplicationList ¶
type VolumeGroupReplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VolumeGroupReplication `json:"items"` }
VolumeGroupReplicationList contains a list of VolumeGroupReplication
func (*VolumeGroupReplicationList) DeepCopy ¶
func (in *VolumeGroupReplicationList) DeepCopy() *VolumeGroupReplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationList.
func (*VolumeGroupReplicationList) DeepCopyInto ¶
func (in *VolumeGroupReplicationList) DeepCopyInto(out *VolumeGroupReplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeGroupReplicationList) DeepCopyObject ¶
func (in *VolumeGroupReplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeGroupReplicationSpec ¶
type VolumeGroupReplicationSpec struct { // Desired state of all volumes [primary or secondary] in this replication group; // this value is propagated to children VolumeReplication CRs // +kubebuilder:validation:Enum=primary;secondary ReplicationState ReplicationState `json:"replicationState"` // VolumeGroupReplicationClass may be left nil to indicate that // the default class will be used. VolumeGroupReplicationClass string `json:"volumeGroupReplicationClass"` // A label query over persistent volume claims to be grouped together // for replication. This labelSelector will be used to match // the label added to a PVC. Selector *metav1.LabelSelector `json:"selector"` }
VolumeGroupReplicationSpec defines the desired state of VolumeGroupReplication
func (*VolumeGroupReplicationSpec) DeepCopy ¶
func (in *VolumeGroupReplicationSpec) DeepCopy() *VolumeGroupReplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationSpec.
func (*VolumeGroupReplicationSpec) DeepCopyInto ¶
func (in *VolumeGroupReplicationSpec) DeepCopyInto(out *VolumeGroupReplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeGroupReplicationStatus ¶
type VolumeGroupReplicationStatus struct { State State `json:"state,omitempty"` Message string `json:"message,omitempty"` // Conditions are the list of conditions and their status. Conditions []metav1.Condition `json:"conditions,omitempty"` // observedGeneration is the last generation change the operator has dealt with // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` LastStartTime *metav1.Time `json:"lastStartTime,omitempty"` LastCompletionTime *metav1.Time `json:"lastCompletionTime,omitempty"` // lastGroupSyncTime is the time of the most recent successful synchronization of all PVCs //+optional LastGroupSyncTime *metav1.Time `json:"lastGroupSyncTime,omitempty"` // lastGroupSyncDuration is the max time from all the successful synced PVCs //+optional LastGroupSyncDuration *metav1.Duration `json:"lastGroupSyncDuration,omitempty"` // lastGroupSyncBytes is the total bytes transferred from the most recent // successful synchronization of all PVCs //+optional LastGroupSyncBytes *int64 `json:"lastGroupSyncBytes,omitempty"` }
VolumeGroupReplicationStatus defines the observed state of VolumeGroupReplication
func (*VolumeGroupReplicationStatus) DeepCopy ¶
func (in *VolumeGroupReplicationStatus) DeepCopy() *VolumeGroupReplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupReplicationStatus.
func (*VolumeGroupReplicationStatus) DeepCopyInto ¶
func (in *VolumeGroupReplicationStatus) DeepCopyInto(out *VolumeGroupReplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.