objectstore

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

Documentation

Overview

Package objectstore provides shared examples for object store resources.

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 NewAzuriteObjectStore

func NewAzuriteObjectStore(namespace, name, azuriteOSName string) *pluginBarmanCloudV1.ObjectStore

NewAzuriteObjectStore creates a new ObjectStore object for Azurite.

func NewGCSObjectStore

func NewGCSObjectStore(namespace, name, gcsOSName string) *pluginBarmanCloudV1.ObjectStore

NewGCSObjectStore creates a new GCS object store.

func NewMinioObjectStore

func NewMinioObjectStore(namespace, name, minioOSName string) *pluginBarmanCloudV1.ObjectStore

NewMinioObjectStore creates a new Minio object store.

Types

type Resources

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

Resources represents the resources required to create an object store.

func NewAzuriteObjectStoreResources

func NewAzuriteObjectStoreResources(namespace, name string) *Resources

NewAzuriteObjectStoreResources creates the resources required to create an Azurite object store.

func NewGCSObjectStoreResources

func NewGCSObjectStoreResources(namespace, name string) *Resources

NewGCSObjectStoreResources creates the resources required to create a GCS 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