Documentation ¶
Overview ¶
Package v1beta2 contains API Schema definitions for the cloud v1beta2 API group +k8s:deepcopy-gen=package,register +groupName=cloud.atomix.io
Package v1beta2 contains API Schema definitions for the k8s v1beta2 API group +k8s:deepcopy-gen=package,register +groupName=cloud.atomix.io
Index ¶
- Variables
- func SetClusterDefaults(cluster *Cluster)
- func SetDatabaseDefaults(database *Database)
- type Cluster
- type ClusterList
- type ClusterSpec
- type ClusterStatus
- type ClusterTemplateSpec
- type Database
- type DatabaseList
- type DatabaseSpec
- type DatabaseStatus
- type Partition
- type PartitionList
- type PartitionSpec
- type PartitionStatus
- type StorageController
- type StorageControllerList
- type StorageControllerSpec
- type StorageControllerStatus
- type StorageReference
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "cloud.atomix.io", Version: "v1beta2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by the client code generator AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func SetClusterDefaults ¶
func SetClusterDefaults(cluster *Cluster)
SetClusterDefaults sets the default values for the given Cluster
func SetDatabaseDefaults ¶
func SetDatabaseDefaults(database *Database)
SetDatabaseDefaults sets the defaults for the given Database
Types ¶
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the spec for the partition Spec ClusterSpec `json:"spec,omitempty"` // Status is the status of the partition Status ClusterStatus `json:"status,omitempty"` }
Cluster is the Schema for the atomixclusters API +k8s:openapi-gen=true
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is the set of items in the list Items []Cluster `json:"items"` }
ClusterList contains a list of Cluster
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterSpec ¶
type ClusterSpec struct { // Storage is a reference to the storage configuration Storage StorageReference `json:"storage,omitempty"` // Partitions is the number of partitions in the cluster Partitions int32 `json:"partitions,omitempty"` }
ClusterSpec is the k8s configuration for a single partition
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct { // ReadyPartitions is the number of partitions that are ready in the cluster ReadyPartitions int32 `json:"readyPartitions,omitempty"` }
ClusterStatus defines the observed state of Cluster
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplateSpec ¶
type ClusterTemplateSpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the ClusterSpec for the clusters in the set Spec ClusterSpec `json:"spec,omitempty"` }
ClusterTemplateSpec is a template for clusters managed by the set
func (*ClusterTemplateSpec) DeepCopy ¶
func (in *ClusterTemplateSpec) DeepCopy() *ClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateSpec.
func (*ClusterTemplateSpec) DeepCopyInto ¶
func (in *ClusterTemplateSpec) DeepCopyInto(out *ClusterTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Database ¶
type Database struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the Database specification Spec DatabaseSpec `json:"spec,omitempty"` // Status if the current status of the Database Status DatabaseStatus `json:"status,omitempty"` }
Database is the Schema for the Database API +k8s:openapi-gen=true
func (*Database) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
func (*Database) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Database) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseList ¶
type DatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is the set of items in the list Items []Database `json:"items"` }
DatabaseList contains a list of Database
func (*DatabaseList) DeepCopy ¶
func (in *DatabaseList) DeepCopy() *DatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseList.
func (*DatabaseList) DeepCopyInto ¶
func (in *DatabaseList) DeepCopyInto(out *DatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseList) DeepCopyObject ¶
func (in *DatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseSpec ¶
type DatabaseSpec struct { // Clusters is the number of clusters in the database Clusters int32 `json:"clusters,omitempty"` // Template is the PartitionTemplateSpec to use to configure the partitions Template ClusterTemplateSpec `json:"template,omitempty"` }
DatabaseSpec is the k8s spec for a Database resource
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseStatus ¶
type DatabaseStatus struct { // ReadyClusters is the number of clusters in the database that have been marked ready ReadyClusters int32 `json:"readyClusters,omitempty"` }
DatabaseStatus defines the observed state of Partition
func (*DatabaseStatus) DeepCopy ¶
func (in *DatabaseStatus) DeepCopy() *DatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseStatus.
func (*DatabaseStatus) DeepCopyInto ¶
func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Partition ¶
type Partition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the spec for the partition Spec PartitionSpec `json:"spec,omitempty"` // Status is the status of the partition Status PartitionStatus `json:"status,omitempty"` }
Partition is the Schema for the atomixclusters API +k8s:openapi-gen=true
func (*Partition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Partition.
func (*Partition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Partition) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PartitionList ¶
type PartitionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is the set of items in the list Items []Partition `json:"items"` }
PartitionList contains a list of Partition
func (*PartitionList) DeepCopy ¶
func (in *PartitionList) DeepCopy() *PartitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionList.
func (*PartitionList) DeepCopyInto ¶
func (in *PartitionList) DeepCopyInto(out *PartitionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartitionList) DeepCopyObject ¶
func (in *PartitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PartitionSpec ¶
type PartitionSpec struct { PartitionID int32 `json:"partitionId,omitempty"` Host string `json:"host,omitempty"` Port int32 `json:"port,omitempty"` }
PartitionSpec is the k8s configuration for a single partition
func (*PartitionSpec) DeepCopy ¶
func (in *PartitionSpec) DeepCopy() *PartitionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSpec.
func (*PartitionSpec) DeepCopyInto ¶
func (in *PartitionSpec) DeepCopyInto(out *PartitionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PartitionStatus ¶
type PartitionStatus struct { // Ready indicates whether the partition is ready Ready bool `json:"ready,omitempty"` }
PartitionStatus defines the observed state of Partition
func (*PartitionStatus) DeepCopy ¶
func (in *PartitionStatus) DeepCopy() *PartitionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionStatus.
func (*PartitionStatus) DeepCopyInto ¶
func (in *PartitionStatus) DeepCopyInto(out *PartitionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageController ¶
type StorageController struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the storage controller specification Spec StorageControllerSpec `json:"spec,omitempty"` }
StorageController is the Schema for the StorageController API +k8s:openapi-gen=true
func (*StorageController) DeepCopy ¶
func (in *StorageController) DeepCopy() *StorageController
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageController.
func (*StorageController) DeepCopyInto ¶
func (in *StorageController) DeepCopyInto(out *StorageController)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageController) DeepCopyObject ¶
func (in *StorageController) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageControllerList ¶
type StorageControllerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is the set of items in the list Items []StorageController `json:"items"` }
StorageControllerList contains a list of StorageControllers
func (*StorageControllerList) DeepCopy ¶
func (in *StorageControllerList) DeepCopy() *StorageControllerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageControllerList.
func (*StorageControllerList) DeepCopyInto ¶
func (in *StorageControllerList) DeepCopyInto(out *StorageControllerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageControllerList) DeepCopyObject ¶
func (in *StorageControllerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageControllerSpec ¶
type StorageControllerSpec struct {
metav1.GroupVersionKind `json:",inline"`
}
StorageControllerSpec is the k8s spec for a StorageController resource
func (*StorageControllerSpec) DeepCopy ¶
func (in *StorageControllerSpec) DeepCopy() *StorageControllerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageControllerSpec.
func (*StorageControllerSpec) DeepCopyInto ¶
func (in *StorageControllerSpec) DeepCopyInto(out *StorageControllerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageControllerStatus ¶
type StorageControllerStatus struct{}
StorageControllerStatus defines the observed state of StorageController
func (*StorageControllerStatus) DeepCopy ¶
func (in *StorageControllerStatus) DeepCopy() *StorageControllerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageControllerStatus.
func (*StorageControllerStatus) DeepCopyInto ¶
func (in *StorageControllerStatus) DeepCopyInto(out *StorageControllerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageReference ¶
type StorageReference struct { metav1.GroupVersionKind `json:",inline"` Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` }
StorageReference is a reference to a storage configuration
func (*StorageReference) DeepCopy ¶
func (in *StorageReference) DeepCopy() *StorageReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageReference.
func (*StorageReference) DeepCopyInto ¶
func (in *StorageReference) DeepCopyInto(out *StorageReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.