Documentation
¶
Index ¶
Constants ¶
View Source
const (
APP_NAME = "deploy"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployRecord ¶
type DeployRecord struct {
// 部署记录Id
Id string `json:"id" bson:"_id" gorm:"column:id;primaryKey"`
// 部署记录创建时间
CreateAt time.Time `json:"create_at" bson:"create_at" gorm:"column:create_at"`
// 部署任务的参数
DeployRequest
// 关联的部署任务Id
RefDeployTaskId string `json:"ref_deploy_task_id" bson:"ref_deploy_task_id" gorm:"column:ref_deploy_task_id"`
// 部署任务的状态
DeployTask *task.Task `json:"deploytask" bson:"deploytask" gorm:"-"`
}
func (DeployRecord) TableName ¶
func (d DeployRecord) TableName() string
type DeployRequest ¶
type DescribeDeployRecordRequest ¶
type DescribeDeployRecordRequest struct {
}
type QueryDeployRecordRequest ¶
type QueryDeployRecordRequest struct {
}
type Service ¶
type Service interface {
// 服务部署
Deploy(context.Context, *DeployRequest) (*DeployRecord, error)
// 查询部署记录
QueryDeployRecord(context.Context, *QueryDeployRecordRequest) (types.Set[*DeployRecord], error)
// 查询部署详情
DescribeDeployRecord(context.Context, *DescribeDeployRecordRequest) (*DeployRecord, error)
}
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.