managers

package
v0.0.0-...-be240b2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountLogin

func AccountLogin(name string, password string) (string, error)

func AccountRegister

func AccountRegister(name, password string) (int64, error)

func AddNewHost

func AddNewHost(hostName string, hostIp string) (bool, string)

func AddNewProject

func AddNewProject(accountId int64, projectName string, projectDescribe string, gitDockerPath string,
	projectMember string) (bool, string)

func AddNewService

func AddNewService(accountId int64, serviceName string, serviceDescribe string, hostList string,
	mirrorList int64, dockerConfig string, serviceMember string) (bool, string)

func BackDeployService

func BackDeployService(accountId int64, deployId int64) (bool, string)

func ConstructProject

func ConstructProject(accountId int64, projectId int64) (bool, string, int64)

工程页创建构建任务

func DelHost

func DelHost(hostId int64) bool

func DelProject

func DelProject(projectId int64, accountId int64) (bool, string)

func DelService

func DelService(serviceId int64, accountId int64) (bool, string)

func DeployService

func DeployService(serviceId int64, accountId int64) (bool, string, int64)

func EndDeployService

func EndDeployService(accountId int64, deployId int64) (bool, string)

func GetAllConstructRecord

func GetAllConstructRecord() ([]map[string]interface{}, int)

func GetAllDeploy

func GetAllDeploy() ([]map[string]interface{}, int)

func GetAllHost

func GetAllHost() ([]*models.Host, int)

func GetAllMirror

func GetAllMirror() ([]map[string]interface{}, int)

func GetAllProject

func GetAllProject() ([]map[string]interface{}, int)

func GetAllService

func GetAllService() ([]map[string]interface{}, int)

func GetConstructProjectData

func GetConstructProjectData(constructId int64) map[string]interface{}

构建页获取详情数据

func GetDeployServiceData

func GetDeployServiceData(deployId int64) map[string]interface{}

func GetOneProject

func GetOneProject(projectId int64) map[string]interface{}

func GetOneService

func GetOneService(serviceId int64) map[string]interface{}

func GetProjectByParam

func GetProjectByParam(projectName string) ([]map[string]interface{}, int)

func GetServiceByParam

func GetServiceByParam(serviceName string) ([]map[string]interface{}, int)

func JumpDeployService

func JumpDeployService(accountId int64, deployId int64, groupId int64, hostId int64) (bool, string)

func MatchGitDockerPath

func MatchGitDockerPath(out string) bool

func StartConstructProject

func StartConstructProject(accountId int64, constructId int64) (bool, string)

func StartDeployService

func StartDeployService(accountId int64, deployId int64, groupId int) (bool, string)

func UpdateHost

func UpdateHost(hostId int64, hostName string, hostIp string) bool

func UpdateProject

func UpdateProject(accountId int64, projectId int64, projectName string, projectDescribe string, gitDockerPath string,
	projectMember string) (bool, string)

func UpdateService

func UpdateService(accountId int64, serviceId int64, serviceName string, serviceDescribe string, hostList string,
	mirrorList int64, dockerConfig string, serviceMember string) (bool, string)

Types

type Data

type Data struct {
	Stage []stage
}

Jump to

Keyboard shortcuts

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