Versions in this module Expand all Collapse all v0 v0.3.0 Feb 18, 2022 Changes in this version + func Delete(model interface{}, db *gorm.DB) (int64, error) + type Integration struct + Account string + CreateAt *time.Time + CreateBy string + Host string + Id int64 + Password string + Type string + UpdateAt *time.Time + UpdateBy string + func (t *Integration) TableName() string type ScheduleTemplate + DeployMode string + TmplAttrs string type Service + Domain string + GitRepo string + Port string type Task + TaskInfo string v0.2.0 Feb 9, 2022 Changes in this version type Instance + ServiceClusterId int64 type ServiceCluster + BridgxCluster string v0.1.1 Nov 30, 2021 v0.1.0 Nov 25, 2021 Changes in this version + const BatchSize + const InstanceStatusALB + const InstanceStatusBase + const InstanceStatusFail + const InstanceStatusInit + const InstanceStatusSvc + const InstanceStatusUNALB + func BatchCreate(values interface{}, db *gorm.DB) error + func Create(model interface{}, db *gorm.DB) error + func Get(id int64, out interface{}) error + func Gets(ids []int64, out interface{}) error + func Query(where map[string]interface{}, page int, pageSize int, models interface{}, ...) (count int64, err error) + func QueryAll(where map[string]interface{}, models interface{}, order string, ...) (err error) + func QueryFirst(where map[string]interface{}, model interface{}) (err error) + func QueryLast(where map[string]interface{}, model interface{}) (err error) + func QueryLimit(where map[string]interface{}, models interface{}, order string, ...) (err error) + func Save(model interface{}, db *gorm.DB) error + func Updates(model interface{}, where map[string]interface{}, ...) (int64, error) + func UpdatesByIds(model interface{}, ids []int64, updates map[string]interface{}, db *gorm.DB) error + type Instance struct + CreateAt *time.Time + Id int64 + InstanceId string + InstanceStatus types.InstanceStatus + IpInner string + IpOuter string + Msg string + TaskId int64 + UpdateAt *time.Time + func (t *Instance) TableName() string + type InstrRecord struct + CreateAt *time.Time + Id int64 + InstrId int64 + InstrStatus string + Msg string + TaskId int64 + UpdateAt *time.Time + func (t *InstrRecord) TableName() string + type Instruction struct + Cmd string + CreateAt *time.Time + Id int64 + InstrAction types.Action + IsDeleted int8 + Params string + TmplId int64 + UpdateAt *time.Time + func (t *Instruction) TableName() string + type RelationTaskId struct + BridgxTaskId int64 + NodeactTaskId int64 + type ScheduleTemplate struct + BridgxClusname string + CreateAt *time.Time + Description string + Id int64 + InstrGroup string + IsDeleted int8 + ReverseSchedTmplId int64 + ScheduleType constant.ScheduleType + ServiceClusterId int64 + ServiceName string + TmplName string + UpdateAt *time.Time + func (t *ScheduleTemplate) TableName() string + type Service struct + CreateAt *time.Time + Description string + Id int64 + IsDeleted int8 + Language string + ServiceName string + UpdateAt *time.Time + func (t *Service) TableName() string + type ServiceCluster struct + AutoDecision string + ClusterName string + CreateAt *time.Time + Id int64 + ServiceName string + UpdateAt *time.Time + func (t *ServiceCluster) TableName() string + type Task struct + BeginAt time.Time + CreateAt *time.Time + ExecType string + FinishAt *time.Time + Id int64 + InstCnt int64 + Msg string + Operator string + RelationTaskId string + SchedTmplId int64 + TaskStatus string + TaskStep string + UpdateAt *time.Time + func (t *Task) TableName() string