Documentation ¶
Index ¶
- Variables
- type Master
- type Metadata
- type MetadataRedis
- func (m *MetadataRedis) Close() error
- func (m *MetadataRedis) Delete(filePath string) error
- func (m *MetadataRedis) Get(filePath string) (vid uint64, fid uint64, fileName string, err error)
- func (m *MetadataRedis) Has(filePath string) bool
- func (m *MetadataRedis) Set(filePath string, vid uint64, fid uint64, fileName string) error
- type Size
- type VolumeManagerStatus
- type VolumeStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxHeartbeatDuration time.Duration = time.Second * 10
Functions ¶
This section is empty.
Types ¶
type Master ¶
type MetadataRedis ¶
type MetadataRedis struct {
// contains filtered or unexported fields
}
func NewMetadataRedis ¶
func (*MetadataRedis) Close ¶
func (m *MetadataRedis) Close() error
func (*MetadataRedis) Delete ¶
func (m *MetadataRedis) Delete(filePath string) error
func (*MetadataRedis) Has ¶
func (m *MetadataRedis) Has(filePath string) bool
type VolumeManagerStatus ¶
type VolumeManagerStatus struct { AdminHost string AdminPort int PublicHost string PublicPort int Machine string DataCenter string DiskSize uint64 DiskUsed uint64 DiskFree uint64 MaxDiskUsed uint64 CanCreateVolume bool VolumeMaxSize uint64 LastHeartbeat time.Time `json:"-"` VStatusList []*VolumeStatus }
func (*VolumeManagerStatus) IsAlive ¶
func (vms *VolumeManagerStatus) IsAlive() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.