Documentation ¶
Index ¶
- type Glue
- func (Glue) CreateSession(store kv.Storage) (glue.Session, error)
- func (Glue) GetDomain(store kv.Storage) (*domain.Domain, error)
- func (g Glue) GetVersion() string
- func (g Glue) Open(path string, option pd.SecurityOption) (kv.Storage, error)
- func (Glue) OwnsStorage() bool
- func (g Glue) Record(name string, value uint64)
- func (g Glue) StartProgress(ctx context.Context, cmdName string, total int64, redirectLog bool) glue.Progress
- func (g Glue) UseOneShotSession(store kv.Storage, closeDomain bool, fn func(glue.Session) error) error
- type MockGlue
- func (m *MockGlue) CreateSession(store kv.Storage) (glue.Session, error)
- func (*MockGlue) GetDomain(store kv.Storage) (*domain.Domain, error)
- func (*MockGlue) GetVersion() string
- func (*MockGlue) Open(path string, option pd.SecurityOption) (kv.Storage, error)
- func (*MockGlue) OwnsStorage() bool
- func (*MockGlue) Record(name string, value uint64)
- func (m *MockGlue) SetSession(se session.Session)
- func (*MockGlue) StartProgress(ctx context.Context, cmdName string, total int64, redirectLog bool) glue.Progress
- func (m *MockGlue) UseOneShotSession(store kv.Storage, closeDomain bool, fn func(glue.Session) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Glue ¶
Glue is an implementation of glue.Glue using a new TiDB session.
func (Glue) CreateSession ¶
CreateSession implements glue.Glue.
type MockGlue ¶
MockGlue only used for test
func (*MockGlue) CreateSession ¶
CreateSession implements glue.Glue.
func (*MockGlue) OwnsStorage ¶
OwnsStorage implements glue.Glue.
func (*MockGlue) SetSession ¶
Click to show internal directories.
Click to hide internal directories.