instance

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScratchDataDirectory is the directory to be used for scratch data
	ScratchDataDirectory = "/controller"

	// RecoveryTemporaryDirectory provides a path to store temporary files
	// needed in the recovery process
	RecoveryTemporaryDirectory = ScratchDataDirectory + "/recovery"
)

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context) error

Start starts the sidecar informers and CNPG-i server

Types

type BackupServiceImplementation

type BackupServiceImplementation struct {
	cnpgbackup.UnimplementedBackupServer
	Client client.Client
}

BackupServiceImplementation is the implementation of the Backup CNPG capability

func (BackupServiceImplementation) Backup

Backup implements the Backup interface

func (BackupServiceImplementation) GetCapabilities

GetCapabilities implements the BackupService interface

type CNPGI

type CNPGI struct {
	Client       client.Client
	PGDataPath   string
	PGWALPath    string
	PluginPath   string
	InstanceName string
}

CNPGI is the implementation of the PostgreSQL instance sidecar plugin for CNPG-I

func (*CNPGI) Start

func (c *CNPGI) Start(ctx context.Context) error

Start starts the GRPC service

type IdentityImplementation

type IdentityImplementation struct {
	identity.UnimplementedIdentityServer
	Client client.Client
}

IdentityImplementation implements IdentityServer

func (IdentityImplementation) GetPluginCapabilities

GetPluginCapabilities implements IdentityServer

func (IdentityImplementation) GetPluginMetadata

GetPluginMetadata implements IdentityServer

func (IdentityImplementation) Probe

Probe implements IdentityServer

type RestoreJobHooksImpl

type RestoreJobHooksImpl struct {
	restore.UnimplementedRestoreJobHooksServer

	Client client.Client
}

RestoreJobHooksImpl is the implementation of the restore job hooks

func (RestoreJobHooksImpl) GetCapabilities

GetCapabilities returns the capabilities of the restore job hooks

func (RestoreJobHooksImpl) Restore

Restore restores the cluster from a backup

type WALServiceImplementation

type WALServiceImplementation struct {
	wal.UnimplementedWALServer
	Client client.Client
}

WALServiceImplementation is the implementation of the WAL Service

func (WALServiceImplementation) Archive

Archive implements the WALService interface

func (WALServiceImplementation) GetCapabilities

GetCapabilities implements the WALService interface

func (WALServiceImplementation) Restore

Restore implements the WALService interface

func (WALServiceImplementation) SetFirstRequired

SetFirstRequired implements the WALService interface

func (WALServiceImplementation) Status

Status implements the WALService interface

Jump to

Keyboard shortcuts

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