Documentation ¶
Index ¶
- Constants
- func DownloadObject(spec *datastorev1alpha1.MinIOSpec, objName string, localFilePath string) error
- func IsConnected(spec *datastorev1alpha1.MinIOSpec) (bool, error)
- func LoadObjectMetadata(spec *datastorev1alpha1.MinIOSpec) ([]*datastoreapis.DataObject, error)
- func LoadObjects(spec *datastorev1alpha1.MinIOSpec, localDir string) error
- func LoadObjectsFromDragonfly(spec *datastorev1alpha1.MinIOSpec, localDir string, dataSourceName string) error
- func LoadObjectsFromDragonflyV2(clientset *kubernetes.Clientset, spec *datastorev1alpha1.MinIOSpec, ...) error
- func NewMounter() *mount.SafeFormatAndMount
- func UploadObject(spec *datastorev1alpha1.MinIOSpec, objName string, localFilePath string) error
- type MC
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 ¶
Click to show internal directories.
Click to hide internal directories.