Documentation ¶
Index ¶
- func Open(cfg *Config) (*common.Database, error)
- type Config
- type ConfigTable
- type DiskTable
- func (t *DiskTable) AllocDisks(ctx context.Context, mode proto.Mode, args *master.AllocDisksArgs) ([]uint32, error)
- func (t *DiskTable) Get(ctx context.Context, diskID uint32) (*proto.Disk, error)
- func (t *DiskTable) Insert(ctx context.Context, disk *proto.Disk) error
- func (t *DiskTable) List(ctx context.Context, args *master.ListDisksArgs) ([]*proto.Disk, error)
- type IDTable
- type StripeTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigTable ¶
type ConfigTable struct {
// contains filtered or unexported fields
}
func OpenConfigTable ¶
func OpenConfigTable(tbl *mongo.Collection) (*ConfigTable, error)
type DiskTable ¶
type DiskTable struct {
// contains filtered or unexported fields
}
func OpenDiskTable ¶
func OpenDiskTable(tbl *mongo.Collection) (*DiskTable, error)
func (*DiskTable) AllocDisks ¶
type IDTable ¶
type IDTable struct {
// contains filtered or unexported fields
}
func OpenIDTable ¶
func OpenIDTable(tbl *mongo.Collection) (*IDTable, error)
type StripeTable ¶
type StripeTable struct {
// contains filtered or unexported fields
}
func OpenStripeTable ¶
func OpenStripeTable(tbl *mongo.Collection) (*StripeTable, error)
Click to show internal directories.
Click to hide internal directories.