workflow

package
v0.0.0-...-d807b53 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	K string `json:"key"`
	V string `json:"value"`
}

func (*Env) Scan

func (p *Env) Scan(data interface{}) error

Scan 实现方法

func (Env) Value

func (p Env) Value() (driver.Value, error)

gorm 自定义结构需要实现 Scan 两个方法

type Envs

type Envs []*Env

func (*Envs) Scan

func (p *Envs) Scan(data interface{}) error

Scan 实现方法

func (Envs) Value

func (p Envs) Value() (driver.Value, error)

gorm 自定义结构需要实现 Value Scan 两个方法 Value 实现方法

type Workflow

type Workflow struct {
	orm.Model
	Name string
	//RepoId uint32
	Yaml string
	//Enable bool
	Envs Envs
}

func (*Workflow) TableName

func (p *Workflow) TableName() string

Jump to

Keyboard shortcuts

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