Documentation ¶
Index ¶
- Constants
- func NewSpectrumLocalClient(logger *log.Logger, config resources.UbiquityServerConfig, database *gorm.DB) (resources.StorageClient, error)
- func NewSpectrumLocalClientWithConnectors(logger *log.Logger, connector connectors.SpectrumScaleConnector, ...) (resources.StorageClient, error)
- func NewSpectrumNfsLocalClient(logger *log.Logger, config resources.UbiquityServerConfig, db *gorm.DB) (resources.StorageClient, error)
- type SpectrumDataModel
- type SpectrumScaleVolume
- type VolumeType
Constants ¶
View Source
const ( UserSpecifiedUID string = "uid" UserSpecifiedGID string = "gid" )
Variables ¶
This section is empty.
Functions ¶
func NewSpectrumLocalClient ¶
func NewSpectrumLocalClient(logger *log.Logger, config resources.UbiquityServerConfig, database *gorm.DB) (resources.StorageClient, error)
func NewSpectrumLocalClientWithConnectors ¶
func NewSpectrumLocalClientWithConnectors(logger *log.Logger, connector connectors.SpectrumScaleConnector, spectrumExecutor utils.Executor, config resources.SpectrumScaleConfig, datamodel SpectrumDataModel) (resources.StorageClient, error)
func NewSpectrumNfsLocalClient ¶
func NewSpectrumNfsLocalClient(logger *log.Logger, config resources.UbiquityServerConfig, db *gorm.DB) (resources.StorageClient, error)
Types ¶
type SpectrumDataModel ¶
type SpectrumDataModel interface { CreateVolumeTable() error SetClusterId(string) GetClusterId() string DeleteVolume(name string) error InsertFilesetVolume(fileset, volumeName string, filesystem string, isPreexisting bool, opts map[string]interface{}) error InsertLightweightVolume(fileset, directory, volumeName string, filesystem string, isPreexisting bool, opts map[string]interface{}) error InsertFilesetQuotaVolume(fileset, quota, volumeName string, filesystem string, isPreexisting bool, opts map[string]interface{}) error GetVolume(name string) (SpectrumScaleVolume, bool, error) ListVolumes() ([]resources.Volume, error) UpdateVolumeMountpoint(name string, mountpoint string) error }
func NewSpectrumDataModel ¶
type SpectrumScaleVolume ¶
type VolumeType ¶
type VolumeType int
const ( Fileset VolumeType = iota Lightweight FilesetWithQuota )
Click to show internal directories.
Click to hide internal directories.