agent

package
v0.0.0-...-f7536bd Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine) error

Types

type AgentApi

type AgentApi struct {
}

func NewAgentApi

func NewAgentApi() *AgentApi

func (*AgentApi) ApiAgentDetailScript

func (api *AgentApi) ApiAgentDetailScript(c *gin.Context)

ApiAgentDetailScript get scirpt info @Summary get scirpt info @Description get scirpt info @Produce json @Tags agent @Success 200 json map[string]interface{} @Router /agent/scripts/:name [get]

func (*AgentApi) ApiAgentRunScript

func (api *AgentApi) ApiAgentRunScript(c *gin.Context)

ApiAgentRunScript run a command post to server @Summary run a command post to server @Description run a command post to server @Produce json @Tags agent @Success 200 json map[string]interface{} @Router /agent/script/run [post]

func (*AgentApi) ApiAgentScripts

func (api *AgentApi) ApiAgentScripts(c *gin.Context)

ApiAgentScirpts list scripts @Summary list scripts @Description list scripts @Produce json @Tags agent @Success 200 json map[string]interface{} @Router /agent/scripts [get]

Jump to

Keyboard shortcuts

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