spectrumscale

package
Version: v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserSpecifiedUID string = "uid"
	UserSpecifiedGID string = "gid"
)
View Source
const (
	Type            string = "type"
	TypeFileset     string = "fileset"
	TypeLightweight string = "lightweight"

	FilesetID string = "fileset"
	Directory string = "directory"
	Quota     string = "quota"

	Filesystem string = "filesystem"

	IsPreexisting string = "isPreexisting"

	Cluster string = "clusterId"
)

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)

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]string) error
	InsertLightweightVolume(fileset, directory, volumeName string, filesystem string, isPreexisting bool, opts map[string]string) error
	InsertFilesetQuotaVolume(fileset, quota, volumeName string, filesystem string, isPreexisting bool, opts map[string]string) error
	GetVolume(name string) (SpectrumScaleVolume, bool, error)
	ListVolumes() ([]resources.Volume, error)
	UpdateVolumeMountpoint(name string, mountpoint string) error
}

func NewSpectrumDataModel

func NewSpectrumDataModel(log *log.Logger, db *gorm.DB, backend string) SpectrumDataModel

type SpectrumScaleVolume

type SpectrumScaleVolume struct {
	ID            uint
	Volume        resources.Volume
	VolumeID      uint
	Type          VolumeType
	ClusterId     string
	FileSystem    string
	Fileset       string
	Directory     string
	UID           string
	GID           string
	Quota         string
	IsPreexisting bool
}

type VolumeType

type VolumeType int
const (
	Fileset VolumeType = iota
	Lightweight
	FilesetWithQuota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL