pg

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package pg contains the Percona PostgreSQL provider code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParser

type ConfigParser struct {
	// contains filtered or unexported fields
}

ConfigParser represents a parser for PG config.

func NewConfigParser

func NewConfigParser(config string) *ConfigParser

NewConfigParser returns a new parser for PG config.

func (*ConfigParser) ParsePGConfig

func (p *ConfigParser) ParsePGConfig() (map[string]any, error)

ParsePGConfig parses a PG config file.

type Provider

type Provider struct {
	*pgv2.PerconaPGCluster
	providers.ProviderOptions
	// contains filtered or unexported fields
}

Provider is a provider for Percona PostgreSQL.

func New

func New(
	ctx context.Context,
	opts providers.ProviderOptions,
) (*Provider, error)

New returns a new provider for Percona PostgreSQL.

func (*Provider) Apply

Apply returns the PG applier.

func (*Provider) Cleanup

func (p *Provider) Cleanup(ctx context.Context, database *everestv1alpha1.DatabaseCluster) (bool, error)

Cleanup runs the cleanup routines and returns true if the cleanup is done.

func (*Provider) DBObject

func (p *Provider) DBObject() client.Object

DBObject returns the PerconaPGCluster object.

func (*Provider) Status

Status builds the DatabaseCluster Status based on the current state of the PerconaPGCluster.

Jump to

Keyboard shortcuts

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