Versions in this module Expand all Collapse all v0 v0.0.0 Jul 25, 2018 Changes in this version + const UserType_ADMIN + const UserType_BOT + const UserType_USER + var ProjectConfigDefaultStages = []string + type Job struct + Error *Status + Id bson.ObjectId + Log string + Progress pb.JobProgress + ProjectId bson.ObjectId + Score int32 + UserId bson.ObjectId + func FromPbJob(j *pb.Job) *Job + func NewJob(uid bson.ObjectId, pid bson.ObjectId) *Job + func (j *Job) ToPbJob() (pbJob *pb.Job) + type OrderType int + const OrderTypeAsc + const OrderTypeDesc + const OrderTypeUnset + type Project struct + Config *ProjectConfig + CreateTime time.Time + CreatedBy string + Desc string + Id bson.ObjectId + Name string + UpdatedTime time.Time + func FromPbProject(p *pb.Project) *Project + func (p *Project) ToPbProject(rich bool) (pbProject *pb.Project) + type ProjectChecklistElem struct + Path string + TargetType int + type ProjectConfig struct + Checklist []*pb.ProjectChecklistElem + Env []string + Image string + Jobs map[string]ProjectJobConfig + MaximumCpu uint64 + MaximumMemMb uint64 + Stages []string + TimeoutSec uint64 + Volume []string + func LoadProjectConfig(path string) (*ProjectConfig, error) + func (c *ProjectConfig) ToBashScriptsExecutor() *helpers.BashScriptsExecutor + func (c *ProjectConfig) ToPbProjectConfig(rich bool) (pbConfig *pb.ProjectConfig) + type ProjectJobConfig struct + Script string + Scripts []string + type Secret struct + CreateTime time.Time + Id bson.ObjectId + Secret string + TempToken string + UpdatedTime time.Time + UserId bson.ObjectId + func FromPbSecret(u *pb.Secret) *Secret + func (u *Secret) ToPbSecret() (pbSecret *pb.Secret) + func (u *Secret) UpdateTime() *Secret + type Status struct + Code errcodes.Code + Details []*any.Any + Message string + func FromPbStatus(st *status.Status) *Status + func (st *Status) ToPbStatus() (pbSt *status.Status) + type User struct + CreateTime time.Time + CreatedBy string + DisplayName string + Email string + Id bson.ObjectId + Name string + UpdatedTime time.Time + UserType pb.UserType + func FromPbUser(u *pb.User) *User + func (u *User) ToPbUser() (pbUser *pb.User) + func (u *User) UpdateTime() *User + type UserServiceFilterOption struct + Name string + Order OrderType + Query string + UserType []pb.UserType + func ParseUserServiceFilterOption(filter string) (opt *UserServiceFilterOption) + type UserType pb.UserType