Documentation ¶
Index ¶
- type Migration
- func (m *Migration) CleanUnusedMigrationNs() (bool, error)
- func (m *Migration) Create(migrationLog *dbclient.MigrationLog, diceyml *diceyml.DiceYaml, ...) (data interface{}, err error)
- func (m *Migration) Exist(migrationLog *dbclient.MigrationLog) (created, started bool, err error)
- func (m *Migration) Start(migrationLog *dbclient.MigrationLog, diceyml *diceyml.DiceYaml, ...) (err error)
- func (m *Migration) Status(migrationLog *dbclient.MigrationLog) (desc apistructs.MigrationStatusDesc, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
Migration migration 实例对象封装
func (*Migration) CleanUnusedMigrationNs ¶
func (*Migration) Create ¶
func (m *Migration) Create(migrationLog *dbclient.MigrationLog, diceyml *diceyml.DiceYaml, Runtime *dbclient.Runtime, App *apistructs.ApplicationDTO) (data interface{}, err error)
func (*Migration) Exist ¶
func (m *Migration) Exist(migrationLog *dbclient.MigrationLog) (created, started bool, err error)
Exist 返回 job 存在情况 created: 调用 create 成功,job 在 etcd 中已创建 started: 调用 start 成功,job 在 cluster 中已存在并开始执行
func (*Migration) Start ¶
func (m *Migration) Start(migrationLog *dbclient.MigrationLog, diceyml *diceyml.DiceYaml, Runtime *dbclient.Runtime, App *apistructs.ApplicationDTO) (err error)
func (*Migration) Status ¶
func (m *Migration) Status(migrationLog *dbclient.MigrationLog) (desc apistructs.MigrationStatusDesc, err error)
Status 获取migration status信息
Click to show internal directories.
Click to hide internal directories.