Help us shape the future of Go! Take the 2026 Go Developer Survey

v1alpha1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 5 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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.

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

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"`
	MaxUnavailable int    `json:"maxUnavailable,omitempty"`
}

CockroachDBClusterSpec defines the desired state of the CockroachDB Cluster

func (*CockroachDBClusterSpec) DeepCopy

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL