devops

package
v0.0.0-...-e9e6038 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(form resources.AppForm)

CreateApp create

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 CreateDisk

func CreateDisk(form resources.DiskForm)

CreateDisk for disk create

func CreateDomain

func CreateDomain(name, host string, private uint, ip string)

CreateDomain create

func CreateRegion

func CreateRegion(form resources.CloudAvailableRegionForm)

CreateRegion for create region

func CreateService

func CreateService(form resources.ServiceForm)

CreateService create

func CreateTag

func CreateTag(form resources.TagForm)

CreateTag for app tag create

func DeleteAllComputers

func DeleteAllComputers()

DeleteAllComputers

func DeleteApp

func DeleteApp(id int)

DeleteApp app delete

func DeleteComputer

func DeleteComputer(id int)

DeleteComputer for computer delete

func DeleteComputerRole

func DeleteComputerRole(form resources.ComputerRoleForm)

DeleteComputerRole for computer and app role delete

func DeleteDisk

func DeleteDisk(id int)

DeleteDisk for disk delete

func DeleteDomain

func DeleteDomain(id int)

DeleteDomain domain delete

func DeleteService

func DeleteService(id int)

DeleteService service delete

func QueryApp

func QueryApp(page, limit int, name, url string) []model.App

QueryApp app list

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

func QueryAppDeploy(appID int, page, limit int) []model.Deploy

QueryAppDeploy for deploy task

func QueryComputer

func QueryComputer(tag, name, searchValue string, page, limit int) []model.Computer

QueryComputer computer list

func QueryDomain

func QueryDomain(page, limit int, name, host string) []model.Domain

QueryDomain domain list

func QueryNewDeploy

func QueryNewDeploy() services.DeployData

QueryNewDeploy find new deploy job

func QueryOneApp

func QueryOneApp(id int, tag, name string) model.App

QueryOneApp for query one app

func QueryOneComputer

func QueryOneComputer(id int, hostID string) model.Computer

QueryOneComputer for one computer according to id

func QueryOneDeploy

func QueryOneDeploy(deployID int) model.Deploy

QueryOneDeploy for deploy task

func QueryRegion

func QueryRegion() []string

QueryRegion for region query

func QueryService

func QueryService(page, limit int, name, url string) []model.Service

QueryService service list

func QueryTag

func QueryTag(page, limit int) []model.Tag

QueryTag for app tag

func UpdateApp

func UpdateApp(id int, form resources.AppForm)

UpdateApp update

func UpdateComputer

func UpdateComputer(id int, form resources.ComputerForm)

UpdateComputer update

func UpdateComputerRole

func UpdateComputerRole(appID int, HostID string, registerStatus int, appName string)

UpdateComputerRole for register status chanee

func UpdateDeployLog

func UpdateDeployLog(id int, message string)

UpdateDeployLog update deploy log

func UpdateDeployStatus

func UpdateDeployStatus(id int, status string)

UpdateDeployStatus update job status

func UpdateDisk

func UpdateDisk(id int, form resources.DiskForm)

UpdateDisk for disk update

func UpdateDomain

func UpdateDomain(id int, name, host string, private uint)

UpdateDomain update

func UpdateService

func UpdateService(id int, form resources.ServiceForm)

UpdateService update

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL