Documentation ¶
Index ¶
- Constants
- type CallBackJobInfo
- type CancelJobReq
- type CommitsWithPipelines
- type CommonResp
- type DeployProjectReq
- type Deployment
- type GDNSEtcdAllRecords
- type GDNSEtcdRecords
- type GDNSGetAllRecordRequest
- type GDNSRecord
- type Job
- type NullBool
- type NullFloat64
- type NullInt32
- type NullInt64
- type NullString
- type NullTime
- type Project
- type ProjectResp
- type ProjectRespData
- type TriggerJobReq
- type User
- type UserReq
- type UserResp
Constants ¶
View Source
const ( RespCodeSuccess int = 1000 RespCodeFailed int = 1001 RespCodeData int = 1002 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackJobInfo ¶
type CallBackJobInfo struct { ProjectID int `json:"gitlab_project_id"` PipelineID int `json:"gitlab_pipeline_id"` JobID int `json:"gitlab_job_id"` GitBranch string `json:"git_branch"` GitCommitID string `json:"git_commit_id"` Type int `json:"type"` Status int `json:"status"` LogsReady string `json:"logs_ready"` ExtData string `json:"ext_data"` }
type CancelJobReq ¶
type CommitsWithPipelines ¶
func (CommitsWithPipelines) Len ¶
func (cp CommitsWithPipelines) Len() int
func (CommitsWithPipelines) Less ¶
func (cp CommitsWithPipelines) Less(i, j int) bool
func (CommitsWithPipelines) Swap ¶
func (cp CommitsWithPipelines) Swap(i, j int)
type CommonResp ¶
type DeployProjectReq ¶
type Deployment ¶
type Deployment struct { ID NullInt32 `json:"id" form:"id" db:"id"` Name NullString `json:"name" form:"name" db:"name"` NameSpace NullString `json:"namespace" form:"namespace" db:"namespace"` SpecReplicas NullInt32 `json:"spec_replicas" form:"spec_replicas" db:"spec_replicas"` Replicas NullInt32 `json:"replicas" form:"replicas" db:"replicas"` AvailableReplicas NullInt32 `json:"available_replicas" form:"available_replicas" db:"available_replicas"` NewRsName NullString `json:"new_rs_name" form:"new_rs_name" db:"new_rs_name"` NewRsAvailableReplicas NullInt32 `json:"new_rs_available_replicas" form:"new_rs_available_replicas" db:"new_rs_available_replicas"` OldRsName NullString `json:"old_rs_name" form:"old_rs_name" db:"old_rs_name"` OldRsAvailableReplicas NullInt32 `json:"old_rs_available_replicas" form:"old_rs_available_replicas" db:"old_rs_available_replicas"` ImageTag NullString `json:"image_tag" form:"image_tag" db:"image_tag"` Deleted NullBool `json:"deleted" form:"deleted" db:"deleted"` CreateTime NullInt64 `db:"create_time"` UpdateTime NullInt64 `db:"update_time"` }
type GDNSEtcdAllRecords ¶
type GDNSEtcdAllRecords map[string]GDNSEtcdRecords
type GDNSEtcdRecords ¶
type GDNSEtcdRecords map[uint16][]GDNSRecord
type GDNSGetAllRecordRequest ¶
type GDNSRecord ¶
type Job ¶
type Job struct { ID NullInt32 `json:"id" form:"id" db:"id"` GitLabProjectID NullInt32 `json:"gitlab_project_id" form:"gitlab_project_id" db:"gitlab_project_id"` GitLabPipelineID NullInt32 `json:"gitlab_pipeline_id" form:"gitlab_pipeline_id" db:"gitlab_pipeline_id"` GitLabJobID NullInt32 `json:"gitlab_job_id" form:"gitlab_job_id" db:"gitlab_job_id"` GitLabJobName NullString `json:"gitlab_job_name" form:"gitlab_job_name" db:"gitlab_job_name"` Type NullInt32 `json:"type" form:"type" db:"type"` GitBranch NullString `json:"git_branch" form:"git_branch" db:"git_branch"` GitCommitID NullString `json:"git_commit_id" form:"git_commit_id" db:"git_commit_id"` ExtData NullString `json:"ext_data" form:"ext_data" db:"ext_data"` LogsReady NullString `json:"logs_ready" form:"logs_ready" db:"logs_ready"` Status NullInt32 `json:"status" form:"status" db:"status"` UserID NullInt32 `json:"user_id" form:"user_id" db:"user_id"` UserName NullString `json:"user_name" form:"user_name" db:"user_name"` CreateTime NullInt64 `db:"create_time"` UpdateTime NullInt64 `db:"update_time"` }
type NullFloat64 ¶
type NullFloat64 struct {
sql.NullFloat64
}
func (NullFloat64) MarshalJSON ¶
func (v NullFloat64) MarshalJSON() ([]byte, error)
func (*NullFloat64) UnmarshalJSON ¶
func (v *NullFloat64) UnmarshalJSON(data []byte) error
type NullString ¶
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶
func (v NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (v *NullString) UnmarshalJSON(data []byte) error
type Project ¶
type Project struct { ID NullInt32 `json:"id" form:"id" db:"id"` Name NullString `json:"name" form:"name" db:"name"` GitLabProjectID NullInt32 `json:"gitlab_project_id" form:"gitlab_project_id" db:"gitlab_project_id"` GitLabProjectURL NullString `json:"gitlab_project_url" form:"gitlab_project_url" db:"gitlab_project_url"` GitBranch NullString `json:"git_branch" form:"git_branch" db:"git_branch"` GitCommitID NullString `json:"git_commit_id" form:"git_commit_id" db:"git_commit_id"` GitCommitMessage NullString `json:"git_commit_message" form:"git_commit_message" db:"git_commit_message"` DeploymentID NullInt32 `json:"k8s_deployment_id" form:"k8s_deployment_id" db:"k8s_deployment_id"` Status NullInt32 `json:"status" form:"status" db:"status"` CreateTime NullInt64 `db:"create_time"` UpdateTime NullInt64 `db:"update_time"` }
type ProjectResp ¶
type ProjectResp []ProjectRespData
func (ProjectResp) Len ¶
func (pr ProjectResp) Len() int
func (ProjectResp) Less ¶
func (pr ProjectResp) Less(i, j int) bool
func (ProjectResp) Swap ¶
func (pr ProjectResp) Swap(i, j int)
type ProjectRespData ¶
type ProjectRespData struct { ID NullInt32 `json:"id" db:"id"` Name NullString `json:"name" db:"name"` GitLabProjectID NullInt32 `json:"gitlab_project_id" db:"gitlab_project_id"` GitLabProjectURL NullString `json:"gitlab_project_url" db:"gitlab_project_url"` ImageTag NullString `json:"image_tag" db:"image_tag"` SpecReplicas NullInt32 `json:"spec_replicas" db:"spec_replicas"` AvailableReplicas NullInt32 `json:"available_replicas" db:"available_replicas"` Status NullInt32 `json:"status" db:"status"` }
type TriggerJobReq ¶
type User ¶
type User struct { ID NullInt32 `json:"id" form:"id" db:"id"` Name NullString `json:"name" form:"name" db:"name"` Email NullString `json:"email" form:"email" db:"email"` Mobile NullString `json:"mobile" form:"mobile" db:"mobile"` Password NullString `json:"password" form:"password" db:"password"` Lock NullBool `json:"lock" form:"lock" db:"lock"` Salt NullString `db:"salt"` CreateTime NullInt64 `db:"create_time"` UpdateTime NullInt64 `db:"update_time"` LoginTime NullInt64 `db:"login_time"` }
Click to show internal directories.
Click to hide internal directories.