deploy

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 5 Imported by: 0

README

应用部署(Task)

负责应用的部署

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 DeployRequest struct {
	// 服务部署集群Id, 维护有关联的服务,部署配置也在这里
	ClusterId string `json:"cluster_id"`
	// 该部署集群, 需要部署哪个制品(包)
	ArtifcatId string `json:"artifcat_id"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL