cnpg

package
v0.0.0-...-12fbc85 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 5 Imported by: 0

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

type ClusterOption func(*cnpgv1.Cluster)

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

Jump to

Keyboard shortcuts

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