spectrumscale

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

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

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

	Filesystem string = "filesystem"

	IsPreexisting string = "isPreexisting"

	SpectrumScaleConfigUser       = "REST_USER"
	SpectrumScaleConfigPassword   = "REST_PASSWORD"
	SpectrumScaleConfigFilesystem = "DEFAULT_FILESYSTEM_NAME"
)
View Source
const SpectrumScaleGetClusterIdErrorStr = "Failed to get Spectrum Scale ClusterID"

Variables

This section is empty.

Functions

func NewSpectrumLocalClientWithConnectors

func NewSpectrumLocalClientWithConnectors(logger logs.Logger, connector connectors.SpectrumScaleConnector, spectrumExecutor utils.Executor, config resources.SpectrumScaleConfig, datamodel SpectrumDataModelWrapper) (resources.StorageClient, error)

Types

type SpectrumDataModel

type SpectrumDataModel interface {
	CreateVolumeTable() error
	DeleteVolume(name string) error
	InsertFilesetVolume(fileset, 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

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

type SpectrumDataModelWrapper

type SpectrumDataModelWrapper interface {
	DeleteVolume(name string) error
	InsertFilesetVolume(fileset, 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)
	UpdateDatabaseVolume(newVolume *SpectrumScaleVolume)
	IsDbVolume(name string) bool
	GetDbName() string
}

func NewSpectrumDataModelWrapper

func NewSpectrumDataModelWrapper(backend string) SpectrumDataModelWrapper

type SpectrumScaleConfigError

type SpectrumScaleConfigError struct {
	ConfigParam string
}

func (*SpectrumScaleConfigError) Error

func (e *SpectrumScaleConfigError) Error() string

type SpectrumScaleFileSetLinkError

type SpectrumScaleFileSetLinkError struct {
	Filesystem string
	Fileset    string
}

func (*SpectrumScaleFileSetLinkError) Error

type SpectrumScaleFileSetNotLinkError

type SpectrumScaleFileSetNotLinkError struct {
	Filesystem string
	Fileset    string
}

func (*SpectrumScaleFileSetNotLinkError) Error

type SpectrumScaleFileSystemMountError

type SpectrumScaleFileSystemMountError struct {
	Filesystem string
}

func (*SpectrumScaleFileSystemMountError) Error

type SpectrumScaleFileSystemNotMounted

type SpectrumScaleFileSystemNotMounted struct {
	Filesystem string
}

func (*SpectrumScaleFileSystemNotMounted) Error

type SpectrumScaleFileSystemNotPresent

type SpectrumScaleFileSystemNotPresent struct {
	Filesystem string
}

func (*SpectrumScaleFileSystemNotPresent) Error

type SpectrumScaleGetClusterIdError

type SpectrumScaleGetClusterIdError struct {
	ErrorMsg string
}

func (*SpectrumScaleGetClusterIdError) Error

type SpectrumScaleQuotaNotEnabledError

type SpectrumScaleQuotaNotEnabledError struct {
	Filesystem string
}

func (*SpectrumScaleQuotaNotEnabledError) Error

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
y or Y : Canonical URL