v1_1_2_a_pipeline_workspace_chg_code

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrateVersion = "v1.1.2_a"

Functions

func Migrate

func Migrate(db *gorm.DB) error

Types

type OriginPipelineWorkspace

type OriginPipelineWorkspace struct {
	ID           uint      `gorm:"primaryKey" json:"id"`
	Name         string    `gorm:"size:255;not null;uniqueIndex" json:"name"`
	Description  string    `gorm:"type:text;" json:"description"`
	Type         string    `gorm:"size:20;not null" json:"type"`
	CodeType     string    `gorm:"size:255" json:"code_type"`
	CodeUrl      string    `gorm:"size:255" json:"code_url"`
	CodeSecretId uint      `json:"code_secret_id"`
	CreateUser   string    `gorm:"size:50;not null" json:"create_user"`
	UpdateUser   string    `gorm:"size:50;not null" json:"update_user"`
	CreateTime   time.Time `gorm:"column:create_time;not null;autoCreateTime" json:"create_time"`
	UpdateTime   time.Time `gorm:"column:update_time;not null;autoUpdateTime" json:"update_time"`
}

func (OriginPipelineWorkspace) TableName

func (OriginPipelineWorkspace) TableName() string

type PipelineWorkspace

type PipelineWorkspace struct {
	ID          uint                   `gorm:"primaryKey" json:"id"`
	Name        string                 `gorm:"size:255;not null;uniqueIndex" json:"name"`
	Description string                 `gorm:"type:text;" json:"description"`
	Type        string                 `gorm:"size:20;not null" json:"type"`
	Code        *PipelineWorkspaceCode `gorm:"type:json" json:"code"`
	CreateUser  string                 `gorm:"size:50;not null" json:"create_user"`
	UpdateUser  string                 `gorm:"size:50;not null" json:"update_user"`
	CreateTime  time.Time              `gorm:"column:create_time;not null;autoCreateTime" json:"create_time"`
	UpdateTime  time.Time              `gorm:"column:update_time;not null;autoUpdateTime" json:"update_time"`
}

type PipelineWorkspaceCode

type PipelineWorkspaceCode struct {
	Type     string `json:"type"`
	ApiUrl   string `json:"api_url"`
	CloneUrl string `json:"clone_url"`
	SecretId uint   `json:"secret_id"`
}

func (*PipelineWorkspaceCode) Scan

func (c *PipelineWorkspaceCode) Scan(value interface{}) error

func (PipelineWorkspaceCode) Value

func (c PipelineWorkspaceCode) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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