extensions

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtensionKey

func GetExtensionKey(pgMajor int, name, version string) string

func Install

func Install(key, archivePath, extensionPath string) error

func InstallerContainer

func InstallerContainer(cr *pgv2.PerconaPGCluster, postgresVersion int, spec *pgv2.ExtensionsSpec, extensions string, openshift *bool) corev1.Container

func RelocatorContainer

func RelocatorContainer(cr *pgv2.PerconaPGCluster, image string, imagePullPolicy corev1.PullPolicy, postgresVersion int) corev1.Container

RelocatorContainer returns a container that will relocate extensions from the base image (i.e. pg_stat_monitor, pg_audit) to the data directory so we don't lose them when user adds a custom extension.

func Uninstall

func Uninstall(archivePath string) error

func VolumeMounts

func VolumeMounts(postgresVersion int) []corev1.VolumeMount

Types

type ObjectGetter

type ObjectGetter interface {
	// Get returns the object stored at the given path.
	Get(key string) (io.ReadCloser, error)
}

type S3

type S3 struct {
	Region string
	Bucket string
	// contains filtered or unexported fields
}

func NewS3

func NewS3(endpoint, region, bucket string, s3ForcePathStyle, disableSSL bool) *S3

func (*S3) Get

func (s *S3) Get(key string) (io.ReadCloser, error)

type StorageType

type StorageType string
const (
	StorageTypeS3 StorageType = "s3"
)

Jump to

Keyboard shortcuts

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