Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddFreeVolume(c context.Context, group, dir string, num int64) (err error)
- func (d *Dao) AddVolume(c context.Context, group string, num int64) (err error)
- func (d *Dao) Close()
- func (d *Dao) Compact(c context.Context, group string, vid int64) (err error)
- func (d *Dao) Groups(cluster string) (groups map[string]*model.Group, err error)
- func (d *Dao) Ping(c context.Context) error
- func (d *Dao) Racks(cluster string) (racks map[string]*model.Rack, err error)
- func (d *Dao) SetGroupStatus(c context.Context, group, status string) (err error)
- func (d *Dao) Volumes(cluster string) (volumes map[string]*model.VolumeState, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func (*Dao) AddFreeVolume ¶
AddFreeVolume add free volume.
func (*Dao) SetGroupStatus ¶
SetGroupStatus set store status by group id.
Click to show internal directories.
Click to hide internal directories.