Documentation
¶
Index ¶
- Constants
- func InitDB()
- type Addons
- type AppArrange
- type AppBranch
- type AppImageMapping
- type Audit
- type BatchResourceTypeReq
- type CaasApplication
- type CaasTemplate
- type CompileEnv
- type FlowComponent
- type GatewayRouter
- type Group
- type GroupReq
- type GroupRole
- type GroupRoleBundlingReq
- type GroupRoleBundlingUser
- type GroupRoleOperation
- type GroupRoleOperationReq
- type GroupRoleReq
- type GroupRoleUser
- type GroupRoleUserReq
- type GroupRoleUserRsp
- type GroupUserConstraint
- type GroupUserRel
- type IntegrateSetting
- type PipelineInstance
- type ProejctAppFilterQuery
- type ProejctFilterQuery
- type ProejctReleaseFilterQuery
- type Project
- type ProjectApp
- type ProjectDetailResponse
- type ProjectEnv
- type ProjectPipeline
- type ProjectResponse
- type ProjectUser
- type Publish
- type PublishApp
- type PublishJob
- type PublishJobApp
- type PublishOperation
- type PublishOperationLog
- type ResourceConstraint
- type ResourceConstraintReq
- type ResourceOperation
- type ResourceOperationReq
- type ResourceReq
- type ResourceType
- type ResourceTypeReq
- type RoleRsp
- type ScmApp
- type TaskTmpl
- type User
- type UserGroupRole
- type UserReq
Constants ¶
const ( OriginTag = iota + 1 SystemDefaultTag LatestTag )
const ( ProjectRuning ProjectEnd )
const project status defined
const ( Failed = 0 Success = 1 Running = 2 Pending = 3 END = 4 Closed = 5 UnKnown = 6 TerminateSuccess = 7 TerminateFailed = 8 MergeFailed = 9 NotSupport = 10 Skipped = -1 )
const publish-order status defined
const ( StepVerify = "verify" StepManual = "manual" StepBuild = "build" StepDeploy = "deploy" )
const publish-order step defined based on pipeline steps
const ( StatusInit = "INIT" StatusInitFailure = "INIT_FAILURE" StatusRunning = "RUNNING" StatusFailure = "FAILURE" StatusUnknown = "UNKNOWN" StatusSuccess = "SUCCESS" StatusAbort = "ABORTED" )
PublishJob status const defined
const ( JobTypeBuild = "build" JobTypeDeploy = "deploy" )
publishjob job type
const ( LocalAuth = iota + 1 LDAPAuth )
LoginType defined
const (
DEFAULT_WEIGHT = 1
)
const TableNamePrefix = "atom"
TableNamePrefix ..
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addons ¶
type Addons struct {
ID int64 `orm:"pk;column(id);auto" json:"id"`
Deleted bool `orm:"column(deleted)" json:"deleted"`
CreateAt time.Time `orm:"column(create_at);auto_now_add;type(datetime)" json:"create_at"`
UpdateAt time.Time `orm:"column(update_at);auto_now;type(datetime)" json:"update_at"`
DeleteAt *time.Time `orm:"column(delete_at);type(datetime);index;null" json:"delete_at"`
}
Addons Basic fields struct statement
func (Addons) UpdateAddons ¶
type AppArrange ¶
type AppArrange struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
ArrangeEnv string `orm:"column(arrange_env);size(64)" json:"arrange_env"`
EnvID int64 `orm:"column(env_id);" json:"env_id"`
ProjectAppID int64 `orm:"column(project_app_id)" json:"project_app_id"`
Config string `orm:"column(config);type(text)" json:"config"`
}
AppArrange ...
type AppBranch ¶
type AppBranch struct {
Addons
AppID int64 `orm:"column(app_id);" json:"app_id"`
BranchName string `orm:"column(branch_name);size(64)" json:"branch_name"`
Path string `orm:"column(path);size(256)" json:"path"`
}
AppBranch ...
type AppImageMapping ¶
type AppImageMapping struct {
Addons
ArrangeID int64 `orm:"column(arrange_id)" json:"arrange_id"`
Name string `orm:"column(name);size(64)" json:"name"`
Image string `orm:"column(image);size(128)" json:"image"`
ProjectAppID int64 `orm:"column(project_app_id)" json:"project_app_id"`
ImageTagType int64 `orm:"column(iamge_tag_type)" json:"image_tag_type"`
}
type Audit ¶
type Audit struct {
Addons
User string `orm:"column(user)" json:"user"`
Method string `orm:"column(method)" json:"method"`
Operation string `orm:"column(operation)" json:"operation"`
OperationObject string `orm:"column(operation_object)" json:"operation_object"`
OperationBody string `orm:"column(operation_body);type(text)" json:"operation_body"`
OperationStatus int `orm:"column(operation_status)" json:"operation_status"`
}
type BatchResourceTypeReq ¶
type BatchResourceTypeReq struct {
Resources []ResourceReq
}
type CaasApplication ¶
type CaasApplication struct {
Name string `orm:"column(name)" json:"name"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
Env string `orm:"column(env)" json:"env"`
Kind string `orm:"column(kind)" json:"kind"`
TemplateName string `orm:"column(template_name)" json:"template_name"`
Cluster string `orm:"column(cluster)" json:"cluster"`
Namespace string `orm:"column(namespace)" json:"namespace"`
Replicas int `orm:"column(replicas)" json:"replicas"`
Image string `orm:"column(image)" json:"image"`
Template string `orm:"column(template);type(text)" json:"template,omitempty"`
LabelSelector string `orm:"column(label_selector)" json:"label_selector,omitempty"`
StatusReplicas int32 `orm:"column(status_replicas)" json:"status_replicas"`
ReadyReplicas int32 `orm:"column(ready_replicas)" json:"ready_replicas"`
UpdatedReplicas int32 `orm:"column(updated_replicas)" json:"updated_replicas"`
AvailableReplicas int32 `orm:"column(available_replicas)" json:"available_replicas"`
AvailableStatus string `orm:"column(available_status)" json:"available_status"`
Message string `orm:"column(message)" json:"message"`
DeployStatus string `orm:"column(deploy_status)" json:"deploy_status"`
Labels string `orm:"column(labels);type(text)" json:"labels"`
Addons
}
func (*CaasApplication) TableName ¶
func (t *CaasApplication) TableName() string
type CaasTemplate ¶
type CaasTemplate struct {
Name string `orm:"column(name)" json:"name"`
Namespace string `orm:"column(namespace)" json:"namespace"`
Description string `orm:"column(description)" json:"description,omitempty"`
Spec string `orm:"column(spec);type(text)" json:"spec"` //TemplateSpec
Kind string `orm:"column(kind)" json:"kind"`
Addons
}
func (*CaasTemplate) TableName ¶
func (t *CaasTemplate) TableName() string
type CompileEnv ¶
type CompileEnv struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
Image string `orm:"column(image);size(256)" json:"image"`
Command string `orm:"column(command);size(128)" json:"command"`
Args string `orm:"column(args);size(128)" json:"args"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
Description string `orm:"column(description);size(256)" json:"description"`
}
CompileEnv ...
type FlowComponent ¶
type FlowComponent struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
Type string `orm:"column(type)" json:"type"`
Params string `orm:"column(params);size(1024)" json:"params"`
}
FlowComponent ...
type GatewayRouter ¶
type GatewayRouter struct {
Addons
Router string `orm:"column(router)" json:"router"`
Method string `orm:"column(method)" json:"method"`
Backend string `orm:"column(backend)" json:"backend"`
ResourceType string `orm:"column(resource_type)" json:"resource_type"`
ResourceOperation string `orm:"column(resource_operation)" json:"resource_operation"`
}
func (*GatewayRouter) TableIndex ¶
func (t *GatewayRouter) TableIndex() [][]string
func (*GatewayRouter) TableName ¶
func (t *GatewayRouter) TableName() string
func (*GatewayRouter) TableUnique ¶
func (u *GatewayRouter) TableUnique() [][]string
type Group ¶
type Group struct {
Addons
Group string `orm:"column(group);unique;" json:"group"`
Level string `orm:"column(level);null;" json:"level"`
ParentId int64 `orm:"column(parent_id);null;" json:"parentId"`
Description string `orm:"column(description);unique;" json:"description"`
Users []*GroupRoleUserRsp `orm:"-" json:"users"`
Roles []*GroupRole `orm:"-" json:"roles"`
}
type GroupRole ¶
type GroupRole struct {
Addons
Group string `orm:"column(group)" json:"group"`
Role string `orm:"column(role)" json:"role"`
Description string `orm:"column(description)" json:"description"`
Users []*GroupRoleBundlingUser `orm:"-" json:"users"`
}
GroupRole ..
type GroupRoleBundlingReq ¶
type GroupRoleBundlingUser ¶
type GroupRoleOperation ¶
type GroupRoleOperation struct {
Addons
Group string `orm:"column(group)" json:"group"`
Role string `orm:"column(role)" json:"role"`
PolicyName string `orm:"column(policy_name)" json:"policy_name"`
OperationID int64 `orm:"column(operation_id)" json:"operation_id"`
}
func (*GroupRoleOperation) TableIndex ¶
func (t *GroupRoleOperation) TableIndex() [][]string
TableIndex ..
func (*GroupRoleOperation) TableUnique ¶
func (t *GroupRoleOperation) TableUnique() [][]string
TableUnique ..
type GroupRoleOperationReq ¶
type GroupRoleOperationReq struct {
Group string `json:"group"`
Role string `json:"role"`
Operations []int64 `json:"operations"`
}
GroupRoleOperationReq ..
type GroupRoleReq ¶
type GroupRoleReq struct {
Group string `json:"group"`
Role string `json:"role"`
Description string `json:"description"`
Operations []int64 `json:"operations"`
}
GroupRoleReq ..
type GroupRoleUser ¶
type GroupRoleUserReq ¶
type GroupRoleUserRsp ¶
type GroupUserConstraint ¶
type GroupUserConstraint struct {
Addons
Group string `orm:"column(group);size(128)" json:"group"`
User string `orm:"column(user);size(128)" json:"user"`
Constraint string `orm:"column(constraint);size(64)" json:"constraint"`
Value string `orm:"column(value)" json:"value"`
}
func (*GroupUserConstraint) TableIndex ¶
func (t *GroupUserConstraint) TableIndex() [][]string
func (*GroupUserConstraint) TableName ¶
func (t *GroupUserConstraint) TableName() string
func (*GroupUserConstraint) TableUnique ¶
func (t *GroupUserConstraint) TableUnique() [][]string
TableUnique ..
type GroupUserRel ¶
type GroupUserRel struct {
Addons
GroupId int64 `orm:"column(group_id);index;null" json:"groupId"`
UserId int64 `orm:"column(user_id);index;null" json:"userId"`
}
func (*GroupUserRel) TableName ¶
func (t *GroupUserRel) TableName() string
func (*GroupUserRel) TableUnique ¶
func (t *GroupUserRel) TableUnique() [][]string
type IntegrateSetting ¶
type IntegrateSetting struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
Type string `orm:"column(type);size(64)" json:"type"`
Config string `orm:"column(config);type(text)" json:"config"`
Description string `orm:"column(description);size(256)" json:"description"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
}
IntegrateSetting the Basic Data of stages based on commpany
func (*IntegrateSetting) CryptoConfig ¶
func (t *IntegrateSetting) CryptoConfig(raw string)
func (*IntegrateSetting) DecryptConfig ¶
func (t *IntegrateSetting) DecryptConfig() string
type PipelineInstance ¶
type PipelineInstance struct {
Addons
PipelineID int64 `orm:"column(pipeline_id)" json:"pipeline_id"`
PublishID int64 `orm:"column(publish_id)" json:"publish_id"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
Name string `orm:"column(name);size(64)" json:"name"`
Description string `orm:"column(description);size(256)" json:"description"`
Config string `orm:"column(config);type(text)" json:"config"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
IsDefault bool `orm:"column(is_default);default(false)" json:"is_default"`
}
PipelineInstance ..
type ProejctAppFilterQuery ¶
type ProejctAppFilterQuery struct {
query.FilterQuery
Name string `json:"name"`
Type string `json:"type"`
Language string `json:"language"`
Path string `json:"path"`
Creator string `json:"creator"`
CreateAtStart string `json:"createAtStart"`
CreateAtEnd string `json:"createAtEnd"`
}
ProejctAppFilterQuery ..
type ProejctFilterQuery ¶
type ProejctFilterQuery struct {
query.FilterQuery
Status *int64 `json:"status,omitempty"`
CreateAtStart string `json:"createAtStart"`
CreateAtEnd string `json:"createAtEnd"`
Name string `json:"name"`
}
ProejctFilterQuery ..
type ProejctReleaseFilterQuery ¶
type ProejctReleaseFilterQuery struct {
query.FilterQuery
VersionNo string `json:"versionNo"`
Name string `json:"name"`
Step string `json:"step"`
Stage int `json:"stage"`
Status *int64 `json:"status"`
Creator string `json:"creator"`
CreateAtStart string `json:"createAtStart"`
CreateAtEnd string `json:"createAtEnd"`
}
ProejctReleaseFilterQuery ..
type Project ¶
type Project struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
Description string `orm:"column(description);size(256)" json:"description"`
Status int8 `orm:"column(status); default(1)" json:"status"`
Owner string `orm:"column(owner);size(64)" json:"owner"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
StartAt time.Time `orm:"column(start_at);auto_now;type(datetime);null" json:"start_at"`
EndAt *time.Time `orm:"column(end_at);type(datetime);null" json:"end_at"`
}
Project ...
type ProjectApp ¶
type ProjectApp struct {
Addons
Creator string `orm:"column(creator);size(64);null" json:"creator"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
ScmID int64 `orm:"column(scm_id)" json:"scm_id"`
BranchHistoryList []string `orm:"-" json:"branch_history_list"`
}
ProjectApp ...
type ProjectDetailResponse ¶
type ProjectDetailResponse struct {
*ProjectResponse
CodeRepos int64 `json:"code_repos"`
Releases interface{} `json:"releases"`
}
ProjectDetailResponse ..
type ProjectEnv ¶
type ProjectEnv struct {
Addons
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
Name string `orm:"column(name);size(64)" json:"name"`
Description string `orm:"column(description);size(256)" json:"description"`
Cluster int64 `orm:"column(cluster);" json:"cluster"`
Namespace string `orm:"column(namespace);size(256)" json:"namespace"`
ArrangeEnv string `orm:"column(arrange_env);size(64)" json:"arrange_env"`
CIServer int64 `orm:"column(ci_server);" json:"ci_server"`
Registry int64 `orm:"column(registry);" json:"registry"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
}
ProjectEnv the Basic Data of stages based on commpany
type ProjectPipeline ¶
type ProjectPipeline struct {
Addons
Name string `orm:"column(name);size(64)" json:"name"`
Description string `orm:"column(description);size(256)" json:"description"`
Config string `orm:"column(config);type(text)" json:"config"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
IsDefault bool `orm:"column(is_default);default(false)" json:"is_default"`
}
ProjectPipeline ...
type ProjectResponse ¶
type ProjectResponse struct {
ID int64 `json:"id"`
CreateAt time.Time `json:"create_at"`
StartAt time.Time `json:"start_at"`
EndAt *time.Time `json:"end_at"`
UpdateAt time.Time `json:"update_at"`
Name string `json:"name"`
Description string `json:"description"`
Status int8 `json:"status"`
Owner string `json:"owner"`
Creator string `json:"creator"`
Members int `json:"members"`
MembersName []string `json:"membersName"`
}
ProjectResponse Project response info
type ProjectUser ¶
type ProjectUser struct {
Addons
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
User string `orm:"column(user);size(64)" json:"user"`
RoleID int64 `orm:"column(role_id)" json:"role_id"`
}
ProjectUser ...
type Publish ¶
type Publish struct {
Addons
StartAt time.Time `orm:"column(start_at);auto_now;type(datetime);null" json:"start_at"`
EndAt *time.Time `orm:"column(end_at);type(datetime);null" json:"end_at"`
Name string `orm:"column(name);size(65)" json:"name"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
StageID int64 `orm:"column(stage_id)" json:"stage_id"`
StageName string `orm:"column(stage_name);size(128)" json:"stage_name"`
Step string `orm:"column(step);size(128)" json:"step"`
StepType string `orm:"column(step_type);size(64)" json:"step_type"`
StepIndex int `orm:"column(step_index);size(64)" json:"step_index"`
Status int64 `orm:"column(status)" json:"status"`
PipelineID int64 `orm:"column(pipeline_id)" json:"pipeline_id"`
LastPipelineInstanceID int64 `orm:"column(last_pipeline_instance_id)" json:"last_pipeline_instance_id"`
VersionNo string `orm:"column(version_no);size(64)" json:"version_no"`
Operations *PublishOperation `orm:"-" json:"operations"`
NextStep string `orm:"-" json:"next_step"`
Previous string `orm:"-" json:"previous"`
}
Publish ..
type PublishApp ¶
type PublishApp struct {
Addons
PublishID int64 `orm:"column(publish_id)" json:"publish_id"`
ProjectAppID int64 `orm:"column(project_app_id)" json:"project_app_id"`
BranchName string `orm:"column(branch_name);size(64)" json:"branch_name"`
CompileCommand string `orm:"column(compile_command);size(1024)" json:"compile_command"`
}
PublishApp ..
type PublishJob ¶
type PublishJob struct {
Addons
PublishID int64 `orm:"column(publish_id)" json:"publish_id"`
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
Status string `orm:"column(status);size(16)" json:"status"`
RunID int64 `orm:"column(run_id)" json:"run_id"`
Progress int `orm:"column(progress)" json:"progress"`
DurationInMillis int64 `orm:"column(duration_in_millis)" json:"duration_in_millis"`
EnvID int64 `orm:"column(stage_id)" json:"stage_id"`
Operator string `orm:"column(operator); size(64)" json:"operator"`
JobType string `orm:"column(job_type);size(64)" json:"job_type"`
}
PublishJob ..
type PublishJobApp ¶
type PublishJobApp struct {
Addons
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
PublishJobID int64 `orm:"column(publish_job_id)" json:"publish_job_id"`
ProjectAPPID int64 `orm:"column(project_app_id)" json:"project_app_id"`
BranchName string `orm:"column(branch_name); size(64)" json:"branch_name"`
BranchURL string `orm:"column(branch_url); size(255)" json:"branch_url"`
ImageAddr string `orm:"column(image_addr);size(255)" json:"image_addr"`
ImageVersion string `orm:"column(image_version);size(64)" json:"image_version"`
Release string `orm:"column(release);size(64)" json:"release"`
Gray bool `orm:"column(gray)" json:"gray"`
}
PublishJobApp ..
type PublishOperation ¶
type PublishOperation struct {
Manual bool `json:"manual"`
Build bool `json:"build"`
Terminate bool `json:"terminate"`
Deploy bool `json:"deploy"`
MergeBranch bool `json:"merge-branch"`
NextStage bool `json:"next-stage"`
BackTo bool `json:"back-to"`
}
PublishOperation ..
type PublishOperationLog ¶
type PublishOperationLog struct {
Addons
PipelineInstanceID int64 `orm:"column(pipeline_instance_id)" json:"pipeline_instance_id"`
StageInstanceID int64 `orm:"column(stage_instance_id)" json:"stage_instance_id"`
StepIndex int `orm:"column(step_index)" json:"step_index"`
PublishID int64 `orm:"column(publish_id)" json:"publish_id"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
Type string `orm:"column(type);size(128);null" json:"type"`
StageID int64 `orm:"column(stage_id)" json:"stage_id"`
Stage string `orm:"column(stage);size(128)" json:"stage"`
Step string `orm:"column(step);size(128)" json:"step"`
Status int64 `orm:"column(status);" json:"status"`
RunID int64 `orm:"column(run_id);" json:"run_id"`
JobName string `orm:"column(job_name);size(128)" json:"job_name"`
Code string `orm:"column(code);size(128)" json:"code"`
Message string `orm:"column(message);size(256)" json:"message"`
}
PublishOperationLog ..
func (*PublishOperationLog) TableName ¶
func (t *PublishOperationLog) TableName() string
TableName ...
type ResourceConstraint ¶
type ResourceConstraint struct {
Addons
ResourceType string `orm:"column(resource_type);index" json:"resource_type"`
ResourceConstraint string `orm:"column(resource_constraint)" json:"resource_constraint"`
Description string `orm:"column(description)" json:"description"`
}
func (*ResourceConstraint) TableIndex ¶
func (t *ResourceConstraint) TableIndex() [][]string
func (*ResourceConstraint) TableName ¶
func (t *ResourceConstraint) TableName() string
func (*ResourceConstraint) TableUnique ¶
func (u *ResourceConstraint) TableUnique() [][]string
type ResourceConstraintReq ¶
type ResourceConstraintReq struct {
ResourceType string `json:"resource_type"`
ResourceConstraint string `json:"resource_constraint"`
Description string `json:"description"`
}
func (*ResourceConstraintReq) Verify ¶
func (v *ResourceConstraintReq) Verify() error
type ResourceOperation ¶
type ResourceOperation struct {
Addons
ResourceType string `orm:"column(resource_type);index" json:"resource_type"`
ResourceOperation string `orm:"column(resource_operation)" json:"resource_operation"`
Description string `orm:"column(description)" json:"description"`
}
ResourceOperation ..
func (*ResourceOperation) TableIndex ¶
func (t *ResourceOperation) TableIndex() [][]string
TableIndex ..
func (*ResourceOperation) TableUnique ¶
func (u *ResourceOperation) TableUnique() [][]string
type ResourceOperationReq ¶
type ResourceOperationReq struct {
ResourceType string `json:"resource_type"`
ResourceOperation string `json:"resource_operation"`
Description string `json:"description"`
}
func (*ResourceOperationReq) Verify ¶
func (v *ResourceOperationReq) Verify() error
type ResourceReq ¶
type ResourceReq struct {
ResourceType ResourceTypeReq
ResourceOperations []ResourceOperationReq
ResourceConstraints []ResourceConstraintReq
}
type ResourceType ¶
type ResourceType struct {
Addons
ResourceType string `orm:"column(resource_type);index; size(128);" json:"resource_type"`
Description string `orm:"column(description);size(128)" json:"description"`
ResourceOperations []*ResourceOperation `orm:"-" json:"resource_operations"`
ResourceConstraints []*ResourceConstraint `orm:"-" json:"resource_constraints"`
}
func (*ResourceType) TableName ¶
func (t *ResourceType) TableName() string
func (*ResourceType) TableUnique ¶
func (u *ResourceType) TableUnique() [][]string
type ResourceTypeReq ¶
type ResourceTypeReq struct {
ResourceType string `json:"resource_type"`
Description string `json:"description"`
}
func (*ResourceTypeReq) Verify ¶
func (v *ResourceTypeReq) Verify() error
type ScmApp ¶ added in v1.5.0
type ScmApp struct {
Addons
Creator string `orm:"column(creator);size(64);null" json:"creator"`
Name string `orm:"column(name);size(64)" json:"name"`
FullName string `orm:"column(full_name);size(64)" json:"full_name"`
Language string `orm:"column(language);size(64)" json:"language"`
BranchName string `orm:"column(branch_name);size(64)" json:"branch_name"`
Path string `orm:"column(path);size(255)" json:"path"`
RepoID int64 `orm:"column(repo_id)" json:"repo_id"`
CompileEnvID int64 `orm:"column(compile_env_id);size(64)" json:"compile_env_id"`
BuildPath string `orm:"column(build_path);size(64)" json:"build_path"`
Dockerfile string `orm:"column(dockerfile);size(256)" json:"dockerfile"`
BranchHistoryList []string `orm:"-" json:"branch_history_list"`
}
ScmApp ...
type TaskTmpl ¶
type TaskTmpl struct {
Addons
ComponentID int64 `orm:"column(component_id)" json:"component_id"`
Creator string `orm:"column(creator);size(64)" json:"creator"`
Name string `orm:"column(name);size(64)" json:"name"`
Description string `orm:"column(description);size(256)" json:"description"`
Type string `orm:"column(type);size(64)" json:"type"`
TypeDisplay string `orm:"column(type_display);size(128)" json:"type_display"`
Params string `orm:"column(params);size(1024)" json:"params"`
SubTask string `orm:"column(sub_task);size(4096)" json:"sub_task"`
}
TaskTmpl ...
type User ¶
type User struct {
Addons
User string `orm:"column(user);unique" json:"user"`
Name string `orm:"column(name)" json:"name"`
Email string `orm:"column(email)" json:"email"`
Token string `orm:"column(token);unique;" json:"token"`
LoginType int `orm:"column(login_type);" json:"login_type"`
Password string `json:"-" gorm:"type:varchar(128);comment:密码"`
LastLoginTime time.Time `orm:"column(last_login_time);null;type(datetime);" json:"lastLoginTime"`
Admin int `orm:"-" json:"admin"`
GroupAdmin int `orm:"-" json:"groupAdmin"`
UserGroups []*UserGroupRole `orm:"-" json:"roles"`
Groups []*Group `orm:"-" json:"groups"`
}