v1alpha1

package
v0.0.0-...-f4472b5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=database.neo4j.org

Package v1alpha1 contains API Schema definitions for the database v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=database.neo4j.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "database.neo4j.org", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

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.

Types

type Backup

type Backup struct {
	Schedule     string    `json:"schedule"`
	Size         string    `json:"size"`
	StorageClass string    `json:"storage-class,omitempty"`
	Resources    Resources `json:"resources"`
}

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MemoryCPU

type MemoryCPU struct {
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

func (*MemoryCPU) DeepCopy

func (in *MemoryCPU) DeepCopy() *MemoryCPU

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryCPU.

func (*MemoryCPU) DeepCopyInto

func (in *MemoryCPU) DeepCopyInto(out *MemoryCPU)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Neo4jCluster

type Neo4jCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   Neo4jClusterSpec   `json:"spec,omitempty"`
	Status Neo4jClusterStatus `json:"status,omitempty"`
}

Neo4jCluster is the Schema for the neo4jclusters API +k8s:openapi-gen=true

func (*Neo4jCluster) CoreServiceName

func (i *Neo4jCluster) CoreServiceName() string

func (*Neo4jCluster) DeepCopy

func (in *Neo4jCluster) DeepCopy() *Neo4jCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Neo4jCluster.

func (*Neo4jCluster) DeepCopyInto

func (in *Neo4jCluster) DeepCopyInto(out *Neo4jCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Neo4jCluster) DeepCopyObject

func (in *Neo4jCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Neo4jCluster) LabelComponentName

func (i *Neo4jCluster) LabelComponentName() string

func (*Neo4jCluster) RandomCorePod

func (i *Neo4jCluster) RandomCorePod() string

func (*Neo4jCluster) ReadReplicaName

func (i *Neo4jCluster) ReadReplicaName() string

func (*Neo4jCluster) SecretStoreName

func (i *Neo4jCluster) SecretStoreName() string

type Neo4jClusterList

type Neo4jClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Neo4jCluster `json:"items"`
}

Neo4jClusterList contains a list of Neo4jCluster

func (*Neo4jClusterList) DeepCopy

func (in *Neo4jClusterList) DeepCopy() *Neo4jClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Neo4jClusterList.

func (*Neo4jClusterList) DeepCopyInto

func (in *Neo4jClusterList) DeepCopyInto(out *Neo4jClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Neo4jClusterList) DeepCopyObject

func (in *Neo4jClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Neo4jClusterSpec

type Neo4jClusterSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	ImageVersion         string             `json:"image-version"`
	ImagePullPolicy      string             `json:"image-pull-policy,omitempty"`
	AdminPassword        string             `json:"admin-password,omitempty"`
	CoreServers          int32              `json:"core-replicas"`
	CoreArguments        map[string]string  `json:"core-args,omitempty"`
	ReadReplicaServers   int32              `json:"read-replica-replicas"`
	ReadReplicaArguments map[string]string  `json:"read-replica-args,omitempty"`
	Resources            Resources          `json:"resources"`
	PersistentStorage    *PersistentStorage `json:"persistent-storage,omitempty"`
	SslCertificates      *SslCertificates   `json:"ssl,omitempty"`
	Backup               *Backup            `json:"backup,omitempty"`
	NodeSelector         map[string]string  `json:"node-selector,omitempty"`
}

Neo4jClusterSpec defines the desired state of Neo4jCluster +k8s:openapi-gen=true

func (*Neo4jClusterSpec) AdminPasswordClearText

func (i *Neo4jClusterSpec) AdminPasswordClearText() (*string, error)

func (*Neo4jClusterSpec) AuthorizationEnabled

func (i *Neo4jClusterSpec) AuthorizationEnabled() bool

func (*Neo4jClusterSpec) DeepCopy

func (in *Neo4jClusterSpec) DeepCopy() *Neo4jClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Neo4jClusterSpec.

func (*Neo4jClusterSpec) DeepCopyInto

func (in *Neo4jClusterSpec) DeepCopyInto(out *Neo4jClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Neo4jClusterSpec) DockerImage

func (i *Neo4jClusterSpec) DockerImage() string

func (*Neo4jClusterSpec) IsCausalCluster

func (i *Neo4jClusterSpec) IsCausalCluster() bool

type Neo4jClusterStatus

type Neo4jClusterStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	CoreStats    string `json:"core-stats,omitempty"`
	ReplicaStats string `json:"replica-stats,omitempty"`
	Leader       string `json:"leader,omitempty"`
	BoltURL      string `json:"bolt-url,omitempty"`
	State        string `json:"state,omitempty"`
	Message      string `json:"message,omitempty"`
}

Neo4jClusterStatus defines the observed state of Neo4jCluster +k8s:openapi-gen=true

func (*Neo4jClusterStatus) DeepCopy

func (in *Neo4jClusterStatus) DeepCopy() *Neo4jClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Neo4jClusterStatus.

func (*Neo4jClusterStatus) DeepCopyInto

func (in *Neo4jClusterStatus) DeepCopyInto(out *Neo4jClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PersistentStorage

type PersistentStorage struct {
	Size         string `json:"size"`
	StorageClass string `json:"storage-class,omitempty"`
	MountPath    string `json:"mount-path,omitempty"`
}

func (*PersistentStorage) DeepCopy

func (in *PersistentStorage) DeepCopy() *PersistentStorage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentStorage.

func (*PersistentStorage) DeepCopyInto

func (in *PersistentStorage) DeepCopyInto(out *PersistentStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resources

type Resources struct {
	Requests MemoryCPU `json:"requests"`
	Limits   MemoryCPU `json:"limits"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SslCertificates

type SslCertificates struct {
	PrivateKey        string `json:"key"`
	PublicCertificate string `json:"certificate"`
}

func (*SslCertificates) DeepCopy

func (in *SslCertificates) DeepCopy() *SslCertificates

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SslCertificates.

func (*SslCertificates) DeepCopyInto

func (in *SslCertificates) DeepCopyInto(out *SslCertificates)

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