Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the db v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=db.smartmachine.io
Package v1alpha1 contains API Schema definitions for the db v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=db.smartmachine.io
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type CockroachDB
- type CockroachDBClientSpec
- type CockroachDBClusterSpec
- type CockroachDBDashboardSpec
- type CockroachDBList
- type CockroachDBNode
- type CockroachDBSpec
- type CockroachDBStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "db.smartmachine.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CockroachDB ¶
type CockroachDB struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CockroachDBSpec `json:"spec,omitempty"` Status CockroachDBStatus `json:"status,omitempty"` }
CockroachDB is the Schema for the cockroachdbs API
func (*CockroachDB) DeepCopy ¶
func (in *CockroachDB) DeepCopy() *CockroachDB
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDB.
func (*CockroachDB) DeepCopyInto ¶
func (in *CockroachDB) DeepCopyInto(out *CockroachDB)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CockroachDB) DeepCopyObject ¶
func (in *CockroachDB) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CockroachDBClientSpec ¶
type CockroachDBClientSpec struct {
Enabled bool `json:"enable,omitempty"`
}
CockroachDBClientSpec defines the desired state of CockroachDB client
func (*CockroachDBClientSpec) DeepCopy ¶
func (in *CockroachDBClientSpec) DeepCopy() *CockroachDBClientSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBClientSpec.
func (*CockroachDBClientSpec) DeepCopyInto ¶
func (in *CockroachDBClientSpec) DeepCopyInto(out *CockroachDBClientSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CockroachDBClusterSpec ¶
type CockroachDBClusterSpec struct { Image string `json:"image,omitempty"` // Size is the number of nodes the cluster should have Size int32 `json:"size,omitempty"` RequestMemory string `json:"requestMemory,omitempty"` LimitMemory string `json:"limitMemory,omitempty"` StoragePerNode string `json:"storagePerNode,omitempty"` }
CockroachDBClusterSpec defines the desired state of the CockroachDB Cluster
func (*CockroachDBClusterSpec) DeepCopy ¶
func (in *CockroachDBClusterSpec) DeepCopy() *CockroachDBClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBClusterSpec.
func (*CockroachDBClusterSpec) DeepCopyInto ¶
func (in *CockroachDBClusterSpec) DeepCopyInto(out *CockroachDBClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CockroachDBDashboardSpec ¶
type CockroachDBDashboardSpec struct { Enabled bool `json:"enable,omitempty"` NodePort int32 `json:"nodePort,omitempty"` }
CockroachDBDashboardSpec defines the desired state of CockroachDB Dashboard
func (*CockroachDBDashboardSpec) DeepCopy ¶
func (in *CockroachDBDashboardSpec) DeepCopy() *CockroachDBDashboardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBDashboardSpec.
func (*CockroachDBDashboardSpec) DeepCopyInto ¶
func (in *CockroachDBDashboardSpec) DeepCopyInto(out *CockroachDBDashboardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CockroachDBList ¶
type CockroachDBList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CockroachDB `json:"items"` }
CockroachDBList contains a list of CockroachDB
func (*CockroachDBList) DeepCopy ¶
func (in *CockroachDBList) DeepCopy() *CockroachDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBList.
func (*CockroachDBList) DeepCopyInto ¶
func (in *CockroachDBList) DeepCopyInto(out *CockroachDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CockroachDBList) DeepCopyObject ¶
func (in *CockroachDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CockroachDBNode ¶
type CockroachDBNode struct { Name string `json:"name"` Ready bool `json:"ready"` Serving bool `json:"serving"` }
CockroachDBNodeList
func (*CockroachDBNode) DeepCopy ¶
func (in *CockroachDBNode) DeepCopy() *CockroachDBNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBNode.
func (*CockroachDBNode) DeepCopyInto ¶
func (in *CockroachDBNode) DeepCopyInto(out *CockroachDBNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CockroachDBSpec ¶
type CockroachDBSpec struct { Cluster CockroachDBClusterSpec `json:"cluster,omitempty"` Client CockroachDBClientSpec `json:"client,omitempty"` Dashboard CockroachDBDashboardSpec `json:"dashboard,omitempty"` }
CockroachDBSpec defines the desired state of CockroachDB
func (*CockroachDBSpec) DeepCopy ¶
func (in *CockroachDBSpec) DeepCopy() *CockroachDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBSpec.
func (*CockroachDBSpec) DeepCopyInto ¶
func (in *CockroachDBSpec) DeepCopyInto(out *CockroachDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CockroachDBStatus ¶
type CockroachDBStatus struct { // Nodes are the names of the cockroachdb pods Nodes []CockroachDBNode `json:"nodes,omitempty"` State string `json:"state,omitempty"` }
CockroachDBStatus defines the observed state of CockroachDB
func (*CockroachDBStatus) DeepCopy ¶
func (in *CockroachDBStatus) DeepCopy() *CockroachDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CockroachDBStatus.
func (*CockroachDBStatus) DeepCopyInto ¶
func (in *CockroachDBStatus) DeepCopyInto(out *CockroachDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.