v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cassandra v1alpha1 API group +kubebuilder:object:generate=true +groupName=cassandra.k8ssandra.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cassandra.k8ssandra.io", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type BackupType added in v0.4.0

type BackupType string

An enum of the possible modes for medusa backups

const (
	FullBackup         BackupType = "full"
	DifferentialBackup BackupType = "differential"
)

type CassandraBackup

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

	Spec   CassandraBackupSpec   `json:"spec,omitempty"`
	Status CassandraBackupStatus `json:"status,omitempty"`
}

CassandraBackup is the Schema for the cassandrabackups API

func (*CassandraBackup) DeepCopy

func (in *CassandraBackup) DeepCopy() *CassandraBackup

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

func (*CassandraBackup) DeepCopyInto

func (in *CassandraBackup) DeepCopyInto(out *CassandraBackup)

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

func (*CassandraBackup) DeepCopyObject

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

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

type CassandraBackupList

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

CassandraBackupList contains a list of CassandraBackup

func (*CassandraBackupList) DeepCopy

func (in *CassandraBackupList) DeepCopy() *CassandraBackupList

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

func (*CassandraBackupList) DeepCopyInto

func (in *CassandraBackupList) DeepCopyInto(out *CassandraBackupList)

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

func (*CassandraBackupList) DeepCopyObject

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

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

type CassandraBackupSpec

type CassandraBackupSpec struct {
	// The name of the backup.
	// TODO document format of generated name
	Name string `json:"name,omitempty"`

	// The name of the CassandraDatacenter to back up
	CassandraDatacenter string `json:"cassandraDatacenter"`

	// The type of the backup: "full" or "differential"
	// +kubebuilder:validation:Enum=differential;full;
	// +kubebuilder:default:=differential
	Type BackupType `json:"backupType,omitempty"`
}

CassandraBackupSpec defines the desired state of CassandraBackup

func (*CassandraBackupSpec) DeepCopy

func (in *CassandraBackupSpec) DeepCopy() *CassandraBackupSpec

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

func (*CassandraBackupSpec) DeepCopyInto

func (in *CassandraBackupSpec) DeepCopyInto(out *CassandraBackupSpec)

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

type CassandraBackupStatus

type CassandraBackupStatus struct {
	CassdcTemplateSpec *CassandraDatacenterTemplateSpec `json:"cassdcTemplateSpec,omitempty"`

	StartTime metav1.Time `json:"startTime,omitempty"`

	FinishTime metav1.Time `json:"finishTime,omitempty"`

	InProgress []string `json:"inProgress,omitempty"`

	Finished []string `json:"finished,omitempty"`

	Failed []string `json:"failed,omitempty"`
}

CassandraBackupStatus defines the observed state of CassandraBackup

func (*CassandraBackupStatus) DeepCopy

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

func (*CassandraBackupStatus) DeepCopyInto

func (in *CassandraBackupStatus) DeepCopyInto(out *CassandraBackupStatus)

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

type CassandraDatacenterConfig

type CassandraDatacenterConfig struct {
	// The name to give the new, restored CassandraDatacenter
	Name string `json:"name"`

	// The name to give the C* cluster.
	ClusterName string `json:"clusterName"`
}

func (*CassandraDatacenterConfig) DeepCopy

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

func (*CassandraDatacenterConfig) DeepCopyInto

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

type CassandraDatacenterTemplateSpec

type CassandraDatacenterTemplateSpec struct {
	// Standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec cassdcapi.CassandraDatacenterSpec `json:"spec"`
}

func (*CassandraDatacenterTemplateSpec) DeepCopy

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

func (*CassandraDatacenterTemplateSpec) DeepCopyInto

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

type CassandraRestore

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

	Spec   CassandraRestoreSpec   `json:"spec,omitempty"`
	Status CassandraRestoreStatus `json:"status,omitempty"`
}

CassandraRestore is the Schema for the cassandrarestores API

func (*CassandraRestore) DeepCopy

func (in *CassandraRestore) DeepCopy() *CassandraRestore

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

func (*CassandraRestore) DeepCopyInto

func (in *CassandraRestore) DeepCopyInto(out *CassandraRestore)

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

func (*CassandraRestore) DeepCopyObject

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

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

type CassandraRestoreList

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

CassandraRestoreList contains a list of CassandraRestore

func (*CassandraRestoreList) DeepCopy

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

func (*CassandraRestoreList) DeepCopyInto

func (in *CassandraRestoreList) DeepCopyInto(out *CassandraRestoreList)

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

func (*CassandraRestoreList) DeepCopyObject

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

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

type CassandraRestoreSpec

type CassandraRestoreSpec struct {
	// The name of the CassandraBackup to restore
	Backup string `json:"backup"`

	// When true the restore will be performed on the source cluster from which the backup
	// was taken. There will be a rolling restart of the source cluster.
	InPlace bool `json:"inPlace,omitEmpty"`

	// When set to true, the cluster is shutdown before the restore is applied. This is necessary
	// process if there are schema changes between the backup and current schema. Recommended.
	Shutdown bool `json:"shutdown,omitEmpty"`

	CassandraDatacenter CassandraDatacenterConfig `json:"cassandraDatacenter"`
}

CassandraRestoreSpec defines the desired state of CassandraRestore

func (*CassandraRestoreSpec) DeepCopy

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

func (*CassandraRestoreSpec) DeepCopyInto

func (in *CassandraRestoreSpec) DeepCopyInto(out *CassandraRestoreSpec)

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

type CassandraRestoreStatus

type CassandraRestoreStatus struct {
	// A unique key that identifies the restore operation.
	RestoreKey string `json:"restoreKey"`

	StartTime metav1.Time `json:"startTime,omitempty"`

	FinishTime metav1.Time `json:"finishTime,omitempty"`

	DatacenterStopped metav1.Time `json:"datacenterStopped,omitempty"`

	InProgress []string `json:"inProgress,omitempty"`

	Finished []string `json:"finished,omitempty"`

	Failed []string `json:"failed,omitempty"`
}

CassandraRestoreStatus defines the observed state of CassandraRestore

func (*CassandraRestoreStatus) DeepCopy

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

func (*CassandraRestoreStatus) DeepCopyInto

func (in *CassandraRestoreStatus) DeepCopyInto(out *CassandraRestoreStatus)

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