Documentation ¶
Index ¶
- Constants
- func GetConfigFromRemote(agentID string, detail map[string]interface{}) ([]*pb.ConfigItem, error)
- func GetExtraInfoFromRemote(idList []string) (map[string]AgentExtraInfo, error)
- func PostTask(postList []map[string]string)
- func UploadFile(filePath string, hash string) (string, error)
- type AgentExtraInfo
- type ConfigMsg
- type ResAgentConf
- type ResAgentTags
- type ResTaskConf
- type UploadResp
Constants ¶
View Source
const ( ConfigUrl = `http://%s/api/v6/component/GetComponentInstances` TagsUrl = `http://%s/api/v1/agent/queryInfo` )
View Source
const TaskUrl = `http://%s/api/v1/agent/updateSubTask`
View Source
const (
UploadFileUrl = "http://%s/api/v6/shared/Upload"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromRemote ¶
func GetConfigFromRemote(agentID string, detail map[string]interface{}) ([]*pb.ConfigItem, error)
func GetExtraInfoFromRemote ¶
func GetExtraInfoFromRemote(idList []string) (map[string]AgentExtraInfo, error)
Types ¶
type AgentExtraInfo ¶
type ConfigMsg ¶
type ConfigMsg struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Signature string `json:"signature,omitempty"` Version string `json:"version,omitempty"` SHA256 string `json:"sha256,omitempty"` DownloadURL []string `json:"download_url,omitempty"` Detail string `json:"detail,omitempty"` }
type ResAgentConf ¶
type ResAgentTags ¶
type ResAgentTags struct { Code int `json:"code"` Message string `json:"msg"` Data map[string]AgentExtraInfo `json:"data"` }
type ResTaskConf ¶
type UploadResp ¶
Click to show internal directories.
Click to hide internal directories.