v1alpha1

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=ui.stash.appscode.com

Package v1alpha1 contains API Schema definitions for the kubedb v1alpha1 API group +kubebuilder:object:generate=true +groupName=ui.stash.appscode.com

Index

Constants

View Source
const (
	ResourceKindBackupOverview = "BackupOverview"
	ResourceBackupOverview     = "backupoverview"
	ResourceBackupOverviews    = "backupoverviews"
)
View Source
const (
	BackupStatusActive = "Active"
	BackupStatusPaused = "Paused"
)

Variables

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

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

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

Functions

Types

type BackupOverview

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

	Spec   BackupOverviewSpec            `json:"spec,omitempty"`
	Status api.BackupConfigurationStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*BackupOverview) DeepCopy

func (in *BackupOverview) DeepCopy() *BackupOverview

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

func (*BackupOverview) DeepCopyInto

func (in *BackupOverview) DeepCopyInto(out *BackupOverview)

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

func (*BackupOverview) DeepCopyObject

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

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

type BackupOverviewList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*BackupOverviewList) DeepCopy

func (in *BackupOverviewList) DeepCopy() *BackupOverviewList

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

func (*BackupOverviewList) DeepCopyInto

func (in *BackupOverviewList) DeepCopyInto(out *BackupOverviewList)

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

func (*BackupOverviewList) DeepCopyObject

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

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

type BackupOverviewSpec

type BackupOverviewSpec struct {
	Schedule           string       `json:"schedule,omitempty"`
	Status             BackupStatus `json:"status,omitempty"`
	LastBackupTime     *metav1.Time `json:"lastBackupTime,omitempty"`
	UpcomingBackupTime *metav1.Time `json:"upcomingBackupTime,omitempty"`
	Repository         string       `json:"repository,omitempty"`
	DataSize           string       `json:"dataSize,omitempty"`
	NumberOfSnapshots  int64        `json:"numberOfSnapshots,omitempty"`
	DataIntegrity      bool         `json:"dataIntegrity,omitempty"`
}

BackupOverviewSpec defines the desired state of BackupOverview

func (*BackupOverviewSpec) DeepCopy

func (in *BackupOverviewSpec) DeepCopy() *BackupOverviewSpec

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

func (*BackupOverviewSpec) DeepCopyInto

func (in *BackupOverviewSpec) DeepCopyInto(out *BackupOverviewSpec)

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

type BackupStatus

type BackupStatus string

+kubebuilder:validation:Enum=Active;Paused

type MongoDBMode

type MongoDBMode string

+kubebuilder:validation:Enum=Standalone;ReplicaSet;Sharded

const (
	MongoDBModeStandalone MongoDBMode = "Standalone"
	MongoDBModeReplicaSet MongoDBMode = "ReplicaSet"
	MongoDBModeSharded    MongoDBMode = "Sharded"
)

type MongoDBOperation

type MongoDBOperation string

+kubebuilder:validation:Enum=QUERY;INSERT;UPDATE;DELETE;GETMORE

const (
	MongoDBOperationQuery   MongoDBOperation = "QUERY"
	MongoDBOperationInsert  MongoDBOperation = "INSERT"
	MongoDBOperationUpdate  MongoDBOperation = "UPDATE"
	MongoDBOperationDelete  MongoDBOperation = "DELETE"
	MongoDBOperationGetMore MongoDBOperation = "GETMORE"
)

Jump to

Keyboard shortcuts

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