qcloud

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "QCloud Service"
)

Variables

This section is empty.

Functions

func CheckNamespace

func CheckNamespace(w http.ResponseWriter, r *http.Request)

func ConfirmRollService added in v0.1.1

func ConfirmRollService(w http.ResponseWriter, r *http.Request)

ConfirmRollService 确认升级完成. 只有当前状态为滚动升级中,并且所有实例状态都是升级成功的情况下才可调用此API

func CreateNamespace

func CreateNamespace(w http.ResponseWriter, r *http.Request)

func DeleteService

func DeleteService(w http.ResponseWriter, r *http.Request)

func Deletenamespace

func Deletenamespace(w http.ResponseWriter, r *http.Request)

func DeployService

func DeployService(w http.ResponseWriter, r *http.Request)

func GetClusterNodes

func GetClusterNodes(w http.ResponseWriter, r *http.Request)

func GetSampleSVCInfo

func GetSampleSVCInfo(w http.ResponseWriter, r *http.Request)

func ReinstallService

func ReinstallService(w http.ResponseWriter, r *http.Request)

func ReinstallSvcGroup added in v0.1.1

func ReinstallSvcGroup(w http.ResponseWriter, r *http.Request)

func RollBackService added in v0.1.1

func RollBackService(w http.ResponseWriter, r *http.Request)

RollBackService 服务回滚 只有全部回滚,没有部分回滚

func RollingUpService added in v0.1.1

func RollingUpService(w http.ResponseWriter, r *http.Request)

func RollingUpServiceWithSvc added in v0.1.1

func RollingUpServiceWithSvc(w http.ResponseWriter, r *http.Request)

RollingUpServiceWithSvc 以Service为单位进行滚动升级 当触发升级操作时, 以当前服务配置为模板,创建另外一个新的服务

func RunService

func RunService(w http.ResponseWriter, r *http.Request)

RunService 在K8s集群中创建服务 svcname 服务配置名称, 此名称应该在创建服务之前首先创建。 namespace 命名空间名称, 如果为空则为默认值 upgrade 是否为升级操作. 默认为false。 当在创建服务时,会使用以下默认参数 1. 默认启用健康检查和准备就绪检查。 2. 上述两种检查使用TCP端口检查方式 3. 均针对容器对外暴露的端口进行检查,如果镜像构建未对外暴露端口,则不会对此镜像启用检查 4. 延时30秒后启动检查 5. 连续三次,间隔10秒,健康均失败则检查失败 6. 每次检查超时时间为5秒 7. 每个服务默认存在2个实例

func RunSvcGroup added in v0.1.1

func RunSvcGroup(w http.ResponseWriter, r *http.Request)

func UnMarshalNamespace

func UnMarshalNamespace(ns interface{}) (namespace namespace.NSInfo_data_namespaces, err error)

func UninstallSvcGroup added in v0.1.1

func UninstallSvcGroup(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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