rainbond: github.com/goodrain/rainbond/api/controller Index | Files | Directories

package controller

import "github.com/goodrain/rainbond/api/controller"

Index

Package Files

app.go app_restore.go batch_operation.go charges_verify.go check.go cloud.go event.go event_log.go gateway.go group.go labels.go license.go manager.go net_stream_rules.go nodes.go plugin.go pods.go public_func.go resources.go root_func.go service_action.go service_share.go third_party_service.go volume.go websocket.go

Constants

const TIMELAYOUT = "2006-01-02T15:04:05"

TIMELAYOUT timelayout

func AddVolume Uses

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

AddVolume AddVolume

func AddVolumeDependency Uses

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

AddVolumeDependency add volume dependency

func BackupCopy Uses

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

BackupCopy backup copy

func Backups Uses

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

Backups list all backup history by group app

func BatchOperation Uses

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

BatchOperation batch operation for tenant support operation is : start,build,stop,update

func ChargesVerifyController Uses

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

ChargesVerifyController service charges verify swagger:operation GET /v2/tenants/{tenant_name}/chargesverify v2 chargesverify

应用扩大资源申请接口,公有云云市验证,私有云不验证

service charges verify

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 状态码非200,表示验证过程发生错误。状态码200,msg代表实际状态:success, illegal_quantity, missing_tenant, owned_fee, region_unauthorized, lack_of_memory

func Check Uses

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

Check service check swagger:operation POST /v2/tenants/{tenant_name}/servicecheck v2 serviceCheck

应用构建源检测,支持docker run ,docker compose, source code

service check

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func CheckLabel Uses

func CheckLabel(serviceID string) bool

CheckLabel check label

func CheckMapKey Uses

func CheckMapKey(rebody map[string]interface{}, key string, defaultValue interface{}) map[string]interface{}

CheckMapKey CheckMapKey

func CreateV2RouterManager Uses

func CreateV2RouterManager(conf option.Config, statusCli *client.AppRuntimeSyncClient) (err error)

CreateV2RouterManager 创建manager

func DeleteBackup Uses

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

DeleteBackup delete backup

func DeleteVolume Uses

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

DeleteVolume DeleteVolume

func DeleteVolumeDependency Uses

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

DeleteVolumeDependency delete volume dependency

func DirectRequest Uses

func DirectRequest(w http.ResponseWriter, r *http.Request, endpoint string)

DirectRequest direct request

func Display Uses

func Display(i interface{}, j interface{})

Display 遍历结构体

func FileServer Uses

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.

func GetBackup Uses

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

GetBackup get one backup status

func GetDepVolume Uses

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

GetDepVolume 获取应用所有依赖的存储

func GetNotificationEvent Uses

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

GetNotificationEvent GetNotificationEvent swagger:operation GET /v2/notificationEvent/{hash} v2/notificationEvent getevents

获取通知事件

get events

--- produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func GetNotificationEvents Uses

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

GetNotificationEvents GetNotificationEvent support query from start and end time or all swagger:operation GET /v2/notificationEvent v2/notificationEvent getevents

获取数据中心通知事件

get events

--- produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func GetServiceAliasID Uses

func GetServiceAliasID(ServiceID string) string

GetServiceAliasID get service alias id python: new_word = str(ord(string[10])) + string + str(ord(string[3])) + 'log' + str(ord(string[2]) / 7) new_id = hashlib.sha224(new_word).hexdigest()[0:16]

func GetServiceCheckInfo Uses

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

GetServiceCheckInfo get service check info swagger:operation GET /v2/tenants/{tenant_name}/servicecheck/{uuid} v2 getServiceCheckInfo

获取构建检测信息

get service check info

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func GetServiceDeployInfo Uses

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

GetServiceDeployInfo get service deploy info

func GetVolume Uses

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

GetVolume 获取应用全部存储,包括依赖的存储

func HTTPRequest Uses

func HTTPRequest(w http.ResponseWriter, r *http.Request, endpoint string)

HTTPRequest public http request

func HandleNotificationEvent Uses

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

HandleNotificationEvent HandleNotificationEvent swagger:operation PUT /v2/notificationEvent/{hash} v2/notificationEvent handlenotify

处理通知事件

get events

--- produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func NewBackups Uses

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

NewBackups new group app backup

func Pods Uses

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

Pods get some service pods swagger:operation GET /v2/tenants/{tenant_name}/pods v2/tenants pods

获取一些应用的Pod信息

get some service pods

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: get some service pods

func RestInfo Uses

func RestInfo(code int, others ...string) []byte

RestInfo rest info

func Restore Uses

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

Restore restore group app

func RestoreResult Uses

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

RestoreResult restore group app result

func TestFunc Uses

func TestFunc(w http.ResponseWriter)

TestFunc test func

func TransBody Uses

func TransBody(r *http.Request) (map[string]interface{}, error)

TransBody transfer body to map

func TransStatus Uses

func TransStatus(eStatus string) string

TransStatus trans service status

type AcpNodeStruct Uses

type AcpNodeStruct struct {
    HTTPProxy proxy.Proxy
}

AcpNodeStruct acp node struct

func (*AcpNodeStruct) Apps Uses

func (a *AcpNodeStruct) Apps(w http.ResponseWriter, r *http.Request)

Apps trans to app

func (*AcpNodeStruct) Jobs Uses

func (a *AcpNodeStruct) Jobs(w http.ResponseWriter, r *http.Request)

Jobs trans to job

func (*AcpNodeStruct) Nodes Uses

func (a *AcpNodeStruct) Nodes(w http.ResponseWriter, r *http.Request)

Nodes trans to node

type AppRestoreController Uses

type AppRestoreController struct {
}

AppRestoreController is an implementation of AppRestoreInterface

func (*AppRestoreController) RestoreDepVols Uses

func (a *AppRestoreController) RestoreDepVols(w http.ResponseWriter, r *http.Request)

RestoreDepVols restores service dependent volumes. delete the existing dependent volumes first, then create the ones in the request body.

func (*AppRestoreController) RestoreDeps Uses

func (a *AppRestoreController) RestoreDeps(w http.ResponseWriter, r *http.Request)

RestoreDeps restores service dependencies. delete the existing dependencies first, then create the ones in the request body.

func (*AppRestoreController) RestoreEnvs Uses

func (a *AppRestoreController) RestoreEnvs(w http.ResponseWriter, r *http.Request)

RestoreEnvs restores environment variables. delete the existing environment variables first, then create the ones in the request body.

func (*AppRestoreController) RestorePlugins Uses

func (a *AppRestoreController) RestorePlugins(w http.ResponseWriter, r *http.Request)

RestorePlugins restores service plugins. delete the existing service plugins first, then create the ones in the request body.

func (*AppRestoreController) RestorePorts Uses

func (a *AppRestoreController) RestorePorts(w http.ResponseWriter, r *http.Request)

RestorePorts restores service ports. delete the existing ports first, then create the ones in the request body.

func (*AppRestoreController) RestoreProbe Uses

func (a *AppRestoreController) RestoreProbe(w http.ResponseWriter, r *http.Request)

RestoreProbe restores service probe. delete the existing probe first, then create the one in the request body.

func (*AppRestoreController) RestoreVolumes Uses

func (a *AppRestoreController) RestoreVolumes(w http.ResponseWriter, r *http.Request)

RestoreVolumes restores service volumes. delete the existing volumes first, then create the ones in the request body.

type AppStruct Uses

type AppStruct struct{}

AppStruct -

func (*AppStruct) Download Uses

func (a *AppStruct) Download(w http.ResponseWriter, r *http.Request)

Download -

func (*AppStruct) ExportApp Uses

func (a *AppStruct) ExportApp(w http.ResponseWriter, r *http.Request)

ExportApp -

func (*AppStruct) ImportApp Uses

func (a *AppStruct) ImportApp(w http.ResponseWriter, r *http.Request)

ImportApp -

func (*AppStruct) ImportID Uses

func (a *AppStruct) ImportID(w http.ResponseWriter, r *http.Request)

ImportID -

func (*AppStruct) NewUpload Uses

func (a *AppStruct) NewUpload(w http.ResponseWriter, r *http.Request)

NewUpload -

func (*AppStruct) Upload Uses

func (a *AppStruct) Upload(w http.ResponseWriter, r *http.Request)

Upload -

type CloudManager Uses

type CloudManager struct{}

CloudManager cloud manager

func GetCloudRouterManager Uses

func GetCloudRouterManager() *CloudManager

GetCloudRouterManager get cloud Manager

func (*CloudManager) AddAPIManager Uses

func (c *CloudManager) AddAPIManager(w http.ResponseWriter, r *http.Request)

AddAPIManager AddAPIManager swagger:operation POST /cloud/api/manager cloud addAPIManager

添加api管理

get api manager

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*CloudManager) CreateToken Uses

func (c *CloudManager) CreateToken(w http.ResponseWriter, r *http.Request)

CreateToken CreateToken swagger:operation POST /cloud/auth cloud createToken

产生token

create token

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*CloudManager) DeleteAPIManager Uses

func (c *CloudManager) DeleteAPIManager(w http.ResponseWriter, r *http.Request)

DeleteAPIManager DeleteAPIManager swagger:operation DELETE /cloud/api/manager cloud deleteAPIManager

删除api管理

delete api manager

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*CloudManager) GetAPIManager Uses

func (c *CloudManager) GetAPIManager(w http.ResponseWriter, r *http.Request)

GetAPIManager GetAPIManager swagger:operation GET /cloud/api/manager cloud GetAPIManager

获取api管理

get api manager

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*CloudManager) GetTokenInfo Uses

func (c *CloudManager) GetTokenInfo(w http.ResponseWriter, r *http.Request)

GetTokenInfo GetTokenInfo swagger:operation GET /cloud/auth/{eid} cloud getTokenInfo

获取tokeninfo

get token info

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*CloudManager) Show Uses

func (c *CloudManager) Show(w http.ResponseWriter, r *http.Request)

Show Show

func (*CloudManager) UpdateToken Uses

func (c *CloudManager) UpdateToken(w http.ResponseWriter, r *http.Request)

UpdateToken UpdateToken swagger:operation PUT /cloud/auth/{eid} cloud updateToken

更新token

update token info

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

type DockerConsole Uses

type DockerConsole struct {
    // contains filtered or unexported fields
}

DockerConsole docker console

func GetDockerConsole Uses

func GetDockerConsole() *DockerConsole

GetDockerConsole get Docker console

func (DockerConsole) Get Uses

func (d DockerConsole) Get(w http.ResponseWriter, r *http.Request)

Get get

type DockerLog Uses

type DockerLog struct {
    // contains filtered or unexported fields
}

DockerLog docker log

func GetDockerLog Uses

func GetDockerLog() *DockerLog

GetDockerLog get docker log

func (DockerLog) Get Uses

func (d DockerLog) Get(w http.ResponseWriter, r *http.Request)

Get get

type EventLog Uses

type EventLog struct {
    // contains filtered or unexported fields
}

EventLog event log

func GetEventLog Uses

func GetEventLog() *EventLog

GetEventLog get event log

func (EventLog) Get Uses

func (d EventLog) Get(w http.ResponseWriter, r *http.Request)

Get get

type EventLogStruct Uses

type EventLogStruct struct{}

EventLogStruct eventlog struct

func (*EventLogStruct) LogByAction Uses

func (e *EventLogStruct) LogByAction(w http.ResponseWriter, r *http.Request)

LogByAction GetLogByAction

func (*EventLogStruct) LogFile Uses

func (e *EventLogStruct) LogFile(w http.ResponseWriter, r *http.Request)

LogFile GetLogFile

func (*EventLogStruct) LogList Uses

func (e *EventLogStruct) LogList(w http.ResponseWriter, r *http.Request)

LogList GetLogList

func (*EventLogStruct) LogSocket Uses

func (e *EventLogStruct) LogSocket(w http.ResponseWriter, r *http.Request)

LogSocket GetLogSocket

func (*EventLogStruct) Logs Uses

func (e *EventLogStruct) Logs(w http.ResponseWriter, r *http.Request)

Logs GetLogs

func (*EventLogStruct) TenantLogByAction Uses

func (e *EventLogStruct) TenantLogByAction(w http.ResponseWriter, r *http.Request)

TenantLogByAction GetTenantLogByAction swagger:operation POST /v2/tenants/{tenant_name}/event-log v2 tenantLogByAction

获取指定操作的操作日志

get tenant log by level

--- produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

type GatewayStruct Uses

type GatewayStruct struct {
    MQClient client.MQClient
    // contains filtered or unexported fields
}

GatewayStruct -

func (*GatewayStruct) AddTCPRule Uses

func (g *GatewayStruct) AddTCPRule(w http.ResponseWriter, r *http.Request)

AddTCPRule adds a tcp rule

func (*GatewayStruct) GetAvailablePort Uses

func (g *GatewayStruct) GetAvailablePort(w http.ResponseWriter, r *http.Request)

GetAvailablePort returns a available port

func (*GatewayStruct) HTTPRule Uses

func (g *GatewayStruct) HTTPRule(w http.ResponseWriter, r *http.Request)

HTTPRule is used to add, update or delete http rule which enables external traffic to access applications through the gateway

func (*GatewayStruct) RuleConfig Uses

func (g *GatewayStruct) RuleConfig(w http.ResponseWriter, r *http.Request)

RuleConfig is used to add, update or delete rule config.

func (*GatewayStruct) TCPRule Uses

func (g *GatewayStruct) TCPRule(w http.ResponseWriter, r *http.Request)

TCPRule is used to add, update or delete tcp rule which enables external traffic to access applications through the gateway

type Handle Uses

type Handle struct {
    Body struct {
        //in: body
        //handle message
        HandleMessage string `json:"handle_message" validate:"handle_message"`
    }
}

Handle Handle swagger:parameters handlenotify

type LabelController Uses

type LabelController struct {
    // contains filtered or unexported fields
}

LabelController implements Labeler.

func (*LabelController) Labels Uses

func (l *LabelController) Labels(w http.ResponseWriter, r *http.Request)

Labels - get -> list labels

type LicenseManager Uses

type LicenseManager struct{}

LicenseManager license manager

func GetLicenseManager Uses

func GetLicenseManager() *LicenseManager

GetLicenseManager get license Manager

func (*LicenseManager) AnalystLicense Uses

func (l *LicenseManager) AnalystLicense(w http.ResponseWriter, r *http.Request)

AnalystLicense AnalystLicense swagger:operation POST /license license SendLicense

提交license

post license & get token

--- produces: - application/json - application/xml parameters: - name: license

in: form
description: license
required: true
type: string
format: string

Responses:

  '200':
	   description: '{"bean":"{\"token\": \"Q3E5OXdoZDZDX3drN0QtV2gtVmpRaGtlcHJQYmFK\"}"}'

type LogFile Uses

type LogFile struct {
    Root string
}

LogFile log file down server

func GetLogFile Uses

func GetLogFile() *LogFile

GetLogFile get log file

func (LogFile) Get Uses

func (d LogFile) Get(w http.ResponseWriter, r *http.Request)

Get get

func (LogFile) GetInstallLog Uses

func (d LogFile) GetInstallLog(w http.ResponseWriter, r *http.Request)

GetInstallLog get

type MonitorMessage Uses

type MonitorMessage struct {
    // contains filtered or unexported fields
}

MonitorMessage monitor message

func GetMonitorMessage Uses

func GetMonitorMessage() *MonitorMessage

GetMonitorMessage get MonitorMessage

func (MonitorMessage) Get Uses

func (d MonitorMessage) Get(w http.ResponseWriter, r *http.Request)

Get get

type RootFuncManager Uses

type RootFuncManager struct{}

RootFuncManager root function manager

func GetRootFuncManager Uses

func GetRootFuncManager() *RootFuncManager

GetRootFuncManager get root function Manager

type SourcesInfo Uses

type SourcesInfo struct {
    TenantID        string `json:"tenant_id"`
    AvailableMemory int    `json:"available_memory"`
    Status          bool   `json:"status"`
    MemTotal        int    `json:"mem_total"`
    MemUsed         int    `json:"mem_used"`
    CpuTotal        int    `json:"cpu_total"`
    CpuUsed         int    `json:"cpu_used"`
}

SourcesInfo -

type TenantStruct Uses

type TenantStruct struct {
    StatusCli *client.AppRuntimeSyncClient
    MQClient  mqclient.MQClient
}

TenantStruct tenant struct

func (*TenantStruct) AddDefatultENV Uses

func (t *TenantStruct) AddDefatultENV(w http.ResponseWriter, r *http.Request)

AddDefatultENV AddDefatultENV

func (*TenantStruct) AddDependency Uses

func (t *TenantStruct) AddDependency(w http.ResponseWriter, r *http.Request)

AddDependency AddDependency swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/dependency v2 addDependency

增加应用依赖关系

add dependency

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) AddEnv Uses

func (t *TenantStruct) AddEnv(w http.ResponseWriter, r *http.Request)

AddEnv AddEnv swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/env v2 addEnv

增加环境变量

add env var

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) AddLabel Uses

func (t *TenantStruct) AddLabel(w http.ResponseWriter, r *http.Request, labels *api_model.LabelsStruct)

AddLabel adds label

func (*TenantStruct) AddPort Uses

func (t *TenantStruct) AddPort(w http.ResponseWriter, r *http.Request)

AddPort add port

func (*TenantStruct) AddProbe Uses

func (t *TenantStruct) AddProbe(w http.ResponseWriter, r *http.Request)

AddProbe add probe swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/probe v2 addProbe

增加应用探针

add probe

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) AddTenant Uses

func (t *TenantStruct) AddTenant(w http.ResponseWriter, r *http.Request)

AddTenant AddTenant

func (*TenantStruct) AddVolume Uses

func (t *TenantStruct) AddVolume(w http.ResponseWriter, r *http.Request)

AddVolume AddVolume

func (*TenantStruct) AddVolumeDependency Uses

func (t *TenantStruct) AddVolumeDependency(w http.ResponseWriter, r *http.Request)

AddVolumeDependency add volume dependency

func (*TenantStruct) AllTenantResources Uses

func (t *TenantStruct) AllTenantResources(w http.ResponseWriter, r *http.Request)

AllTenantResources GetResources

func (*TenantStruct) BuildList Uses

func (t *TenantStruct) BuildList(w http.ResponseWriter, r *http.Request)

BuildList BuildList

func (*TenantStruct) BuildService Uses

func (t *TenantStruct) BuildService(w http.ResponseWriter, r *http.Request)

BuildService BuildService swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/build v2 serviceBuild

应用构建

service build

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) BuildVersionInfo Uses

func (t *TenantStruct) BuildVersionInfo(w http.ResponseWriter, r *http.Request)

BuildVersionInfo -

func (*TenantStruct) BuildVersionIsExist Uses

func (t *TenantStruct) BuildVersionIsExist(w http.ResponseWriter, r *http.Request)

BuildVersionIsExist -

func (*TenantStruct) ChangeLBPort Uses

func (t *TenantStruct) ChangeLBPort(w http.ResponseWriter, r *http.Request)

ChangeLBPort change lb mapping port only support change to existing port in this tenants

func (*TenantStruct) CheckCode Uses

func (t *TenantStruct) CheckCode(w http.ResponseWriter, r *http.Request)

CheckCode CheckCode swagger:operation POST /v2/tenants/{tenant_name}/code-check v2 checkCode

应用代码检测

check code

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) CreatePlugin Uses

func (t *TenantStruct) CreatePlugin(w http.ResponseWriter, r *http.Request)

CreatePlugin add plugin

func (*TenantStruct) CreateService Uses

func (t *TenantStruct) CreateService(w http.ResponseWriter, r *http.Request)

CreateService create Service

func (*TenantStruct) DeleteBuildVersion Uses

func (t *TenantStruct) DeleteBuildVersion(w http.ResponseWriter, r *http.Request)

DeleteBuildVersion -

func (*TenantStruct) DeleteDefaultENV Uses

func (t *TenantStruct) DeleteDefaultENV(w http.ResponseWriter, r *http.Request)

DeleteDefaultENV DeleteDefaultENV

func (*TenantStruct) DeleteDependency Uses

func (t *TenantStruct) DeleteDependency(w http.ResponseWriter, r *http.Request)

DeleteDependency DeleteDependency swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias}/dependency v2 deleteDependency

删除应用依赖关系

delete dependency

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeleteDownStreamRule Uses

func (t *TenantStruct) DeleteDownStreamRule(w http.ResponseWriter, r *http.Request)

DeleteDownStreamRule 删除下游规则

func (*TenantStruct) DeleteEnv Uses

func (t *TenantStruct) DeleteEnv(w http.ResponseWriter, r *http.Request)

DeleteEnv DeleteEnv swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias}/env v2 deleteEnv

删除环境变量

delete env var

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeleteLabel Uses

func (t *TenantStruct) DeleteLabel(w http.ResponseWriter, r *http.Request, labels *api_model.LabelsStruct)

DeleteLabel deletes labels

func (*TenantStruct) DeletePlugin Uses

func (t *TenantStruct) DeletePlugin(w http.ResponseWriter, r *http.Request)

DeletePlugin DeletePlugin

func (*TenantStruct) DeletePluginBuildVersion Uses

func (t *TenantStruct) DeletePluginBuildVersion(w http.ResponseWriter, r *http.Request)

DeletePluginBuildVersion DeletePluginBuildVersion swagger:operation DELETE /v2/tenants/{tenant_name}/plugin/{plugin_id}/build-version/{version_id} v2 deletePluginVersion

删除某个构建版本信息

delete plugin version

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeletePluginRelation Uses

func (t *TenantStruct) DeletePluginRelation(w http.ResponseWriter, r *http.Request)

DeletePluginRelation DeletePluginRelation swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id} v2 deletePluginRelation

删除插件依赖

delete plugin relation

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeletePort Uses

func (t *TenantStruct) DeletePort(w http.ResponseWriter, r *http.Request)

DeletePort delete port

func (*TenantStruct) DeleteProbe Uses

func (t *TenantStruct) DeleteProbe(w http.ResponseWriter, r *http.Request)

DeleteProbe delete probe swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias}/probe v2 deleteProbe

删除应用探针

delete probe

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeleteSingleServiceInfo Uses

func (t *TenantStruct) DeleteSingleServiceInfo(w http.ResponseWriter, r *http.Request)

DeleteSingleServiceInfo DeleteService swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias} v2 deleteService

删除应用

delete service

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) DeleteTenant Uses

func (t *TenantStruct) DeleteTenant(w http.ResponseWriter, r *http.Request)

DeleteTenant DeleteTenant

func (*TenantStruct) DeleteVolume Uses

func (t *TenantStruct) DeleteVolume(w http.ResponseWriter, r *http.Request)

DeleteVolume DeleteVolume

func (*TenantStruct) DeleteVolumeDependency Uses

func (t *TenantStruct) DeleteVolumeDependency(w http.ResponseWriter, r *http.Request)

DeleteVolumeDependency delete volume dependency

func (*TenantStruct) Dependency Uses

func (t *TenantStruct) Dependency(w http.ResponseWriter, r *http.Request)

Dependency Dependency

func (*TenantStruct) DeployService Uses

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

DeployService DeployService

func (*TenantStruct) Env Uses

func (t *TenantStruct) Env(w http.ResponseWriter, r *http.Request)

Env Env

func (*TenantStruct) Event Uses

func (t *TenantStruct) Event(w http.ResponseWriter, r *http.Request)

Event GetLogs

func (*TenantStruct) GePluginEnvWhichCanBeSet Uses

func (t *TenantStruct) GePluginEnvWhichCanBeSet(w http.ResponseWriter, r *http.Request)

GePluginEnvWhichCanBeSet GePluginEnvWhichCanBeSet swagger:operation GET /v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id}/envs v2 getVersionEnvs

获取可配置的env; 从service plugin对应中取, 若不存在则返回默认可修改的变量

get version env

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) GetAllPluginBuildVersons Uses

func (t *TenantStruct) GetAllPluginBuildVersons(w http.ResponseWriter, r *http.Request)

GetAllPluginBuildVersons 获取该插件所有的构建版本 swagger:operation GET /v2/tenants/{tenant_name}/plugin/{plugin_id}/build-version v2 allPluginVersions

获取所有的构建版本信息

all plugin versions

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) GetDeployVersion Uses

func (t *TenantStruct) GetDeployVersion(w http.ResponseWriter, r *http.Request)

GetDeployVersion GetDeployVersion by service

func (*TenantStruct) GetDownStreamRule Uses

func (t *TenantStruct) GetDownStreamRule(w http.ResponseWriter, r *http.Request)

GetDownStreamRule 获取下游规则 swagger:operation GET /v2/tenants/{tenant_name}/services/{service_alias}/net-rule/downstream/{dest_service_alias}/{port} v2 getNetDownStreamRuleStruct

获取下游网络规则

set NetDownStreamRuleStruct

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) GetManyDeployVersion Uses

func (t *TenantStruct) GetManyDeployVersion(w http.ResponseWriter, r *http.Request)

GetManyDeployVersion GetDeployVersion by some service id

func (*TenantStruct) GetPluginBuildVersion Uses

func (t *TenantStruct) GetPluginBuildVersion(w http.ResponseWriter, r *http.Request)

GetPluginBuildVersion 获取某构建版本信息 swagger:operation GET /v2/tenants/{tenant_name}/plugin/{plugin_id}/build-version/{version_id} v2 pluginVersion

获取某个构建版本信息

plugin version

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) GetPluginDefaultEnvs Uses

func (t *TenantStruct) GetPluginDefaultEnvs(w http.ResponseWriter, r *http.Request)

GetPluginDefaultEnvs GetPluginDefaultEnvs

func (*TenantStruct) GetPlugins Uses

func (t *TenantStruct) GetPlugins(w http.ResponseWriter, r *http.Request)

GetPlugins GetPlugins

func (*TenantStruct) GetSingleServiceInfo Uses

func (t *TenantStruct) GetSingleServiceInfo(w http.ResponseWriter, r *http.Request)

GetSingleServiceInfo GetSingleServiceInfo

func (*TenantStruct) GetSupportProtocols Uses

func (t *TenantStruct) GetSupportProtocols(w http.ResponseWriter, r *http.Request)

GetSupportProtocols GetSupportProtocols swagger:operation GET /v2/tenants/{tenant_name}/protocols v2 getSupportProtocols

获取当前数据中心支持的protocols

get region protocols

--- produces: - application/json - application/xml parameters: - name: tenant_name

in: path
description: tenant name
required: true
type: string

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) GetTenants Uses

func (t *TenantStruct) GetTenants(w http.ResponseWriter, r *http.Request)

GetTenants GetTenants

func (*TenantStruct) HorizontalService Uses

func (t *TenantStruct) HorizontalService(w http.ResponseWriter, r *http.Request)

HorizontalService HorizontalService swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/horizontal v2 horizontalService

应用水平伸缩

service horizontal

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) Label Uses

func (t *TenantStruct) Label(w http.ResponseWriter, r *http.Request)

Label -

func (*TenantStruct) LimitTenantMemory Uses

func (t *TenantStruct) LimitTenantMemory(w http.ResponseWriter, r *http.Request)

LimitTenantMemory -

func (*TenantStruct) PluginAction Uses

func (t *TenantStruct) PluginAction(w http.ResponseWriter, r *http.Request)

PluginAction plugin action

func (*TenantStruct) PluginBuild Uses

func (t *TenantStruct) PluginBuild(w http.ResponseWriter, r *http.Request)

PluginBuild PluginBuild swagger:operation POST /v2/tenants/{tenant_name}/plugin/{plugin_id}/build v2 buildPlugin

构建plugin

build plugin

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) PluginDefaultENV Uses

func (t *TenantStruct) PluginDefaultENV(w http.ResponseWriter, r *http.Request)

PluginDefaultENV PluginDefaultENV

func (*TenantStruct) PluginSet Uses

func (t *TenantStruct) PluginSet(w http.ResponseWriter, r *http.Request)

PluginSet PluginSet

func (*TenantStruct) Pods Uses

func (t *TenantStruct) Pods(w http.ResponseWriter, r *http.Request)

Pods pods swagger:operation GET /v2/tenants/{tenant_name}/services/{service_alias}/pods v2 getPodsInfo

获取pods信息

get pods info

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) Port Uses

func (t *TenantStruct) Port(w http.ResponseWriter, r *http.Request)

Port Port

func (*TenantStruct) PortInnerController Uses

func (t *TenantStruct) PortInnerController(w http.ResponseWriter, r *http.Request)

PortInnerController 开关端口对内服务 swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/ports/{port}/inner v2 PortInnerController

开关对内服务,应用无需重启,自动生效

add port

--- Consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) PortOuterController Uses

func (t *TenantStruct) PortOuterController(w http.ResponseWriter, r *http.Request)

PortOuterController 开关端口对外服务 swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/ports/{port}/outer v2 PortOuterController

开关端口对外服务,应用无需重启自动生效

add port

--- Consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) Ports Uses

func (t *TenantStruct) Ports(w http.ResponseWriter, r *http.Request)

Ports 应用端口控制器

func (*TenantStruct) PostStatusService Uses

func (t *TenantStruct) PostStatusService(w http.ResponseWriter, r *http.Request)

PostStatusService PostStatusService

func (*TenantStruct) Probe Uses

func (t *TenantStruct) Probe(w http.ResponseWriter, r *http.Request)

Probe probe

func (*TenantStruct) PutPorts Uses

func (t *TenantStruct) PutPorts(w http.ResponseWriter, r *http.Request)

PutPorts PortVar swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/ports v2 updatePort

更新应用端口信息(旧)

update port

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) RestartService Uses

func (t *TenantStruct) RestartService(w http.ResponseWriter, r *http.Request)

RestartService RestartService swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/restart v2 restartService

重启应用

restart service

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) RollBack Uses

func (t *TenantStruct) RollBack(w http.ResponseWriter, r *http.Request)

RollBack RollBack swagger:operation Post /v2/tenants/{tenant_name}/services/{service_alias}/rollback v2 rollback

应用版本回滚

service rollback

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) ServiceResources Uses

func (t *TenantStruct) ServiceResources(w http.ResponseWriter, r *http.Request)

ServiceResources ServiceResources

func (*TenantStruct) ServicesCount Uses

func (t *TenantStruct) ServicesCount(w http.ResponseWriter, r *http.Request)

ServicesCount Get all apps and status

func (*TenantStruct) ServicesInfo Uses

func (t *TenantStruct) ServicesInfo(w http.ResponseWriter, r *http.Request)

ServicesInfo GetServiceInfo

func (*TenantStruct) SetDownStreamRule Uses

func (t *TenantStruct) SetDownStreamRule(w http.ResponseWriter, r *http.Request)

SetDownStreamRule 设置下游规则 swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/net-rule/downstream v2 setNetDownStreamRuleStruct

设置下游网络规则

set NetDownStreamRuleStruct

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) SetLanguage Uses

func (t *TenantStruct) SetLanguage(w http.ResponseWriter, r *http.Request)

SetLanguage SetLanguage

func (*TenantStruct) Share Uses

func (t *TenantStruct) Share(w http.ResponseWriter, r *http.Request)

Share 应用分享

func (*TenantStruct) SharePlugin Uses

func (t *TenantStruct) SharePlugin(w http.ResponseWriter, r *http.Request)

SharePlugin share tenants plugin

func (*TenantStruct) SharePluginResult Uses

func (t *TenantStruct) SharePluginResult(w http.ResponseWriter, r *http.Request)

SharePluginResult SharePluginResult

func (*TenantStruct) ShareResult Uses

func (t *TenantStruct) ShareResult(w http.ResponseWriter, r *http.Request)

ShareResult 获取分享结果

func (*TenantStruct) SingleServiceInfo Uses

func (t *TenantStruct) SingleServiceInfo(w http.ResponseWriter, r *http.Request)

SingleServiceInfo SingleServiceInfo

func (*TenantStruct) SingleTenantResources Uses

func (t *TenantStruct) SingleTenantResources(w http.ResponseWriter, r *http.Request)

SingleTenantResources SingleTenantResources swagger:operation GET /v2/tenants/{tenant_name}/resources v2 singletenantResources

指定租户资源使用情况

get tenant resources

--- produces: - application/json - application/xml parameters: - name: tenant_name

in: path
description: tenant name
required: true
type: string

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) StartService Uses

func (t *TenantStruct) StartService(w http.ResponseWriter, r *http.Request)

StartService StartService swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/start v2 startService

启动应用

start service

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) StatusContainerID Uses

func (t *TenantStruct) StatusContainerID(w http.ResponseWriter, r *http.Request)

StatusContainerID StatusContainerID

func (*TenantStruct) StatusService Uses

func (t *TenantStruct) StatusService(w http.ResponseWriter, r *http.Request)

StatusService StatusService

func (*TenantStruct) StatusServiceList Uses

func (t *TenantStruct) StatusServiceList(w http.ResponseWriter, r *http.Request)

StatusServiceList service list status

func (*TenantStruct) StopService Uses

func (t *TenantStruct) StopService(w http.ResponseWriter, r *http.Request)

StopService StopService swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/stop v2 stopService

关闭应用

stop service

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) SumTenants Uses

func (t *TenantStruct) SumTenants(w http.ResponseWriter, r *http.Request)

SumTenants 统计租户数量

func (*TenantStruct) Tenant Uses

func (t *TenantStruct) Tenant(w http.ResponseWriter, r *http.Request)

Tenant Tenant

func (*TenantStruct) TenantResources Uses

func (t *TenantStruct) TenantResources(w http.ResponseWriter, r *http.Request)

TenantResources TenantResources

func (*TenantStruct) TenantResourcesStatus Uses

func (t *TenantStruct) TenantResourcesStatus(w http.ResponseWriter, r *http.Request)

TenantResourcesStatus tenant resources status

func (*TenantStruct) TenantsGetByName Uses

func (t *TenantStruct) TenantsGetByName(w http.ResponseWriter, r *http.Request)

TenantsGetByName TenantsGetByName

func (*TenantStruct) TenantsQuery Uses

func (t *TenantStruct) TenantsQuery(w http.ResponseWriter, r *http.Request)

TenantsQuery TenantsQuery

func (*TenantStruct) TenantsWithResource Uses

func (t *TenantStruct) TenantsWithResource(w http.ResponseWriter, r *http.Request)

TenantsWithResource TenantsWithResource

func (*TenantStruct) TransPlugins Uses

func (t *TenantStruct) TransPlugins(w http.ResponseWriter, r *http.Request)

TransPlugins transPlugins swagger:operation POST /v2/tenants/{tenant_name}/transplugins v2 transPlugins

安装云帮默认plugins

trans plugins

--- produces: - application/json - application/xml parameters: - name: tenant_name

in: path
description: tenant name
required: true
type: string

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) UpdVolume Uses

func (t *TenantStruct) UpdVolume(w http.ResponseWriter, r *http.Request)

UpdVolume updates service volume.

func (*TenantStruct) UpdateDefaultENV Uses

func (t *TenantStruct) UpdateDefaultENV(w http.ResponseWriter, r *http.Request)

UpdateDefaultENV UpdateDefaultENV

func (*TenantStruct) UpdateDownStreamRule Uses

func (t *TenantStruct) UpdateDownStreamRule(w http.ResponseWriter, r *http.Request)

UpdateDownStreamRule 更新下游规则 swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/net-rule/downstream/{dest_service_alias}/{port} v2 updateNetDownStreamRuleStruct

更新下游网络规则

update NetDownStreamRuleStruct

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) UpdateEnv Uses

func (t *TenantStruct) UpdateEnv(w http.ResponseWriter, r *http.Request)

UpdateEnv UpdateEnv swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/env v2 update Env

修改环境变量

update env var

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) UpdateLabel Uses

func (t *TenantStruct) UpdateLabel(w http.ResponseWriter, r *http.Request, labels *api_model.LabelsStruct)

UpdateLabel Update updates labels

func (*TenantStruct) UpdatePlugin Uses

func (t *TenantStruct) UpdatePlugin(w http.ResponseWriter, r *http.Request)

UpdatePlugin UpdatePlugin

func (*TenantStruct) UpdatePort Uses

func (t *TenantStruct) UpdatePort(w http.ResponseWriter, r *http.Request)

UpdatePort Update port

func (*TenantStruct) UpdateProbe Uses

func (t *TenantStruct) UpdateProbe(w http.ResponseWriter, r *http.Request)

UpdateProbe update probe swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/probe v2 updateProbe

更新应用探针信息, *注意此处为全量更新

update probe

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) UpdateService Uses

func (t *TenantStruct) UpdateService(w http.ResponseWriter, r *http.Request)

UpdateService create Service

func (*TenantStruct) UpdateTenant Uses

func (t *TenantStruct) UpdateTenant(w http.ResponseWriter, r *http.Request)

UpdateTenant UpdateTenant

func (*TenantStruct) UpdateVersionEnv Uses

func (t *TenantStruct) UpdateVersionEnv(w http.ResponseWriter, r *http.Request)

UpdateVersionEnv UpdateVersionEnv swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id}/upenv v2 updateVersionEnv

modify the app plugin config info. it will Thermal effect

update version env

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) UpgradeService Uses

func (t *TenantStruct) UpgradeService(w http.ResponseWriter, r *http.Request)

UpgradeService UpgradeService swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/upgrade v2 upgradeService

升级应用

upgrade service

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) VerticalService Uses

func (t *TenantStruct) VerticalService(w http.ResponseWriter, r *http.Request)

VerticalService VerticalService swagger:operation PUT /v2/tenants/{tenant_name}/services/{service_alias}/vertical v2 verticalService

应用垂直伸缩

service vertical

--- consumes: - application/json - application/x-protobuf

produces: - application/json - application/xml

responses:

default:
  schema:
    "$ref": "#/responses/commandResponse"
  description: 统一返回格式

func (*TenantStruct) VolumeDependency Uses

func (t *TenantStruct) VolumeDependency(w http.ResponseWriter, r *http.Request)

VolumeDependency VolumeDependency

type ThirdPartyServiceController Uses

type ThirdPartyServiceController struct{}

ThirdPartyServiceController implements ThirdPartyServicer

func (*ThirdPartyServiceController) Endpoints Uses

func (t *ThirdPartyServiceController) Endpoints(w http.ResponseWriter, r *http.Request)

Endpoints POST->add endpoints, PUT->update endpoints, DELETE->delete endpoints

type V2Manager Uses

type V2Manager interface {
    Show(w http.ResponseWriter, r *http.Request)
    Nodes(w http.ResponseWriter, r *http.Request)
    Jobs(w http.ResponseWriter, r *http.Request)
    Apps(w http.ResponseWriter, r *http.Request)
    Health(w http.ResponseWriter, r *http.Request)
    AlertManagerWebHook(w http.ResponseWriter, r *http.Request)
    Version(w http.ResponseWriter, r *http.Request)

    api.TenantInterface
    api.ServiceInterface
    api.LogInterface
    api.PluginInterface
    api.RulesInterface
    api.AppInterface
    api.Gatewayer
    api.ThirdPartyServicer
    api.Labeler
    api.AppRestoreInterface
}

V2Manager v2 manager

func GetManager Uses

func GetManager() V2Manager

GetManager 获取管理器

type V2Routes Uses

type V2Routes struct {
    TenantStruct
    AcpNodeStruct
    EventLogStruct
    AppStruct
    GatewayStruct
    ThirdPartyServiceController
    LabelController
    AppRestoreController
}

V2Routes v2Routes

func NewManager Uses

func NewManager(conf option.Config, statusCli *client.AppRuntimeSyncClient) (*V2Routes, error)

NewManager new manager

func (*V2Routes) AlertManagerWebHook Uses

func (v2 *V2Routes) AlertManagerWebHook(w http.ResponseWriter, r *http.Request)

AlertManagerWebHook -

func (*V2Routes) Health Uses

func (v2 *V2Routes) Health(w http.ResponseWriter, r *http.Request)

Health show health status

func (*V2Routes) Show Uses

func (v2 *V2Routes) Show(w http.ResponseWriter, r *http.Request)

Show test

func (*V2Routes) Version Uses

func (v2 *V2Routes) Version(w http.ResponseWriter, r *http.Request)

Version -

Directories

PathSynopsis
upload
validation

Package controller imports 47 packages (graph) and is imported by 6 packages. Updated 2019-07-07. Refresh now. Tools for package owners.