package
5.2.2-release+incompatible
Repository: https://github.com/yangkaa/rainbond.git
Documentation: pkg.go.dev
# Functions
AddVolume AddVolume.
AddVolumeDependency add volume dependency.
BackupCopy backup copy.
Backups list all backup history by group app.
BatchOperation batch operation for tenantsupport operation is : start,build,stop,update.
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.
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: 统一返回格式.
CheckLabel check label.
CheckMapKey CheckMapKey.
CreateV2RouterManager 创建manager.
DeleteBackup delete backup.
DeleteVolume DeleteVolume.
DeleteVolumeDependency delete volume dependency.
DeleteVolumeType delete volume option.
DirectRequest direct request.
Display 遍历结构体.
FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.
GetBackup get one backup status.
GetCloudRouterManager get cloud Manager.
GetDepVolume 获取应用所有依赖的存储.
GetDockerConsole get Docker console.
GetDockerLog get docker log.
GetEventLog get event log.
GetGatewayIPs get gateway ips.
GetLicenseManager get license Manager.
GetLogFile get log file.
GetManager 获取管理器.
GetMonitorMessage get MonitorMessage.
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: 统一返回格式.
GetNotificationEvents GetNotificationEventsupport 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: 统一返回格式.
GetPubSubControll get service pub sub controller.
GetRootFuncManager get root function Manager.
GetRunningServices list all running service ids.
GetServiceAliasID get service alias idpython: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].
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: 统一返回格式.
GetServiceDeployInfo get service deploy info.
GetVolume 获取应用全部存储,包括依赖的存储.
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: 统一返回格式.
HTTPRequest public http request.
ListVolumeType list volume type list.
NewBackups new group app backup.
NewManager new manager.
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.
RestInfo rest info.
Restore restore group app.
RestoreResult restore group app result.
TestFunc test func.
TransBody transfer body to map.
TransStatus trans service status.
UpdateVolumeType delete volume option.
VolumeOptions list volume option.
VolumeSetVar set volume option.
# Structs
AppRestoreController is an implementation of AppRestoreInterface.
AppStruct -.
CloudManager cloud manager.
ClusterController -.
DockerConsole docker console.
DockerLog docker log.
EventLog event log.
EventLogStruct eventlog struct.
GatewayStruct -.
Handle Handle swagger:parameters handlenotify.
LabelController implements Labeler.
LicenseManager license manager.
LogFile log file down server.
MonitorMessage monitor message.
PodController is an implementation of PodInterface.
PubSubControll service pub sub.
RootFuncManager root function manager.
SourcesInfo -.
TenantStruct tenant struct.
ThirdPartyServiceController implements ThirdPartyServicer.
V2Routes v2Routes.
# Interfaces
V2Manager v2 manager.