Versions in this module Expand all Collapse all v0 v0.6.1 Nov 2, 2023 v0.5.1 Sep 7, 2019 v0.5.0 Sep 7, 2019 v0.4.0 Sep 1, 2019 Changes in this version type Pipeline + FailedTask *Task + FinishedTask *Task type PipelineRecords + Steps []*TaskRecords + func (records *PipelineRecords) Store() error + func (records *PipelineRecords) ToString() (string, error) + func (records *PipelineRecords) Update() error + type Result struct + Pipeline *PipelineRecords + Steps []*TaskRecords type Task + func (task *Task) Exec(ctx context.Context, username string, dir string, env []string) (record *TaskRecords, err error) type TaskRecords + func (records *TaskRecords) Store() error + func (records *TaskRecords) ToString() (string, error) + func (records *TaskRecords) Update() error v0.3.0 Aug 14, 2019 Changes in this version + const DefaultTimeFormat + const MASTER + const MODEHOOK + const MODEHTTP + const MODEMAIL + const MODESHELL + const OFFLINE + const ONLINE + const STATUSDISABLED + const STATUSNORMAL + const WORKER + var Engine *xorm.Engine + func Connection() (*xorm.Engine, error) + func CreateLog(model Model, uid string, operation string) error + func GeneratePassword(password string) ([]byte, error) + func Migrate() error + func ValidatePassword(password string, hashed []byte) (bool, error) + type Log struct + CreatedAt time.Time + Id int64 + Operation string + Result string + UserId string + func (log *Log) MarshalJSON() ([]byte, error) + func (log *Log) Store() error + func (log *Log) TableName() string + type Model interface + Store func() error + ToString func() (string, error) + Update func() error + type Node struct + CreatedAt utils.Time + Description string + Host string + Id string + Mode string + Name string + Pipelines []*PipelineNodePivot + Port int + Status string + UpdatedAt utils.Time + Version string + func (node *Node) CreateOrUpdate() error + func (node *Node) Offline() + func (node *Node) Online() + func (node *Node) Store() error + func (node *Node) TableName() string + func (node *Node) ToString() (string, error) + func (node *Node) Update() error + type PasswordResets struct + CreatedAt time.Time + Email string + Token string + func (resets *PasswordResets) TableName() string + type Pipeline struct + CreatedAt utils.Time + Description string + Expression *cronexpr.Expression + Failed string + Finished string + Id string + Name string + NextTime time.Time + Nodes []string + Overlap int + Spec string + Status int + Steps []*PipelineTaskPivot + UpdatedAt utils.Time + func (pipeline *Pipeline) Build() (origin []byte, err error) + func (pipeline *Pipeline) Destroy() error + func (pipeline *Pipeline) Store() error + func (pipeline *Pipeline) TableName() string + func (pipeline *Pipeline) ToString() (string, error) + func (pipeline *Pipeline) Update() error + type PipelineNodePivot struct + CreatedAt utils.Time + Id string + NodeId string + Pipeline *Pipeline + PipelineId string + func (pivot *PipelineNodePivot) Destroy() error + func (pivot *PipelineNodePivot) Store() error + func (pivot *PipelineNodePivot) TableName() string + type PipelineRecords struct + BeginWith utils.Time + CreatedAt utils.Time + Duration int64 + FinishWith utils.Time + Id string + NodeId string + PipelineId string + Spec string + Status int + UpdatedAt utils.Time + WorkerName string + func (records *PipelineRecords) TableName() string + type PipelineTaskPivot struct + CreatedAt utils.Time + Dependence string + Directory string + Environment string + Id string + Interval int + PipelineId string + Retries int + Step int + Task *Task + TaskId string + Timeout int + UpdatedAt utils.Time + User string + func (pivot *PipelineTaskPivot) Destroy() error + func (pivot *PipelineTaskPivot) Store() error + func (pivot *PipelineTaskPivot) TableName() string + func (pivot *PipelineTaskPivot) ToString() (string, error) + func (pivot *PipelineTaskPivot) Update() error + type Seeder interface + Seed func() error + type Task struct + Content string + CreatedAt utils.Time + Description string + Id string + Method string + Mode string + Name string + UpdatedAt utils.Time + Url string + func (task *Task) Destroy() error + func (task *Task) Store() error + func (task *Task) TableName() string + func (task *Task) ToString() (string, error) + func (task *Task) Update() error + type TaskRecords struct + BeginWith utils.Time + Content string + CreatedAt utils.Time + Duration int64 + FinishWith utils.Time + Id int64 + Mode string + NodeId string + PipelineRecordId string + Result string + Retries int + Status string + TaskId string + TaskName string + Timeout int + UpdatedAt utils.Time + WorkerName string + func (records *TaskRecords) TableName() string + type User struct + CreatedAt utils.Time + Email string + Id string + Manager bool + Name string + Password string + UpdatedAt utils.Time + func (user *User) ModifyEmail(email string) (*User, error) + func (user *User) Save() error + func (user *User) Store() error + func (user *User) TableName() string + func (user *User) ToString() (string, error) + func (user *User) Update() error