Documentation ¶
Index ¶
- func CreateApp(form resources.AppForm)
- func CreateComputer(form resources.ComputerForm)
- func CreateComputerRole(form resources.ComputerRoleForm)
- func CreateComputerWithField(hostID, hostName, hostTag string, CPU, RAM uint, privateIP, publicIP string)
- func CreateDeploy(form resources.DeployForm) model.Deploy
- func CreateDisk(form resources.DiskForm)
- func CreateDomain(name, host string, private uint, ip string)
- func CreateRegion(form resources.CloudAvailableRegionForm)
- func CreateService(form resources.ServiceForm)
- func CreateTag(form resources.TagForm)
- func DeleteAllComputers()
- func DeleteApp(id int)
- func DeleteComputer(id int)
- func DeleteComputerRole(form resources.ComputerRoleForm)
- func DeleteDisk(id int)
- func DeleteDomain(id int)
- func DeleteService(id int)
- func QueryApp(page, limit int, name, url string) []model.App
- func QueryAppComputer(appID interface{}, page, limit int, appName string) (result []services.ComputerData)
- func QueryAppDeploy(appID int, page, limit int) []model.Deploy
- func QueryComputer(tag, name, searchValue string, page, limit int) []model.Computer
- func QueryDomain(page, limit int, name, host string) []model.Domain
- func QueryNewDeploy() services.DeployData
- func QueryOneApp(id int, tag, name string) model.App
- func QueryOneComputer(id int, hostID string) model.Computer
- func QueryOneDeploy(deployID int) model.Deploy
- func QueryRegion() []string
- func QueryService(page, limit int, name, url string) []model.Service
- func QueryTag(page, limit int) []model.Tag
- func UpdateApp(id int, form resources.AppForm)
- func UpdateComputer(id int, form resources.ComputerForm)
- func UpdateComputerRole(appID int, HostID string, registerStatus int, appName string)
- func UpdateDeployLog(id int, message string)
- func UpdateDeployStatus(id int, status string)
- func UpdateDisk(id int, form resources.DiskForm)
- func UpdateDomain(id int, name, host string, private uint)
- func UpdateService(id int, form resources.ServiceForm)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateComputer ¶
func CreateComputer(form resources.ComputerForm)
CreateComputer create computer
func CreateComputerRole ¶
func CreateComputerRole(form resources.ComputerRoleForm)
CreateComputerRole for computer and app role create
func CreateComputerWithField ¶
func CreateComputerWithField(hostID, hostName, hostTag string, CPU, RAM uint, privateIP, publicIP string)
CreateComputerWithField for insert host
func CreateDeploy ¶
func CreateDeploy(form resources.DeployForm) model.Deploy
CreateDeploy for app tag create
func CreateDomain ¶
CreateDomain create
func CreateRegion ¶
func CreateRegion(form resources.CloudAvailableRegionForm)
CreateRegion for create region
func DeleteComputerRole ¶
func DeleteComputerRole(form resources.ComputerRoleForm)
DeleteComputerRole for computer and app role delete
func QueryAppComputer ¶
func QueryAppComputer(appID interface{}, page, limit int, appName string) (result []services.ComputerData)
QueryAppComputer according to tag and name query computer list
func QueryAppDeploy ¶
QueryAppDeploy for deploy task
func QueryComputer ¶
QueryComputer computer list
func QueryDomain ¶
QueryDomain domain list
func QueryOneApp ¶
QueryOneApp for query one app
func QueryOneComputer ¶
QueryOneComputer for one computer according to id
func QueryService ¶
QueryService service list
func UpdateComputer ¶
func UpdateComputer(id int, form resources.ComputerForm)
UpdateComputer update
func UpdateComputerRole ¶
UpdateComputerRole for register status chanee
func UpdateDeployLog ¶
UpdateDeployLog update deploy log
func UpdateDeployStatus ¶
UpdateDeployStatus update job status
Types ¶
This section is empty.