psmdb

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: 21 Imported by: 0

Documentation

Overview

Package psmdb contains the provider for Percona Server for MongoDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*psmdbv1.PerconaServerMongoDB
	providers.ProviderOptions
	// contains filtered or unexported fields
}

Provider is a provider for Percona Server for MongoDB.

func New

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

New returns a new provider for Percona Server for MongoDB.

func (*Provider) Apply

Apply returns the applier for Percona Server for MongoDB.

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 PerconaServerMongoDB object.

func (*Provider) Status

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

Jump to

Keyboard shortcuts

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