Documentation
¶
Index ¶
- func InitAllInTest()
- type Account
- type ConstructRecord
- func (this ConstructRecord) Add(constructRecord *ConstructRecord) (int64, error)
- func (this ConstructRecord) CountAllConstructByPage() (int64, error)
- func (this ConstructRecord) GetById(id int64) (*ConstructRecord, error)
- func (this ConstructRecord) GetByProjectId(projectId int64) (*ConstructRecord, error)
- func (this ConstructRecord) GetByProjectIdAndStatu(projectId int64) (*ConstructRecord, error)
- func (this ConstructRecord) QueryAllConstructByPage(size int, start int) ([]*ConstructRecord, error)
- func (this ConstructRecord) QueryAllConstructRecord() ([]*ConstructRecord, error)
- func (this ConstructRecord) QueryByAccountId(accountId int64) ([]*ConstructRecord, error)
- func (this ConstructRecord) QueryByProjectId(projectId int64) ([]*ConstructRecord, error)
- func (this ConstructRecord) Remove(id int64) error
- func (this ConstructRecord) Update(constructRecord *ConstructRecord) error
- type Deploy
- func (this Deploy) Add(deploy *Deploy) (int64, error)
- func (this Deploy) CountAllDeployByPage() (int64, error)
- func (this Deploy) GetById(id int64) (*Deploy, error)
- func (this Deploy) GetByServiceId(serviceId int64) (*Deploy, error)
- func (this Deploy) GetDeployBackData(serviceId int64) (*Deploy, error)
- func (this Deploy) QueryAllDeploy() ([]*Deploy, error)
- func (this Deploy) QueryAllDeployByPage(size int, start int) ([]*Deploy, error)
- func (this Deploy) QueryByAccountId(accountId int64) ([]*Deploy, error)
- func (this Deploy) QueryByServiceId(serviceId int64) ([]*Deploy, error)
- func (this Deploy) Remove(id int64) error
- func (this Deploy) Update(deploy *Deploy) error
- type DeployData
- type DeployMachine
- type DeployStage
- type Host
- func (this Host) Add(host *Host) (int64, error)
- func (this Host) CountAllHost() (int64, error)
- func (this Host) GetByHostName(hostName string) (*Host, error)
- func (this Host) GetById(id int64) (*Host, error)
- func (this Host) GetByIp(ip string) (*Host, error)
- func (this Host) QueryAllHost() ([]*Host, error)
- func (this Host) Remove(id int64) error
- func (this Host) Update(host *Host) error
- type Mirror
- func (this Mirror) Add(mirror *Mirror) (int64, error)
- func (this Mirror) CountAllMirror() (int64, error)
- func (this Mirror) GetById(id int64) (*Mirror, error)
- func (this Mirror) QueryAllMirror() ([]*Mirror, error)
- func (this Mirror) QueryByMirrorName(mirrorName string) ([]*Mirror, error)
- func (this Mirror) Remove(id int64) error
- func (this Mirror) Update(mirror *Mirror) error
- type Project
- func (this Project) Add(project *Project) (int64, error)
- func (this Project) CountAllProject() (int64, error)
- func (this Project) CountBySearch(projectName string, project *Project) (int64, error)
- func (this Project) GetById(id int64) (*Project, error)
- func (this Project) GetByProjectName(projectName string) (*Project, error)
- func (this Project) QueryAllProject() ([]*Project, error)
- func (this Project) QueryAllProjectByPage(size int, start int) ([]*Project, error)
- func (this Project) QueryByAccountId(accountId int64) ([]*Project, error)
- func (this Project) QueryByProjectName(projectName string) ([]*Project, error)
- func (this Project) QueryProjectBySearch(projectName string, project *Project) ([]*Project, error)
- func (this Project) Remove(id int64) error
- func (this Project) Update(project *Project) error
- type Service
- func (this Service) Add(service *Service) (int64, error)
- func (this Service) CountAllService() (int64, error)
- func (this Service) CountServiceBySearch(serviceName string, service *Service) (int64, error)
- func (this Service) GetById(id int64) (*Service, error)
- func (this Service) GetByServiceName(serviceName string) (*Service, error)
- func (this Service) QueryAllService() ([]*Service, error)
- func (this Service) QueryAllServiceByPage(size int, start int) ([]*Service, error)
- func (this Service) QueryByAccountId(accountId int64) ([]*Service, error)
- func (this Service) QueryByServiceName(serviceName string) ([]*Service, error)
- func (this Service) QueryServiceBySearch(serviceName string, service *Service) ([]*Service, error)
- func (this Service) Remove(id int64) error
- func (this Service) Update(service *Service) error
- type ServiceData
- type ServiceMachine
- type ServiceStage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAllInTest ¶
func InitAllInTest()
Types ¶
type Account ¶
type ConstructRecord ¶
type ConstructRecord struct {
Id int64 `json:"id" form:"id"`
AccountId int64 `json:"account_id" form:"account_id"`
ProjectId int64 `json:"project_id" form:"project_id"`
MirrorId int64 `json:"mirror_id" form:"mirror_id"`
ConstructStart int64 `json:"construct_start" form:"construct_start"`
ConstructEnd int64 `json:"construct_end" form:"construct_end"`
ConstructStatu int `json:"construct_statu" form:"construct_statu"`
ConstructLog string `json:"construct_log" form:"construct_log"`
}
func (ConstructRecord) Add ¶
func (this ConstructRecord) Add(constructRecord *ConstructRecord) (int64, error)
增加
func (ConstructRecord) CountAllConstructByPage ¶
func (this ConstructRecord) CountAllConstructByPage() (int64, error)
func (ConstructRecord) GetById ¶
func (this ConstructRecord) GetById(id int64) (*ConstructRecord, error)
查询(根据构建记录id查询)
func (ConstructRecord) GetByProjectId ¶
func (this ConstructRecord) GetByProjectId(projectId int64) (*ConstructRecord, error)
func (ConstructRecord) GetByProjectIdAndStatu ¶
func (this ConstructRecord) GetByProjectIdAndStatu(projectId int64) (*ConstructRecord, error)
func (ConstructRecord) QueryAllConstructByPage ¶
func (this ConstructRecord) QueryAllConstructByPage(size int, start int) ([]*ConstructRecord, error)
查询(分页查询所有记录)
func (ConstructRecord) QueryAllConstructRecord ¶
func (this ConstructRecord) QueryAllConstructRecord() ([]*ConstructRecord, error)
查询(所有数据)
func (ConstructRecord) QueryByAccountId ¶
func (this ConstructRecord) QueryByAccountId(accountId int64) ([]*ConstructRecord, error)
查询(根据用户id查询)
func (ConstructRecord) QueryByProjectId ¶
func (this ConstructRecord) QueryByProjectId(projectId int64) ([]*ConstructRecord, error)
查询(根据工程id查询)
func (ConstructRecord) Update ¶
func (this ConstructRecord) Update(constructRecord *ConstructRecord) error
修改
type Deploy ¶
type Deploy struct {
Id int64 `json:"id" form:"id"`
ServiceId int64 `json:"service_id" form:"service_id"`
AccountId int64 `json:"account_id" form:"account_id"`
DeployStart int64 `json:"deploy_start" form:"deploy_start"`
DeployEnd int64 `json:"deploy_end" form:"deploy_end"`
HostList string `json:"host_list" form:"host_list"`
MirrorList int64 `json:"mirror_list" form:"mirror_list"`
DockerConfig string `json:"docker_config" form:"docker_config"`
DeployStatu int `json:"deploy_statu" form:"deploy_statu"`
DeployLog string `json:"deploy_log" form:"deploy_log"`
}
func (Deploy) CountAllDeployByPage ¶
func (Deploy) GetDeployBackData ¶
func (Deploy) QueryAllDeployByPage ¶
查询(分页查询所有记录)
func (Deploy) QueryByAccountId ¶
查询(根据用户id查询)
func (Deploy) QueryByServiceId ¶
查询(根据服务id查询)
type DeployData ¶
type DeployData struct {
Stage []DeployStage `json:"stage"`
Stage_num int `json:"stage_num"`
Progress_status int `json:"progress_status"`
}
type DeployMachine ¶
type DeployStage ¶
type DeployStage struct {
Stage_status int `json:"stage_status"`
Machine []DeployMachine `json:"machine"`
}
type Host ¶
type Host struct {
Id int64 `json:"id" form:"id"`
HostName string `json:"host_name" form:"host_name"`
Ip string `json:"ip" form:"ip"`
}
func (Host) CountAllHost ¶
func (Host) GetByHostName ¶
查询(根据主机名字查询)
type Mirror ¶
type Mirror struct {
Id int64 `json:"id" form:"id"`
MirrorName string `json:"mirror_name" form:"mirror_name"`
MirrorVersion string `json:"mirror_version" form:"mirror_version"`
MirrorDescribe string `json:"mirror_describe" form:"mirror_describe"`
}
func (Mirror) CountAllMirror ¶
func (Mirror) QueryByMirrorName ¶
查询(根据镜像名字查询)
type Project ¶
type Project struct {
Id int64 `json:"id" form:"id"`
AccountId int64 `json:"account_id" form:"account_id"`
ProjectName string `json:"project_name" form:"project_name"`
ProjectDescribe string `json:"project_describe" form:"project_describe"`
GitDockerPath string `json:"git_docker_path" form:"git_docker_path"`
CreateDate int64 `json:"create_date" form:"create_date"`
UpdateDate int64 `json:"update_date" form:"update_date"`
IsDel int `json:"is_del" form:"is_del"`
ProjectMember string `json:"project_member" form:"project_member"`
}
func (Project) CountAllProject ¶
func (Project) CountBySearch ¶
func (Project) GetByProjectName ¶
查询(根据工程名精确查询)
func (Project) QueryAllProject ¶
查询(查询所有工程)
func (Project) QueryAllProjectByPage ¶
查询(分页查询所有工程)
func (Project) QueryByAccountId ¶
查询(根据创建者查询)
func (Project) QueryByProjectName ¶
查询(根据工程名模糊查询)
func (Project) QueryProjectBySearch ¶
查询(根据工程名查询)
type Service ¶
type Service struct {
Id int64 `json:"id" form:"id"`
AccountId int64 `json:"account_id" form:"account_id"`
ServiceName string `json:"service_name" form:"service_name"`
ServiceDescribe string `json:"service_describe" form:"service_describe"`
HostList string `json:"host_list" form:"host_list"`
MirrorList int64 `json:"mirror_list" form:"mirror_list"`
DockerConfig string `json:"docker_config" form:"docker_config"`
CreateDate int64 `json:"create_date" form:"create_date"`
UpdateDate int64 `json:"update_date" form:"update_date"`
ServiceMember string `json:"service_member" form:"service_member"`
IsDel int `json:"is_del" form:"is_del"`
ServiceStatu int `json:"service_statu" form:"service_statu"`
}
func (Service) CountAllService ¶
func (Service) CountServiceBySearch ¶
func (Service) GetByServiceName ¶
查询(根据服务名精确查询)
func (Service) QueryAllService ¶
查询(查询所有服务)
func (Service) QueryAllServiceByPage ¶
查询(分页查询所有服务)
func (Service) QueryByAccountId ¶
查询(根据服务创建者查询)
func (Service) QueryByServiceName ¶
查询(根据服务名模糊查询)
func (Service) QueryServiceBySearch ¶
查询(根据服务名查询)
type ServiceData ¶
type ServiceData struct {
Stage []ServiceStage `json:"stage"`
}
type ServiceMachine ¶
type ServiceStage ¶
type ServiceStage struct {
Machine []ServiceMachine `json:"machine"`
}
Click to show internal directories.
Click to hide internal directories.