agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 29 Imported by: 0

README

Agent API

  • GET /api/agent - 获取Agent配置
  • GET /api/agent/pull - 拉取Agent事件(长连接)
  • PUT /api/agent/push - 推送Agent事件
  • GET /api/agent/upgrade - 下载新版本

认证

Tea-Agent-Id: KwOe0dkxtyKHzMRC
Tea-Agent-Key: ZtJUYdjO6enUwHwx9TyczhrqAHoO2FBv

其余信息

Tea-Agent-Version: Agent版本号
Tea-Agent-Os: Agent操作系统代号
Tea-Agent-Arch: Agent可执行文件架构

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action actions.ActionObject) bool

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct{})

读取Agent配置

type IpAction

type IpAction actions.Action

func (*IpAction) Run

func (this *IpAction) Run(params struct{})

探测主机访问Master的IP

type PullAction

type PullAction actions.Action

func (*PullAction) Run

func (this *PullAction) Run(params struct{})

拉取事件

type PushAction

type PushAction actions.Action

func (*PushAction) Run

func (this *PushAction) Run(params struct{})

接收推送的数据

type UpgradeAction

type UpgradeAction actions.Action

func (*UpgradeAction) Run

func (this *UpgradeAction) Run(params struct{})

升级信息

Jump to

Keyboard shortcuts

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