objectstore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package objectstore provides shared examples for archive tests using various object store implementations.

Index

Constants

View Source
const (
	// DefaultSize is the default size of the PVCs for the object stores.
	DefaultSize = "1Gi"
)

Variables

This section is empty.

Functions

func NewMinioArchive

func NewMinioArchive(namespace, name, minioOSName string) *pluginPgbackrestV1.Archive

NewMinioArchive creates a new Archive configured to use the Minio object store.

Types

type Resources

type Resources struct {
	Deployment      *appsv1.Deployment
	ProvisioningJob *batchv1.Job
	Service         *corev1.Service
	Secret          *corev1.Secret
	PVC             *corev1.PersistentVolumeClaim
}

Resources represents the resources required to create an object store.

func NewMinioObjectStoreResources

func NewMinioObjectStoreResources(namespace, name string) *Resources

NewMinioObjectStoreResources creates the resources required to create a Minio object store.

func (Resources) Create

func (osr Resources) Create(ctx context.Context, cl client.Client) error

Create creates the object store resources.

Jump to

Keyboard shortcuts

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