v2

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package v2 contains API Schema definitions for the db.flanksource.com v2 API group +kubebuilder:object:generate=true +groupName=db.flanksource.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "db.flanksource.com", Version: "v2"}

	// 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 BackupRetention

type BackupRetention struct {
	KeepLast    int `yaml:"keepLast,omitempty" json:"keepLast,omitempty"`
	KeepHourly  int `yaml:"keepHourly,omitempty" json:"keepHourly,omitempty"`
	KeepDaily   int `yaml:"keepDaily,omitempty" json:"keepDaily,omitempty"`
	KeepWeekly  int `yaml:"keepWeekly,omitempty" json:"keepWeekly,omitempty"`
	KeepMonthly int `yaml:"keepMonthly,omitempty" json:"keepMonthly,omitempty"`
	KeepYearly  int `yaml:"keepYearly,omitempty" json:"keepYearly,omitempty"`
}

func (*BackupRetention) DeepCopy

func (in *BackupRetention) DeepCopy() *BackupRetention

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

func (*BackupRetention) DeepCopyInto

func (in *BackupRetention) DeepCopyInto(out *BackupRetention)

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

type PodResources

type PodResources struct {
	// +kubebuilder:validation:Optional
	Replicas int `json:"replicas"`
	// +kubebuilder:validation:Optional
	Resources v1.ResourceRequirements `json:"resources"`
}

func (*PodResources) DeepCopy

func (in *PodResources) DeepCopy() *PodResources

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

func (*PodResources) DeepCopyInto

func (in *PodResources) DeepCopyInto(out *PodResources)

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

type PostgresqlBackup

type PostgresqlBackup struct {
	// +kubebuilder:default=true
	Restic    bool            `yaml:"restic,omitempty" json:"restic,omitempty"`
	Bucket    string          `json:"bucket,omitempty"`
	Schedule  string          `json:"schedule,omitempty"`
	Retention BackupRetention `yaml:"retention,omitempty" json:"retention,omitempty"`
}

func (*PostgresqlBackup) DeepCopy

func (in *PostgresqlBackup) DeepCopy() *PostgresqlBackup

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

func (*PostgresqlBackup) DeepCopyInto

func (in *PostgresqlBackup) DeepCopyInto(out *PostgresqlBackup)

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

type PostgresqlDB

type PostgresqlDB struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PostgresqlDBSpec   `json:"spec,omitempty"`
	Status            PostgresqlDBStatus `json:"status,omitempty"`
}

func (*PostgresqlDB) DeepCopy

func (in *PostgresqlDB) DeepCopy() *PostgresqlDB

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

func (*PostgresqlDB) DeepCopyInto

func (in *PostgresqlDB) DeepCopyInto(out *PostgresqlDB)

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

func (*PostgresqlDB) DeepCopyObject

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

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

type PostgresqlDBList

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

func (*PostgresqlDBList) DeepCopy

func (in *PostgresqlDBList) DeepCopy() *PostgresqlDBList

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

func (*PostgresqlDBList) DeepCopyInto

func (in *PostgresqlDBList) DeepCopyInto(out *PostgresqlDBList)

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

func (*PostgresqlDBList) DeepCopyObject

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

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

type PostgresqlDBSpec

type PostgresqlDBSpec struct {
	PodResources `json:",inline"`
	Storage      Storage `json:"storage,omitempty"`
	// +kubebuilder:validation:Optional
	Backup     PostgresqlBackup  `json:"backup,omitempty"`
	Parameters map[string]string `json:"parameters,omitempty"`
	Replicas   int               `yaml:"replicas,omitempty" json:"replicas,omitempty"`
}

func (*PostgresqlDBSpec) DeepCopy

func (in *PostgresqlDBSpec) DeepCopy() *PostgresqlDBSpec

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

func (*PostgresqlDBSpec) DeepCopyInto

func (in *PostgresqlDBSpec) DeepCopyInto(out *PostgresqlDBSpec)

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

type PostgresqlDBStatus

type PostgresqlDBStatus struct {
	Conditions kommonsv1.ConditionList `json:"conditions"`
}

func (*PostgresqlDBStatus) DeepCopy

func (in *PostgresqlDBStatus) DeepCopy() *PostgresqlDBStatus

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

func (*PostgresqlDBStatus) DeepCopyInto

func (in *PostgresqlDBStatus) DeepCopyInto(out *PostgresqlDBStatus)

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

type Storage

type Storage struct {
	// Storage class to use. If not set default will be used
	StorageClass string `yaml:"storageClass,omitempty" json:"storageClass,omitempty"`
	// Size. Required if persistence is enabled
	Size string `yaml:"size,omitempty" json:"size,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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