Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultBackupRetentionPolicy = "30d"
)
Variables ¶
This section is empty.
Functions ¶
func NewCluster ¶
func NewCluster(name, namespace, database, owner string, options ...ClusterOption) *cnpgv1.Cluster
func NewScheduledBackup ¶
func NewScheduledBackup(name, namespace, clusterName string, options ...ScheduledBackupOption) *cnpgv1.ScheduledBackup
Types ¶
type ClusterOption ¶
func WithAppLabel ¶
func WithAppLabel(app string) ClusterOption
func WithBackup ¶
func WithBackup(retentionPolicy string) ClusterOption
func WithInstanceCount ¶
func WithInstanceCount(count int) ClusterOption
func WithMonitoring ¶
func WithMonitoring(monitoring bool) ClusterOption
func WithRequests ¶
func WithRequests(cpu, mem string) ClusterOption
func WithStorageSize ¶
func WithStorageSize(size string) ClusterOption
type ScheduledBackupOption ¶
type ScheduledBackupOption func(*cnpgv1.ScheduledBackup)
func WithSchedule ¶
func WithSchedule(schedule string) ScheduledBackupOption
Click to show internal directories.
Click to hide internal directories.