objectstore

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyExistsError

func IsAlreadyExistsError(err error) bool

IsAlreadyExistsError checks if an error indicates an already existing bucket.

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError checks if an error indicates a missing bucket.

Types

type BlobStoragePropsForAzure

type BlobStoragePropsForAzure struct {
	ResourceGroup  string `json:"resourceGroup" binding:"required"`
	StorageAccount string `json:"storageAccount" binding:"required"`
}

BlobStoragePropsForAzure describes the Azure specific properties

type BucketInfo

type BucketInfo struct {
	Name            string                    `json:"name"  binding:"required"`
	Managed         bool                      `json:"managed" binding:"required"`
	Location        string                    `json:"location,omitempty"`
	SecretRef       string                    `json:"secretId,omitempty"`
	Cloud           string                    `json:"cloud,omitempty"`
	Azure           *BlobStoragePropsForAzure `json:"aks,omitempty"`
	Status          string                    `json:"status,omitempty"`
	StatusMsg       string                    `json:"statusMsg,omitempty"`
	AccessSecretRef string                    `json:"accessSecretId,omitempty"`
}

BucketInfo describes a storage bucket

type ObjectStoreService

type ObjectStoreService interface {
	CreateBucket(string) error
	ListBuckets() ([]*BucketInfo, error)
	ListManagedBuckets() ([]*BucketInfo, error)
	DeleteBucket(string) error
	CheckBucket(string) error
}

ObjectStoreService is the interface that cloud specific object store implementation must implement

Jump to

Keyboard shortcuts

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