v1alpha1

package
v0.47.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +kubebuilder:object:generate=true +groupName=archiver.kubedb.com

Index

Constants

View Source
const (
	ResourceKindMariaDBArchiver     = "MariaDBArchiver"
	ResourceSingularMariaDBArchiver = "mariadbarchiver"
	ResourcePluralMariaDBArchiver   = "mariadbarchivers"
)
View Source
const (
	ResourceKindMongoDBArchiver     = "MongoDBArchiver"
	ResourceSingularMongoDBArchiver = "mongodbarchiver"
	ResourcePluralMongoDBArchiver   = "mongodbarchivers"
)
View Source
const (
	ResourceKindMSSQLServerArchiver     = "MSSQLServerArchiver"
	ResourceSingularMSSQLServerArchiver = "mssqlserverarchiver"
	ResourcePluralMSSQLServerArchiver   = "mssqlserverarchivers"
)
View Source
const (
	ResourceKindMySQLArchiver     = "MySQLArchiver"
	ResourceSingularMySQLArchiver = "mysqlarchiver"
	ResourcePluralMySQLArchiver   = "mysqlarchivers"
)
View Source
const (
	ResourceKindPostgresArchiver     = "PostgresArchiver"
	ResourceSingularPostgresArchiver = "postgresarchiver"
	ResourcePluralPostgresArchiver   = "postgresarchivers"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "archiver.kubedb.com", 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

func GetFinalizer

func GetFinalizer() string

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Accessor added in v0.47.0

type Accessor interface {
	GetObjectMeta() metav1.ObjectMeta
	GetConsumers() *api.AllowedConsumers
}

type ArchiverDatabaseRef

type ArchiverDatabaseRef struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

func (*ArchiverDatabaseRef) DeepCopy

func (in *ArchiverDatabaseRef) DeepCopy() *ArchiverDatabaseRef

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

func (*ArchiverDatabaseRef) DeepCopyInto

func (in *ArchiverDatabaseRef) DeepCopyInto(out *ArchiverDatabaseRef)

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

type BackupStorage

type BackupStorage struct {
	Ref *kmapi.ObjectReference `json:"ref,omitempty"`
	// +optional
	SubDir string `json:"subDir,omitempty"`
}

func (*BackupStorage) DeepCopy

func (in *BackupStorage) DeepCopy() *BackupStorage

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

func (*BackupStorage) DeepCopyInto

func (in *BackupStorage) DeepCopyInto(out *BackupStorage)

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

type DeletionPolicy

type DeletionPolicy string

+kubebuilder:validation:Enum=Delete;WipeOut;DoNotDelete

const (
	// Deletes archiver, removes the backup jobs and walg sidecar containers, but keeps the backup data
	DeletionPolicyDelete DeletionPolicy = "Delete"
	// Deletes everything including the backup data
	DeletionPolicyWipeOut DeletionPolicy = "WipeOut"
)

type FullBackupOptions

type FullBackupOptions struct {
	// +kubebuilder:default:=VolumeSnapshotter
	Driver apis.Driver `json:"driver"`
	// +optional
	Task *Task `json:"task,omitempty"`
	// +optional
	Scheduler *SchedulerOptions `json:"scheduler,omitempty"`
	// +optional
	ContainerRuntimeSettings *ofst.ContainerRuntimeSettings `json:"containerRuntimeSettings,omitempty"`
	// +optional
	JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"`
	// +optional
	RetryConfig *stashcoreapi.RetryConfig `json:"retryConfig,omitempty"`
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// +optional
	SessionHistoryLimit int32 `json:"sessionHistoryLimit,omitempty"`
}

func (*FullBackupOptions) DeepCopy

func (in *FullBackupOptions) DeepCopy() *FullBackupOptions

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

func (*FullBackupOptions) DeepCopyInto

func (in *FullBackupOptions) DeepCopyInto(out *FullBackupOptions)

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

type GenericSecretReference

type GenericSecretReference struct {
	// Name of the provider secret
	Name string `json:"name"`

	EnvToSecretKey map[string]string `json:"envToSecretKey"`
}

func (*GenericSecretReference) DeepCopy

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

func (*GenericSecretReference) DeepCopyInto

func (in *GenericSecretReference) DeepCopyInto(out *GenericSecretReference)

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

type ListAccessor added in v0.47.0

type ListAccessor interface {
	GetItems() []Accessor
}

type MSSQLServerArchiver added in v0.47.0

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

	Spec   MSSQLServerArchiverSpec   `json:"spec,omitempty"`
	Status MSSQLServerArchiverStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mssqlserverarchivers,singular=mssqlserverarchiver,shortName=msarchiver,categories={archiver,kubedb,appscode} +kubebuilder:subresource:status

func (MSSQLServerArchiver) CustomResourceDefinition added in v0.47.0

func (_ MSSQLServerArchiver) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MSSQLServerArchiver) DeepCopy added in v0.47.0

func (in *MSSQLServerArchiver) DeepCopy() *MSSQLServerArchiver

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

func (*MSSQLServerArchiver) DeepCopyInto added in v0.47.0

func (in *MSSQLServerArchiver) DeepCopyInto(out *MSSQLServerArchiver)

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

func (*MSSQLServerArchiver) DeepCopyObject added in v0.47.0

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

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

type MSSQLServerArchiverList added in v0.47.0

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*MSSQLServerArchiverList) DeepCopy added in v0.47.0

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

func (*MSSQLServerArchiverList) DeepCopyInto added in v0.47.0

func (in *MSSQLServerArchiverList) DeepCopyInto(out *MSSQLServerArchiverList)

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

func (*MSSQLServerArchiverList) DeepCopyObject added in v0.47.0

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

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

type MSSQLServerArchiverSpec added in v0.47.0

type MSSQLServerArchiverSpec struct {
	// Databases define which MSSQLServer databases are allowed to consume this archiver
	Databases *dbapi.AllowedConsumers `json:"databases"`
	// Pause defines if the backup process should be paused or not
	// +optional
	Pause bool `json:"pause,omitempty"`
	// RetentionPolicy field is the RetentionPolicy of the backupConfiguration's backend
	// +optional
	RetentionPolicy *kmapi.ObjectReference `json:"retentionPolicy"`
	// FullBackup defines the sessionConfig of the fullBackup
	// This options will eventually go to the full-backup job's yaml
	// +optional
	FullBackup *FullBackupOptions `json:"fullBackup"`
	// WalBackup defines the sessionConfig of the walBackup
	// This options will eventually go to the sidekick specification
	// +optional
	WalBackup *WalBackupOptions `json:"walBackup"`
	// ManifestBackup defines the sessionConfig of the manifestBackup
	// This options will eventually go to the manifest-backup job's yaml
	// +optional
	ManifestBackup *ManifestBackupOptions `json:"manifestBackup"`
	// +optional
	EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret"`
	// BackupStorage is the backend storageRef of the BackupConfiguration
	// +optional
	BackupStorage *BackupStorage `json:"backupStorage"`
	// DeletionPolicy defines the created repository's deletionPolicy
	// +optional
	DeletionPolicy *DeletionPolicy `json:"deletionPolicy"`
}

MSSQLServerArchiverSpec defines the desired state of MSSQLServerArchiver

func (*MSSQLServerArchiverSpec) DeepCopy added in v0.47.0

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

func (*MSSQLServerArchiverSpec) DeepCopyInto added in v0.47.0

func (in *MSSQLServerArchiverSpec) DeepCopyInto(out *MSSQLServerArchiverSpec)

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

type MSSQLServerArchiverStatus added in v0.47.0

type MSSQLServerArchiverStatus struct {
	// Specifies the information of all the databases managed by this archiver
	// +optional
	DatabaseRefs []ArchiverDatabaseRef `json:"databaseRefs,omitempty"`
}

MSSQLServerArchiverStatus defines the observed state of MSSQLServerArchiver

func (*MSSQLServerArchiverStatus) DeepCopy added in v0.47.0

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

func (*MSSQLServerArchiverStatus) DeepCopyInto added in v0.47.0

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

type ManifestBackupOptions

type ManifestBackupOptions struct {
	// +optional
	Scheduler *SchedulerOptions `json:"scheduler,omitempty"`
	// +optional
	ContainerRuntimeSettings *ofst.ContainerRuntimeSettings `json:"containerRuntimeSettings,omitempty"`
	// +optional
	JobTemplate *ofst.PodTemplateSpec `json:"jobTemplate,omitempty"`
	// +optional
	RetryConfig *stashcoreapi.RetryConfig `json:"retryConfig,omitempty"`
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// +optional
	SessionHistoryLimit int32 `json:"sessionHistoryLimit,omitempty"`
}

func (*ManifestBackupOptions) DeepCopy

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

func (*ManifestBackupOptions) DeepCopyInto

func (in *ManifestBackupOptions) DeepCopyInto(out *ManifestBackupOptions)

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

type MariaDBArchiver added in v0.44.0

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

	Spec   MariaDBArchiverSpec   `json:"spec,omitempty"`
	Status MariaDBArchiverStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mariadbarchivers,singular=mariadbarchiver,shortName=mdarchiver,categories={archiver,kubedb,appscode} +kubebuilder:subresource:status

func (MariaDBArchiver) CustomResourceDefinition added in v0.44.0

func (_ MariaDBArchiver) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MariaDBArchiver) DeepCopy added in v0.44.0

func (in *MariaDBArchiver) DeepCopy() *MariaDBArchiver

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

func (*MariaDBArchiver) DeepCopyInto added in v0.44.0

func (in *MariaDBArchiver) DeepCopyInto(out *MariaDBArchiver)

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

func (*MariaDBArchiver) DeepCopyObject added in v0.44.0

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

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

func (*MariaDBArchiver) GetConsumers added in v0.47.0

func (m *MariaDBArchiver) GetConsumers() *api.AllowedConsumers

func (*MariaDBArchiver) GetObjectMeta added in v0.47.0

func (m *MariaDBArchiver) GetObjectMeta() metav1.ObjectMeta

type MariaDBArchiverList added in v0.44.0

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*MariaDBArchiverList) DeepCopy added in v0.44.0

func (in *MariaDBArchiverList) DeepCopy() *MariaDBArchiverList

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

func (*MariaDBArchiverList) DeepCopyInto added in v0.44.0

func (in *MariaDBArchiverList) DeepCopyInto(out *MariaDBArchiverList)

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

func (*MariaDBArchiverList) DeepCopyObject added in v0.44.0

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

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

func (*MariaDBArchiverList) GetItems added in v0.47.0

func (l *MariaDBArchiverList) GetItems() []Accessor

type MariaDBArchiverSpec added in v0.44.0

type MariaDBArchiverSpec struct {
	// Databases define which MariaDB databases are allowed to consume this archiver
	Databases *dbapi.AllowedConsumers `json:"databases"`
	// Pause defines if the backup process should be paused or not
	// +optional
	Pause bool `json:"pause,omitempty"`
	// RetentionPolicy refers to a RetentionPolicy CR which defines how to cleanup the old Snapshots
	// +optional
	RetentionPolicy *kmapi.ObjectReference `json:"retentionPolicy"`
	// FullBackup defines the session configuration for the full backup
	// +optional
	FullBackup *FullBackupOptions `json:"fullBackup"`
	// WalBackup defines the sidekick configuration for the wal backup
	// +optional
	WalBackup *WalBackupOptions `json:"walBackup"`
	// ManifestBackup defines the session configuration for the manifest backup
	// This options will eventually go to the manifest-backup job's yaml
	// +optional
	ManifestBackup *ManifestBackupOptions `json:"manifestBackup"`
	// EncryptionSecret refers to the Secret containing the encryption key used to encode backed-up data.
	// +optional
	EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret"`
	// BackupStorage holds the storage information for storing backup data
	// +optional
	BackupStorage *BackupStorage `json:"backupStorage"`
	// DeletionPolicy defines the DeletionPolicy for the backup repository
	// +optional
	DeletionPolicy *DeletionPolicy `json:"deletionPolicy"`
}

MariaDBArchiverSpec defines the desired state of MariaDBArchiver

func (*MariaDBArchiverSpec) DeepCopy added in v0.44.0

func (in *MariaDBArchiverSpec) DeepCopy() *MariaDBArchiverSpec

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

func (*MariaDBArchiverSpec) DeepCopyInto added in v0.44.0

func (in *MariaDBArchiverSpec) DeepCopyInto(out *MariaDBArchiverSpec)

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

type MariaDBArchiverStatus added in v0.44.0

type MariaDBArchiverStatus struct {
	// Specifies the information of all the databases managed by this archiver
	// +optional
	DatabaseRefs []ArchiverDatabaseRef `json:"databaseRefs,omitempty"`
}

MariaDBArchiverStatus defines the observed state of MariaDBArchiver

func (*MariaDBArchiverStatus) DeepCopy added in v0.44.0

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

func (*MariaDBArchiverStatus) DeepCopyInto added in v0.44.0

func (in *MariaDBArchiverStatus) DeepCopyInto(out *MariaDBArchiverStatus)

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

type MongoDBArchiver

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

	Spec   MongoDBArchiverSpec   `json:"spec,omitempty"`
	Status MongoDBArchiverStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mongodbarchivers,singular=mongodbarchiver,shortName=mgarchiver,categories={archiver,kubedb,appscode} +kubebuilder:subresource:status

func (MongoDBArchiver) CustomResourceDefinition

func (_ MongoDBArchiver) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MongoDBArchiver) DeepCopy

func (in *MongoDBArchiver) DeepCopy() *MongoDBArchiver

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

func (*MongoDBArchiver) DeepCopyInto

func (in *MongoDBArchiver) DeepCopyInto(out *MongoDBArchiver)

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

func (*MongoDBArchiver) DeepCopyObject

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

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

func (*MongoDBArchiver) GetConsumers added in v0.47.0

func (m *MongoDBArchiver) GetConsumers() *api.AllowedConsumers

func (*MongoDBArchiver) GetObjectMeta added in v0.47.0

func (m *MongoDBArchiver) GetObjectMeta() metav1.ObjectMeta

type MongoDBArchiverList

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*MongoDBArchiverList) DeepCopy

func (in *MongoDBArchiverList) DeepCopy() *MongoDBArchiverList

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

func (*MongoDBArchiverList) DeepCopyInto

func (in *MongoDBArchiverList) DeepCopyInto(out *MongoDBArchiverList)

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

func (*MongoDBArchiverList) DeepCopyObject

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

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

func (MongoDBArchiverList) GetItems added in v0.47.0

func (l MongoDBArchiverList) GetItems() []Accessor

type MongoDBArchiverSpec

type MongoDBArchiverSpec struct {
	// Databases define which MongoDB databases are allowed to consume this archiver
	Databases *dbapi.AllowedConsumers `json:"databases"`
	// Pause defines if the backup process should be paused or not
	// +optional
	Pause bool `json:"pause,omitempty"`
	// RetentionPolicy field is the RetentionPolicy of the backupConfiguration's backend
	// +optional
	RetentionPolicy *kmapi.ObjectReference `json:"retentionPolicy"`
	// FullBackup defines the sessionConfig of the fullBackup
	// This options will eventually go to the full-backup job's yaml
	// +optional
	FullBackup *FullBackupOptions `json:"fullBackup"`
	// WalBackup defines the config of the WalBackup
	// +optional
	WalBackup *WalBackupOptions `json:"walBackup"`
	// ManifestBackup defines the sessionConfig of the manifestBackup
	// This options will eventually go to the manifest-backup job's yaml
	// +optional
	ManifestBackup *ManifestBackupOptions `json:"manifestBackup"`
	// +optional
	EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret"`
	// BackupStorage is the backend storageRef of the BackupConfiguration
	// +optional
	BackupStorage *BackupStorage `json:"backupStorage"`
	// DeletionPolicy defines the created repository's deletionPolicy
	// +optional
	DeletionPolicy *DeletionPolicy `json:"deletionPolicy"`
}

MongoDBArchiverSpec defines the desired state of MongoDBArchiver

func (*MongoDBArchiverSpec) DeepCopy

func (in *MongoDBArchiverSpec) DeepCopy() *MongoDBArchiverSpec

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

func (*MongoDBArchiverSpec) DeepCopyInto

func (in *MongoDBArchiverSpec) DeepCopyInto(out *MongoDBArchiverSpec)

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

type MongoDBArchiverStatus

type MongoDBArchiverStatus struct {
	// Specifies the information of all the databases managed by this archiver
	// +optional
	DatabaseRefs []ArchiverDatabaseRef `json:"databaseRefs,omitempty"`
}

MongoDBArchiverStatus defines the observed state of MongoDBArchiver

func (*MongoDBArchiverStatus) DeepCopy

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

func (*MongoDBArchiverStatus) DeepCopyInto

func (in *MongoDBArchiverStatus) DeepCopyInto(out *MongoDBArchiverStatus)

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

type MySQLArchiver added in v0.40.0

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

	Spec   MySQLArchiverSpec   `json:"spec,omitempty"`
	Status MySQLArchiverStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=mysqlarchivers,singular=mysqlarchiver,shortName=myarchiver,categories={archiver,kubedb,appscode} +kubebuilder:subresource:status

func (MySQLArchiver) CustomResourceDefinition added in v0.40.0

func (_ MySQLArchiver) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*MySQLArchiver) DeepCopy added in v0.40.0

func (in *MySQLArchiver) DeepCopy() *MySQLArchiver

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

func (*MySQLArchiver) DeepCopyInto added in v0.40.0

func (in *MySQLArchiver) DeepCopyInto(out *MySQLArchiver)

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

func (*MySQLArchiver) DeepCopyObject added in v0.40.0

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

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

func (*MySQLArchiver) GetConsumers added in v0.47.0

func (m *MySQLArchiver) GetConsumers() *api.AllowedConsumers

func (*MySQLArchiver) GetObjectMeta added in v0.47.0

func (m *MySQLArchiver) GetObjectMeta() metav1.ObjectMeta

type MySQLArchiverList added in v0.40.0

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*MySQLArchiverList) DeepCopy added in v0.40.0

func (in *MySQLArchiverList) DeepCopy() *MySQLArchiverList

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

func (*MySQLArchiverList) DeepCopyInto added in v0.40.0

func (in *MySQLArchiverList) DeepCopyInto(out *MySQLArchiverList)

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

func (*MySQLArchiverList) DeepCopyObject added in v0.40.0

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

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

func (MySQLArchiverList) GetItems added in v0.47.0

func (l MySQLArchiverList) GetItems() []Accessor

type MySQLArchiverSpec added in v0.40.0

type MySQLArchiverSpec struct {
	// Databases define which Postgres databases are allowed to consume this archiver
	Databases *dbapi.AllowedConsumers `json:"databases"`
	// Pause defines if the backup process should be paused or not
	// +optional
	Pause bool `json:"pause,omitempty"`
	// RetentionPolicy field is the RetentionPolicy of the backupConfiguration's backend
	// +optional
	RetentionPolicy *kmapi.ObjectReference `json:"retentionPolicy"`
	// FullBackup defines the sessionConfig of the fullBackup
	// This options will eventually go to the full-backup job's yaml
	// +optional
	FullBackup *FullBackupOptions `json:"fullBackup"`
	// WalBackup defines the sessionConfig of the walBackup
	// This options will eventually go to the sidekick specification
	// +optional
	WalBackup *WalBackupOptions `json:"walBackup"`
	// ManifestBackup defines the sessionConfig of the manifestBackup
	// This options will eventually go to the manifest-backup job's yaml
	// +optional
	ManifestBackup *ManifestBackupOptions `json:"manifestBackup"`
	// +optional
	EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret"`
	// BackupStorage is the backend storageRef of the BackupConfiguration
	// +optional
	BackupStorage *BackupStorage `json:"backupStorage"`
	// DeletionPolicy defines the created repository's deletionPolicy
	// +optional
	DeletionPolicy *DeletionPolicy `json:"deletionPolicy"`
}

MySQLArchiverSpec defines the desired state of MySQLArchiver

func (*MySQLArchiverSpec) DeepCopy added in v0.40.0

func (in *MySQLArchiverSpec) DeepCopy() *MySQLArchiverSpec

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

func (*MySQLArchiverSpec) DeepCopyInto added in v0.40.0

func (in *MySQLArchiverSpec) DeepCopyInto(out *MySQLArchiverSpec)

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

type MySQLArchiverStatus added in v0.40.0

type MySQLArchiverStatus struct {
	// Specifies the information of all the databases managed by this archiver
	// +optional
	DatabaseRefs []ArchiverDatabaseRef `json:"databaseRefs,omitempty"`
}

MySQLArchiverStatus defines the observed state of MySQLArchiver

func (*MySQLArchiverStatus) DeepCopy added in v0.40.0

func (in *MySQLArchiverStatus) DeepCopy() *MySQLArchiverStatus

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

func (*MySQLArchiverStatus) DeepCopyInto added in v0.40.0

func (in *MySQLArchiverStatus) DeepCopyInto(out *MySQLArchiverStatus)

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

type PostgresArchiver

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

	Spec   PostgresArchiverSpec   `json:"spec,omitempty"`
	Status PostgresArchiverStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=postgresarchivers,singular=postgresarchiver,shortName=pgarchiver,categories={archiver,kubedb,appscode} +kubebuilder:subresource:status

func (PostgresArchiver) CustomResourceDefinition

func (_ PostgresArchiver) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*PostgresArchiver) DeepCopy

func (in *PostgresArchiver) DeepCopy() *PostgresArchiver

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

func (*PostgresArchiver) DeepCopyInto

func (in *PostgresArchiver) DeepCopyInto(out *PostgresArchiver)

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

func (*PostgresArchiver) DeepCopyObject

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

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

func (*PostgresArchiver) GetConsumers added in v0.47.0

func (m *PostgresArchiver) GetConsumers() *api.AllowedConsumers

func (*PostgresArchiver) GetObjectMeta added in v0.47.0

func (m *PostgresArchiver) GetObjectMeta() metav1.ObjectMeta

type PostgresArchiverList

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

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PostgresArchiverList) DeepCopy

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

func (*PostgresArchiverList) DeepCopyInto

func (in *PostgresArchiverList) DeepCopyInto(out *PostgresArchiverList)

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

func (*PostgresArchiverList) DeepCopyObject

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

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

func (PostgresArchiverList) GetItems added in v0.47.0

func (l PostgresArchiverList) GetItems() []Accessor

type PostgresArchiverSpec

type PostgresArchiverSpec struct {
	// Databases define which Postgres databases are allowed to consume this archiver
	Databases *dbapi.AllowedConsumers `json:"databases"`
	// Pause defines if the backup process should be paused or not
	// +optional
	Pause bool `json:"pause,omitempty"`
	// RetentionPolicy field is the RetentionPolicy of the backupConfiguration's backend
	// +optional
	RetentionPolicy *kmapi.ObjectReference `json:"retentionPolicy"`
	// FullBackup defines the sessionConfig of the fullBackup
	// This options will eventually go to the full-backup job's yaml
	// +optional
	FullBackup *FullBackupOptions `json:"fullBackup"`
	// WalBackup defines the sessionConfig of the walBackup
	// This options will eventually go to the sidekick specification
	// +optional
	WalBackup *WalBackupOptions `json:"walBackup"`
	// ManifestBackup defines the sessionConfig of the manifestBackup
	// This options will eventually go to the manifest-backup job's yaml
	// +optional
	ManifestBackup *ManifestBackupOptions `json:"manifestBackup"`
	// +optional
	EncryptionSecret *kmapi.ObjectReference `json:"encryptionSecret"`
	// BackupStorage is the backend storageRef of the BackupConfiguration
	// +optional
	BackupStorage *BackupStorage `json:"backupStorage"`
	// DeletionPolicy defines the created repository's deletionPolicy
	// +optional
	DeletionPolicy *DeletionPolicy `json:"deletionPolicy"`
}

PostgresArchiverSpec defines the desired state of PostgresArchiver

func (*PostgresArchiverSpec) DeepCopy

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

func (*PostgresArchiverSpec) DeepCopyInto

func (in *PostgresArchiverSpec) DeepCopyInto(out *PostgresArchiverSpec)

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

type PostgresArchiverStatus

type PostgresArchiverStatus struct {
	// Specifies the information of all the databases managed by this archiver
	// +optional
	DatabaseRefs []ArchiverDatabaseRef `json:"databaseRefs,omitempty"`
}

PostgresArchiverStatus defines the observed state of PostgresArchiver

func (*PostgresArchiverStatus) DeepCopy

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

func (*PostgresArchiverStatus) DeepCopyInto

func (in *PostgresArchiverStatus) DeepCopyInto(out *PostgresArchiverStatus)

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

type SchedulerOptions

type SchedulerOptions struct {
	Schedule string `json:"schedule"`
	// +optional
	ConcurrencyPolicy batch.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
	// +optional
	JobTemplate stashcoreapi.JobTemplate `json:"jobTemplate"`
	// +optional
	SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
	// +optional
	FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"`
}

func (*SchedulerOptions) DeepCopy

func (in *SchedulerOptions) DeepCopy() *SchedulerOptions

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

func (*SchedulerOptions) DeepCopyInto

func (in *SchedulerOptions) DeepCopyInto(out *SchedulerOptions)

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

type Task

type Task struct {
	Params *runtime.RawExtension `json:"params"`
}

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

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

type WalBackupOptions

type WalBackupOptions struct {
	// +optional
	RuntimeSettings *ofst.RuntimeSettings `json:"runtimeSettings,omitempty"`
	// +optional
	ConfigSecret *GenericSecretReference `json:"configSecret,omitempty"`
}

func (*WalBackupOptions) DeepCopy

func (in *WalBackupOptions) DeepCopy() *WalBackupOptions

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

func (*WalBackupOptions) DeepCopyInto

func (in *WalBackupOptions) DeepCopyInto(out *WalBackupOptions)

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