publish

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CirculationRsp

type CirculationRsp struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

CirculationRsp back-to/next-stage

type CreateOperationLogReq

type CreateOperationLogReq struct {
	Creator            string `json:"creator"`
	StageName          string `json:"stage_name"`
	StepName           string `json:"step_name"`
	Message            string `json:"message"`
	JobName            string `json:"job_name"`
	Type               string `json:"type"`
	PipelineInstanceID int64  `json:"pipeline_instance_id"`
	StageInstanceID    int64  `json:"stage_instance_id"`
	StepIndex          int    `json:"step_index"`
	PublishID          int64  `json:"publish_id"`
	StageID            int64  `json:"stage_id"`
	Status             int64  `json:"status"`
	RunID              int64  `json:"run_id"`
}

CreateOperationLogReq ..

type PublishAddApps

type PublishAddApps struct {
	Apps []*PubllishReqApp `json:"apps"`
}

PublishAddApps ..

type PublishInfoApp

type PublishInfoApp struct {
	*models.PublishApp
	Name     string `json:"name"`
	Language string `json:"language"`
	Type     string `json:"type"`
}

PublishInfoApp ..

type PublishInfoResp

type PublishInfoResp struct {
	*models.Publish
	PipelineName string                   `json:"pipeline_name"`
	Apps         []*PublishInfoApp        `json:"apps"`
	Operations   *models.PublishOperation `json:"operations"`
	Steps        []*PublishStep           `json:"steps"`
}

PublishInfoResp ...

type PublishManager

type PublishManager struct {
	// contains filtered or unexported fields
}

PublishManager ...

func NewPublishManager

func NewPublishManager() *PublishManager

NewPublishManager ...

func (*PublishManager) AddPublishApps

func (pm *PublishManager) AddPublishApps(publishID int64, req *PublishAddApps) error

AddPublishApps ..

func (*PublishManager) ClosePublish

func (pm *PublishManager) ClosePublish(publishID int64) error

ClosePublish ..

func (*PublishManager) CreatePublish

func (pm *PublishManager) CreatePublish(user string, projectID int64, p *PublishReq) error

CreatePublish ...

func (*PublishManager) DeletePublish

func (pm *PublishManager) DeletePublish(publishID int64) error

DeletePublish ...

func (*PublishManager) DeletePublishApp

func (pm *PublishManager) DeletePublishApp(publishAppID int64) error

DeletePublishApp ..

func (*PublishManager) GetBackTo

func (pm *PublishManager) GetBackTo(projectID, publishID, stageID int64) ([]*CirculationRsp, error)

GetBackTo ...

func (*PublishManager) GetCanAddedApps

func (pm *PublishManager) GetCanAddedApps(publishID int64) ([]*models.ProjectApp, error)

GetCanAddedApps ...

func (*PublishManager) GetNextStage

func (pm *PublishManager) GetNextStage(projectID, publishID, envID int64) ([]*CirculationRsp, error)

GetNextStage ...

func (*PublishManager) GetPublishInfo

func (pm *PublishManager) GetPublishInfo(publishID int64) (*PublishInfoResp, error)

GetPublishInfo ...

func (*PublishManager) GetPublishOperationLog

func (pm *PublishManager) GetPublishOperationLog(publishID int64, filter *query.FilterQuery) (*query.QueryResult, error)

GetPublishOperationLog ..

func (*PublishManager) PublishList

func (pm *PublishManager) PublishList(projectID int64, filter *models.ProejctReleaseFilterQuery) (*query.QueryResult, error)

PublishList ...

func (*PublishManager) TriggerBackTo

func (pm *PublishManager) TriggerBackTo(projectID, publishID, stageID int64, req *TriggerBackToReq, currentUser string) error

TriggerBackTo ..

func (*PublishManager) TriggerNextStage

func (pm *PublishManager) TriggerNextStage(projectID, publishID, envID int64, req *TriggerBackToReq, currentUser string) error

TriggerNextStage ..

func (*PublishManager) UpdatePublish

func (pm *PublishManager) UpdatePublish(publishID, stageID, status, runID int64, creator, message, jobName string) error

UpdatePublish ..

func (*PublishManager) UpdatePublishBaseInfo

func (pm *PublishManager) UpdatePublishBaseInfo(publishID int64, req *PublishUpdate) error

UpdatePublishBaseInfo ..

type PublishReq

type PublishReq struct {
	Apps           []*PubllishReqApp `json:"apps"`
	Name           string            `json:"name"`
	BindPipelineID int64             `json:"bind_pipeline_id"`
	VersionNo      string            `json:"version_no"`
}

PublishReq create publish-order request body

type PublishReqFilterQuery

type PublishReqFilterQuery struct {
	query.FilterQuery
	Status  int64 `json:"status"`
	Deleted bool  `json:"deleted"`
}

PublishReqFilterQuery ...

type PublishStep

type PublishStep struct {
	Type   string `json:"type"`
	Name   string `json:"name"`
	Status int64  `json:"status"`
	Index  int    `json:"index"`
}

PublishStep ..

type PublishUpdate

type PublishUpdate struct {
	VersionNo string `json:"version_no"`
	Name      string `json:"name"`
}

PublishUpdate ..

type PubllishReqApp

type PubllishReqApp struct {
	AppID          int64  `json:"app_id"`
	BranchName     string `json:"branch_name"`
	CompileCommand string `json:"compile_command"`
}

PubllishReqApp ..

type TriggerBackToReq

type TriggerBackToReq struct {
	StageID int64  `json:"stage_id"`
	Message string `json:"message"`
}

TriggerBackToReq trigger publish order back to request body

Jump to

Keyboard shortcuts

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