migrationscripts

package
v0.14.2-alpha1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v0.12.0

func All() []migration.Script

All return all the migration scripts of framework

Types

type Blueprint0903Temp added in v0.14.0

type Blueprint0903Temp struct {
	Name   string `json:"name" validate:"required"`
	Mode   string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"`
	Enable bool   `json:"enable"`
	//please check this https://crontab.guru/ for detail
	CronConfig     string `json:"cronConfig" format:"* * * * *" example:"0 0 * * 1"`
	IsManual       bool   `json:"isManual"`
	archived.Model `swaggerignore:"true"`
	Plan           string `json:"plan"`
	Settings       string `json:"settings"`
}

func (Blueprint0903Temp) TableName added in v0.14.0

func (Blueprint0903Temp) TableName() string

type Blueprint20220616 added in v0.12.0

type Blueprint20220616 struct {
	Mode     string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"`
	IsManual bool   `json:"isManual"`
}

func (Blueprint20220616) TableName added in v0.12.0

func (Blueprint20220616) TableName() string

type BlueprintOldVersion added in v0.14.0

type BlueprintOldVersion struct {
	Name   string          `json:"name" validate:"required"`
	Mode   string          `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"`
	Plan   json.RawMessage `json:"plan"`
	Enable bool            `json:"enable"`
	//please check this https://crontab.guru/ for detail
	CronConfig     string          `json:"cronConfig" format:"* * * * *" example:"0 0 * * 1"`
	IsManual       bool            `json:"isManual"`
	Settings       json.RawMessage `json:"settings" swaggertype:"array,string" example:"please check api: /blueprints/<PLUGIN_NAME>/blueprint-setting"`
	archived.Model `swaggerignore:"true"`
}

func (BlueprintOldVersion) TableName added in v0.14.0

func (BlueprintOldVersion) TableName() string

type BoardRepo0913 added in v0.14.0

type BoardRepo0913 struct {
	archived.NoPKModel
}

func (BoardRepo0913) TableName added in v0.14.0

func (BoardRepo0913) TableName() string

type CICDPipeline added in v0.13.0

type CICDPipeline struct {
	archived.DomainEntity
	Name         string `gorm:"type:varchar(255)"`
	CommitSha    string `gorm:"type:varchar(255);index"`
	Branch       string `gorm:"type:varchar(255);index"`
	Repo         string `gorm:"type:varchar(255);index"`
	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
	CreatedDate  time.Time
	FinishedDate *time.Time
}

func (CICDPipeline) TableName added in v0.13.0

func (CICDPipeline) TableName() string

type CICDPipeline0829 added in v0.14.0

type CICDPipeline0829 struct {
	Environment string `gorm:"type:varchar(255)"`
}

func (CICDPipeline0829) TableName added in v0.14.0

func (CICDPipeline0829) TableName() string

type CICDPipeline0905 added in v0.14.0

type CICDPipeline0905 struct {
	CommitSha string `gorm:"type:varchar(255);index"`
	Branch    string `gorm:"type:varchar(255);index"`
	Repo      string `gorm:"type:varchar(255);index"`
}

func (CICDPipeline0905) TableName added in v0.14.0

func (CICDPipeline0905) TableName() string

type CICDPipelineRelationship0905 added in v0.14.0

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

func (CICDPipelineRelationship0905) TableName added in v0.14.0

type CICDPipelineRepo added in v0.13.0

type CICDPipelineRepo struct {
	archived.DomainEntity
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
	Branch    string `gorm:"type:varchar(255)"`
	RepoUrl   string `gorm:"type:varchar(255)"`
}

func (CICDPipelineRepo) TableName added in v0.13.0

func (CICDPipelineRepo) TableName() string

type CICDPipelineRepo0905 added in v0.14.0

type CICDPipelineRepo0905 struct {
	RepoUrl string `gorm:"type:varchar(255)"`
}

func (CICDPipelineRepo0905) TableName added in v0.14.0

func (CICDPipelineRepo0905) TableName() string

type CICDTask added in v0.13.0

type CICDTask struct {
	archived.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"`
	DurationSec  uint64
	StartedDate  time.Time
	FinishedDate *time.Time
}

func (CICDTask) TableName added in v0.13.0

func (CICDTask) TableName() string

type CICDTask0905 added in v0.14.0

type CICDTask0905 struct {
	Environment string `gorm:"type:varchar(255)"`
}

func (CICDTask0905) TableName added in v0.14.0

func (CICDTask0905) TableName() string

type CiCDPipelineRepo0915 added in v0.14.0

type CiCDPipelineRepo0915 struct {
	archived.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 (CiCDPipelineRepo0915) TableName added in v0.14.0

func (CiCDPipelineRepo0915) TableName() string

type CiCDPipelineRepoOld added in v0.14.0

type CiCDPipelineRepoOld struct {
	archived.DomainEntity
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
	Branch    string `gorm:"type:varchar(255)"`
	Repo      string `gorm:"type:varchar(255)"`
}

func (CiCDPipelineRepoOld) TableName added in v0.14.0

func (CiCDPipelineRepoOld) TableName() string

type CommitFile added in v0.12.0

type CommitFile struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:varchar(255)"`
	Additions int
	Deletions int
}

func (CommitFile) TableName added in v0.12.0

func (CommitFile) TableName() string

type CommitFileAddLength added in v0.14.0

type CommitFileAddLength struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:text"`
	Additions int
	Deletions int
}

func (CommitFileAddLength) TableName added in v0.14.0

func (CommitFileAddLength) TableName() string

type CommitFileAddLengthBak added in v0.14.0

type CommitFileAddLengthBak struct {
	archived.DomainEntity
	CommitSha string `gorm:"type:varchar(40)"`
	FilePath  string `gorm:"type:varchar(255)"`
	Additions int
	Deletions int
}

func (CommitFileAddLengthBak) TableName added in v0.14.0

func (CommitFileAddLengthBak) TableName() string

type CommitFileComponent added in v0.12.0

type CommitFileComponent struct {
	archived.NoPKModel
	CommitFileId  string `gorm:"primaryKey;type:varchar(255)"`
	ComponentName string `gorm:"type:varchar(255)"`
}

func (CommitFileComponent) TableName added in v0.12.0

func (CommitFileComponent) TableName() string

type CommitFileComponentBak added in v0.14.0

type CommitFileComponentBak struct {
	archived.NoPKModel
	CommitFileId  string `gorm:"primaryKey;type:varchar(255)"`
	ComponentName string `gorm:"type:varchar(255)"`
}

func (CommitFileComponentBak) TableName added in v0.14.0

func (CommitFileComponentBak) TableName() string

type CommitLineChange added in v0.14.0

type CommitLineChange struct {
	domainlayer.DomainEntity
	Id          string `gorm:"type:varchar(255);primaryKey"`
	CommitSha   string `gorm:"type:varchar(40);"`
	NewFilePath string `gorm:"type:varchar(255);"`
	LineNoNew   int    `gorm:"type:int"`
	LineNoOld   int    `gorm:"type:int"`
	OldFilePath string `gorm:"type:varchar(255)"`
	HunkNum     int    `gorm:"type:int"`
	ChangedType string `gorm:"type:varchar(255)"`
	PrevCommit  string `gorm:"type:varchar(255)"`
}

func (CommitLineChange) TableName added in v0.14.0

func (CommitLineChange) TableName() string

type Component added in v0.12.0

type Component struct {
	RepoId    string `gorm:"type:varchar(255)"`
	Name      string `gorm:"primaryKey;type:varchar(255)"`
	PathRegex string `gorm:"type:varchar(255)"`
}

func (Component) TableName added in v0.12.0

func (Component) TableName() string

type Issue0829 added in v0.14.0

type Issue0829 struct {
	DeploymentId string `gorm:"type:varchar(255)"`
}

func (Issue0829) TableName added in v0.14.0

func (Issue0829) TableName() string

type Pipeline0904Temp added in v0.14.0

type Pipeline0904Temp struct {
	common.Model
	Name          string     `json:"name" gorm:"index"`
	BlueprintId   uint64     `json:"blueprintId"`
	Plan          string     `json:"plan" encrypt:"yes"`
	TotalTasks    int        `json:"totalTasks"`
	FinishedTasks int        `json:"finishedTasks"`
	BeganAt       *time.Time `json:"beganAt"`
	FinishedAt    *time.Time `json:"finishedAt" gorm:"index"`
	Status        string     `json:"status"`
	Message       string     `json:"message"`
	SpentSeconds  int        `json:"spentSeconds"`
	Stage         int        `json:"stage"`
}

func (Pipeline0904Temp) TableName added in v0.14.0

func (Pipeline0904Temp) TableName() string

type PipelineOldVersion added in v0.14.0

type PipelineOldVersion struct {
	archived.Model
	Name          string         `json:"name" gorm:"index"`
	BlueprintId   uint64         `json:"blueprintId"`
	Plan          datatypes.JSON `json:"plan"`
	TotalTasks    int            `json:"totalTasks"`
	FinishedTasks int            `json:"finishedTasks"`
	BeganAt       *time.Time     `json:"beganAt"`
	FinishedAt    *time.Time     `json:"finishedAt" gorm:"index"`
	Status        string         `json:"status"`
	Message       string         `json:"message"`
	SpentSeconds  int            `json:"spentSeconds"`
	Stage         int            `json:"stage"`
}

func (PipelineOldVersion) TableName added in v0.14.0

func (PipelineOldVersion) TableName() string

type PullRequest0829 added in v0.14.0

type PullRequest0829 struct {
	CodingTimespan int64
	ReviewLag      int64
	ReviewTimespan int64
	DeployTimespan int64
	ChangeTimespan int64
}

func (PullRequest0829) TableName added in v0.14.0

func (PullRequest0829) TableName() string

type PullRequest0913 added in v0.14.0

type PullRequest0913 struct {
	OrigCodingTimespan int64
	OrigReviewLag      int64
	OrigReviewTimespan int64
	OrigDeployTimespan int64
}

func (PullRequest0913) TableName added in v0.14.0

func (PullRequest0913) TableName() string

type Subtask20220711 added in v0.13.0

type Subtask20220711 struct {
	commonArchived.Model
	TaskID       uint64     `json:"task_id" gorm:"index"`
	SubtaskName  string     `json:"name" gorm:"column:name;index"`
	Number       int        `json:"number"`
	BeganAt      *time.Time `json:"beganAt"`
	FinishedAt   *time.Time `json:"finishedAt" gorm:"index"`
	SpentSeconds int64      `json:"spentSeconds"`
}

Subtask20220711 DB snapshot model of models.Subtask

func (Subtask20220711) TableName added in v0.13.0

func (s Subtask20220711) TableName() string

type Task20220601 added in v0.12.0

type Task20220601 struct {
	archived.Model
	Plugin        string         `json:"plugin" gorm:"index"`
	Subtasks      datatypes.JSON `json:"subtasks"`
	Options       datatypes.JSON `json:"options"`
	Status        string         `json:"status"`
	Message       string         `json:"message"`
	Progress      float32        `json:"progress"`
	FailedSubTask string         `json:"failedSubTask"`
	PipelineId    uint64         `json:"pipelineId" gorm:"index"`
	PipelineRow   int            `json:"pipelineRow"`
	PipelineCol   int            `json:"pipelineCol"`
	BeganAt       *time.Time     `json:"beganAt"`
	FinishedAt    *time.Time     `json:"finishedAt" gorm:"index"`
	SpentSeconds  int            `json:"spentSeconds"`
}

func (Task20220601) TableName added in v0.12.0

func (Task20220601) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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