vmHandler

package
v0.0.0-...-5746ace Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCtrl

type ServiceCtrl struct {
	ToolService   *vmAgentService.ToolService   `inject:""`
	StatusService *vmAgentService.StatusService `inject:""`
}

func NewCheckCtrl

func NewCheckCtrl() *ServiceCtrl

func (*ServiceCtrl) Check

func (c *ServiceCtrl) Check(ctx iris.Context)

@summary 检测虚拟机服务状态 @Accept json @Produce json @Param VmServiceCheckReq body v1.VmServiceCheckReq true "Service Check Request Object" @Success 200 {object} v1.VmServiceCheckResp "code = success | fail" @Router /api/v1/service/check [post]

func (*ServiceCtrl) Heartbeat

func (c *ServiceCtrl) Heartbeat(ctx iris.Context)

@summary ztf心跳并请求Token @Accept json @Produce json @Param VmNotifyReq body v1.VmNotifyReq true "Vm Notify Request Object" @Success 200 {object} _domain.Response{data=v1.VmNotifyResp} "code = success | fail" @Router /api/v1/virtual/notifyHost [post]

func (*ServiceCtrl) Setup

func (c *ServiceCtrl) Setup(ctx iris.Context)

@summary 安装虚拟机服务 @Accept json @Produce json @Param VmServiceCheckReq body v1.VmServiceInstallReq true "Service Install Request Object" @Success 200 {object} v1.VmServiceInstallResp "code = success | fail" @Router /api/v1/service/setup [post]

Jump to

Keyboard shortcuts

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