devops

package
v0.14.0-alpha8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS     = "SUCCESS"
	FAILURE     = "FAILURE"
	ABORT       = "ABORT"
	IN_PROGRESS = "IN_PROGRESS"
	DONE        = "DONE"
	MANUAL      = "MANUAL"
)
View Source
const (
	TEST       = "TEST"
	LINT       = "LINT"
	BUILD      = "BUILD"
	DEPLOYMENT = "DEPLOYMENT"
)
View Source
const (
	PRODUCTION = "PRODUCTION"
	STAGING    = "STAGING"
	TESTING    = "TESTING"
)

Variables

This section is empty.

Functions

func GetResult added in v0.13.0

func GetResult(rule *ResultRule, input interface{}) string

GetResult compare the input with rule for return the enmu value of result

func GetStatus added in v0.13.0

func GetStatus(rule *StatusRule, input interface{}) string

GetStatus compare the input with rule for return the enmu value of status

Types

type CICDPipeline added in v0.13.0

type CICDPipeline struct {
	domainlayer.DomainEntity
	Name         string `gorm:"type:varchar(255)"`
	Result       string `gorm:"type:varchar(100)"`
	Status       string `gorm:"type:varchar(100)"`
	Type         string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"`
	DurationSec  uint64
	Environment  string `gorm:"type:varchar(255)"`
	CreatedDate  time.Time
	FinishedDate *time.Time
}

func (CICDPipeline) TableName added in v0.13.0

func (CICDPipeline) TableName() string

type CICDPipelineRelationship added in v0.14.0

type CICDPipelineRelationship struct {
	ParentPipelineId string `gorm:"primaryKey;type:varchar(255)"`
	ChildPipelineId  string `gorm:"primaryKey;type:varchar(255)"`
	common.NoPKModel
}

func (CICDPipelineRelationship) TableName added in v0.14.0

func (CICDPipelineRelationship) TableName() string

type CICDTask added in v0.13.0

type CICDTask struct {
	domainlayer.DomainEntity
	Name         string `gorm:"type:varchar(255)"`
	PipelineId   string `gorm:"index;type:varchar(255)"`
	Result       string `gorm:"type:varchar(100)"`
	Status       string `gorm:"type:varchar(100)"`
	Type         string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"`
	Environment  string `gorm:"type:varchar(255)"`
	DurationSec  uint64
	StartedDate  time.Time
	FinishedDate *time.Time
}

func (CICDTask) TableName added in v0.13.0

func (CICDTask) TableName() string

type CiCDPipelineCommit added in v0.14.0

type CiCDPipelineCommit struct {
	common.NoPKModel
	PipelineId string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha  string `gorm:"primaryKey;type:varchar(255)"`
	Branch     string `gorm:"type:varchar(255)"`
	RepoId     string `gorm:"index;type:varchar(255)"`
	RepoUrl    string
}

func (CiCDPipelineCommit) TableName added in v0.14.0

func (CiCDPipelineCommit) TableName() string

type ResultRule added in v0.13.0

type ResultRule struct {
	Success []string
	Failed  []string
	Abort   []string
	Manual  []string
	Default string
}

type StatusRule added in v0.13.0

type StatusRule struct {
	InProgress []string
	Done       []string
	Manual     []string
	Default    string
}

Jump to

Keyboard shortcuts

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