Documentation ¶
Index ¶
- Constants
- type Tidb
- func (t *Tidb) Close()
- func (t *Tidb) CompleteParts(uploadId uint64, parts []*types.PartInfo) (err error)
- func (t *Tidb) DeleteGcObjects(objects ...*types.GcObject) (err error)
- func (t *Tidb) DeleteParts(uploadId uint64) error
- func (t *Tidb) GetCluster(fsid, pool string) (cluster types.Cluster, err error)
- func (t *Tidb) GetGcObjects(marker int64, limit int) ([]*types.GcObject, error)
- func (t *Tidb) ListParts(uploadId uint64) ([]*types.PartInfo, error)
- func (t *Tidb) PutGcObjects(objects ...*types.GcObject) (err error)
- func (t *Tidb) PutPart(partInfo *types.PartInfo) (err error)
- func (t *Tidb) PutPartsInGc(parts []*types.PartInfo) (err error)
- type TidbDriver
Constants ¶
View Source
const (
TIDB_DRIVER_ID = "tidb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tidb ¶
func (*Tidb) CompleteParts ¶
func (*Tidb) DeleteGcObjects ¶
delete gc objects meta.
func (*Tidb) DeleteParts ¶
func (*Tidb) GetCluster ¶
cluster
func (*Tidb) GetGcObjects ¶
func (*Tidb) ListParts ¶
* ListParts: list all the parts which belong to the uploadId. * @return: the related parts which are sorted by PartNum asc. *
func (*Tidb) PutGcObjects ¶
delete objects
type TidbDriver ¶
type TidbDriver struct { }
func (*TidbDriver) OpenDB ¶
func (td *TidbDriver) OpenDB(dbCfg config.DatabaseConfig) (driver.DB, error)
Click to show internal directories.
Click to hide internal directories.