deploy

package
v0.0.0-...-71876dc Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUDIT_STATUS_PENDING = 1
	AUDIT_STATUS_OK      = 2
	AUDIT_STATUS_REFUSE  = 3
)
View Source
const (
	APPLY_STATUS_NONE     = 1
	APPLY_STATUS_ING      = 2
	APPLY_STATUS_SUCCESS  = 3
	APPLY_STATUS_FAILED   = 4
	APPLY_STATUS_DROP     = 5
	APPLY_STATUS_ROLLBACK = 6
)
View Source
const (
	BUILD_STATUS_NONE    = 0
	BUILD_STATUS_START   = 1
	BUILD_STATUS_SUCCESS = 2
	BUILD_STATUS_FAILED  = 3
)
View Source
const (
	DEPLOY_STATUS_NONE    = 0
	DEPLOY_STATUS_START   = 1
	DEPLOY_STATUS_SUCCESS = 2
	DEPLOY_STATUS_FAILED  = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Apply

type Apply struct {
	ID                  int    `json:"id"`
	SpaceId             int    `json:"space_id"`
	ProjectId           int    `json:"project_id"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	BranchName          string `json:"branch_name"`
	CommitVersion       string `json:"commit_version"`
	AuditStatus         int    `json:"audit_status"`
	AuditRefusalReasion string `json:"audit_refusal_reasion"`
	RollbackId          int    `json:"rollback_id"`
	RollbackApplyId     int    `json:"rollback_apply_id"`
	IsRollbackApply     int    `json:"is_rollback_apply"`
	Status              int    `json:"status"`
	UserId              int    `json:"user_id"`
	Username            string `json:"username"`
	Email               string `json:"email"`
	RollbackStatus      int    `json:"rollback_status"`
	Ctime               int    `json:"ctime"`
}

func (*Apply) CheckHaveDeploying

func (a *Apply) CheckHaveDeploying() (bool, error)

func (*Apply) Create

func (a *Apply) Create() error

func (*Apply) Detail

func (a *Apply) Detail() error

func (*Apply) DropStatus

func (a *Apply) DropStatus() error

func (*Apply) List

func (a *Apply) List(keyword string, spaceIds []int, offset, limit int) ([]Apply, error)

func (*Apply) RollbackList

func (a *Apply) RollbackList() ([]Apply, error)

func (*Apply) Total

func (a *Apply) Total(keyword string, spaceIds []int) (int, error)

func (*Apply) Update

func (a *Apply) Update() error

func (*Apply) UpdateAuditStatus

func (a *Apply) UpdateAuditStatus() error

func (*Apply) UpdateRollback

func (a *Apply) UpdateRollback() error

func (*Apply) UpdateStatus

func (a *Apply) UpdateStatus() error

type Build

type Build struct {
	ID         int    `json:"id"`
	ApplyId    int    `json:"apply_id"`
	StartTime  int    `json:"start_time"`
	FinishTime int    `json:"finish_time"`
	Status     int    `json:"status"`
	Tar        string `json:"tar"`
	Output     string `json:"Output"`
	Errmsg     string `json:"errmsg"`
	Ctime      int    `json:"ctime"`
}

func (*Build) Create

func (b *Build) Create() error

func (*Build) CreateFull

func (b *Build) CreateFull() error

func (*Build) Delete

func (b *Build) Delete() error

func (*Build) Detail

func (b *Build) Detail() error

func (*Build) Exists

func (b *Build) Exists() (bool, error)

func (*Build) Finish

func (b *Build) Finish() error

type Deploy

type Deploy struct {
	ID      int    `json:"id"`
	ApplyId int    `json:"apply_id"`
	GroupId int    `json:"group_id"`
	Status  int    `json:"status"`
	Content string `json:"content"`
	Ctime   int    `json:"ctime"`
}

func (*Deploy) Create

func (d *Deploy) Create() error

func (*Deploy) DeleteByApplyId

func (d *Deploy) DeleteByApplyId() error

func (*Deploy) TaskList

func (d *Deploy) TaskList() ([]Deploy, error)

func (*Deploy) UpdateResult

func (d *Deploy) UpdateResult() error

func (*Deploy) UpdateStatus

func (d *Deploy) UpdateStatus() error

Jump to

Keyboard shortcuts

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