instance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package instance implements the capabilities used by the operator sidecar

Index

Constants

This section is empty.

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 {
	Client       client.Client
	InstanceName string
	backup.UnimplementedBackupServer
}

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
	SpoolDirectory string
	// mutually exclusive with serverAddress
	PluginPath   string
	InstanceName string
}

CNPGI is the implementation of the PostgreSQL sidecar

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

Directories

Path Synopsis
internal
client
Package client provides an extended client that is capable of caching multiple secrets without relying on informers
Package client provides an extended client that is capable of caching multiple secrets without relying on informers

Jump to

Keyboard shortcuts

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