minio

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameSpaceEnvVar = "NAMESPACE"
	MountPoint      = "/mnt/hwameistor/datastore/"
)

Variables

This section is empty.

Functions

func DownloadObject

func DownloadObject(spec *datastorev1alpha1.MinIOSpec, objName string, localFilePath string) error

func IsConnected

func IsConnected(spec *datastorev1alpha1.MinIOSpec) (bool, error)

func LoadObjectMetadata

func LoadObjectMetadata(spec *datastorev1alpha1.MinIOSpec) ([]*datastoreapis.DataObject, error)

func LoadObjects

func LoadObjects(spec *datastorev1alpha1.MinIOSpec, localDir string) error

func LoadObjectsFromDragonfly

func LoadObjectsFromDragonfly(spec *datastorev1alpha1.MinIOSpec, localDir string, dataSourceName string) error

func LoadObjectsFromDragonflyV2

func LoadObjectsFromDragonflyV2(clientset *kubernetes.Clientset, spec *datastorev1alpha1.MinIOSpec, localDir string, dataSourceName string) error

func NewMounter

func NewMounter() *mount.SafeFormatAndMount

func UploadObject

func UploadObject(spec *datastorev1alpha1.MinIOSpec, objName string, localFilePath string) error

Types

type MC

type MC struct {
	*minio.Client
}

func NewClientFor

func NewClientFor(endpoint, id, secret string, secure bool) (*MC, error)

func (*MC) GetBucketCapacity

func (mc *MC) GetBucketCapacity(bucketName string) (int64, error)

Jump to

Keyboard shortcuts

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