Documentation ¶
Index ¶
- Constants
- Variables
- func GetBasePath() string
- func InitStorage(path string) (err error)
- func PathExist(path string) (res bool)
- func PathJoin(path string, filename string) string
- func PathNotExist(path string) (res bool)
- type App
- type AppInfo
- type AppList
- type DNA
- type Gene
- type GeneForWork
- type MP
- type MPForWork
- type MinFile
- type Project
Constants ¶
View Source
const ( Success = "SUCCESS" // 成功 Fail = "FAIL" // 失败 Run = "RUNING" // 运行中 Init = "INIT" // 初始化 Queue = "QUEUE" // 队列中 SimpleFilePerm = 0666 DangerPerm = 0777 InfoDir = "info" AppListFile = "apps.json" )
Variables ¶
View Source
var (
PATH = ""
)
Functions ¶
Types ¶
type App ¶
type App struct { Project string `json:"project,omitempty" yaml:"project,omitempty"` Name string `json:"name" yaml:"name"` }
func (*App) RegisterApp ¶
type DNA ¶
type DNA struct { Name string `yaml:"name" json:"name"` Env map[string]string `yaml:"env" json:"env"` Genes []GeneForWork `yaml:"genes" json:"genes"` }
DNA 运行使用的大数据结构
func HandleMinFile ¶
HandleMinFile 配置文件转换到运行的结构体
type Gene ¶
type Gene struct { Name string `yaml:"name" json:"name"` MPs []MP `yaml:"MPs" json:"MPs"` Ignore bool `yaml:"ignore,omitempty" json:"ignore,omitempty"` When string `yaml:"when,omitempty" json:"when,omitempty"` }
Gene (基因)解析文件产生的对应顺序
type GeneForWork ¶
type GeneForWork struct { Name string `yaml:"name" json:"name"` MPs []MPForWork `yaml:"MPs" json:"MPs"` Ignore bool `yaml:"ignore,omitempty" json:"ignore,omitempty"` When string `yaml:"when,omitempty" json:"when,omitempty"` Status string `yaml:"status" json:"status"` }
GeneForWork (基因)实际运行使用的阶段级别的数据结构
type MP ¶
type MP struct { Name string `yaml:"name" json:"name"` Description string `yaml:"description,omitempty" json:"description,omitempty"` AminoAcid string `yaml:"amino_acid" json:"amino_acid"` Chain string `yaml:"chain,omitempty" json:"chain,omitempty"` Params map[string]string `yaml:"params,omitempty" json:"params,omitempty"` Ignore bool `yaml:"ignore,omitempty" json:"ignore,omitempty"` When string `yaml:"when,omitempty" json:"when,omitempty"` Status string `yaml:"-" json:"status,omitempty"` }
MP 最小的单位,CICD最小的执行单位
Click to show internal directories.
Click to hide internal directories.