Documentation
¶
Overview ¶
Package objectstore provides shared examples for object store resources.
Index ¶
- Constants
- func NewAzuriteObjectStore(namespace, name, azuriteOSName string) *pluginBarmanCloudV1.ObjectStore
- func NewGCSObjectStore(namespace, name, gcsOSName string) *pluginBarmanCloudV1.ObjectStore
- func NewS3ObjectStore(namespace, name, s3Name string) *pluginBarmanCloudV1.ObjectStore
- type Resources
Constants ¶
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 NewS3ObjectStore ¶ added in v0.15.1
func NewS3ObjectStore(namespace, name, s3Name string) *pluginBarmanCloudV1.ObjectStore
NewS3ObjectStore creates a new ObjectStore pointing at the S3-compatible object store created by NewS3ObjectStoreResources with the given name.
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 ¶
NewAzuriteObjectStoreResources creates the resources required to create an Azurite object store.
func NewGCSObjectStoreResources ¶
NewGCSObjectStoreResources creates the resources required to create a GCS object store.
func NewS3ObjectStoreResources ¶ added in v0.15.1
NewS3ObjectStoreResources creates the resources required to run an S3-compatible object store.