Documentation
¶
Overview ¶
Package v1beta3 contains API Schema definitions for the cloud v1beta3 API group +k8s:deepcopy-gen=package,register +groupName=cloud.atomix.io
Package v1beta3 contains API Schema definitions for the k8s v1beta3 API group +k8s:deepcopy-gen=package,register +groupName=cloud.atomix.io
Index ¶
- Variables
- func SetDatabaseDefaults(database *Database)
- type Database
- type DatabaseList
- type DatabaseSpec
- type DatabaseStatus
- type Partition
- type PartitionList
- type PartitionSpec
- type PartitionStatus
- type StorageClassReference
- type StorageController
- type StorageControllerList
- type StorageControllerSpec
- type StorageControllerStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "cloud.atomix.io", Version: "v1beta3"} // 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 SetDatabaseDefaults ¶
func SetDatabaseDefaults(database *Database)
SetDatabaseDefaults sets the defaults for the given Database
Types ¶
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 {
// Partitions is the number of partitions in the database
Partitions int32 `json:"partitions,omitempty"`
// StorageClass is a reference to the storage class
StorageClass StorageClassReference `json:"storageClass,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 {
// ReadyPartitions is the number of clusters in the database that have been marked ready
ReadyPartitions int32 `json:"readyPartitions,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 is the partition identifier
PartitionID int32 `json:"partitionId,omitempty"`
// ServiceName is the partition service name
ServiceName string `json:"serviceName,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 StorageClassReference ¶
type StorageClassReference struct {
metav1.GroupVersionKind `json:",inline"`
Namespace string `json:"namespace,omitempty"`
Name string `json:"name,omitempty"`
}
StorageClassReference is a reference to a storage configuration
func (*StorageClassReference) DeepCopy ¶
func (in *StorageClassReference) DeepCopy() *StorageClassReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassReference.
func (*StorageClassReference) DeepCopyInto ¶
func (in *StorageClassReference) DeepCopyInto(out *StorageClassReference)
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"`
// Type is the storage controller type
Type StorageControllerSpec `json:"type,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.