Versions in this module Expand all Collapse all v1 v1.1.2 Apr 14, 2023 v1.1.1 Apr 12, 2023 Changes in this version type HandshakePayload + Enterprise string v1.1.0 Apr 12, 2023 v1.0.9 Apr 12, 2023 Changes in this version type ComePayload + Enterprise string v1.0.8 Apr 10, 2023 v1.0.7 Apr 10, 2023 Changes in this version type HMDynamicUsage + Enterprise string + Uuid string v1.0.6 Mar 31, 2023 Changes in this version type Msg + Enterprise string + UUID string v1.0.5 Mar 30, 2023 v1.0.4 Mar 30, 2023 Changes in this version type HMDynamicUsage + AvgStat struct{ ... } v1.0.3 Mar 29, 2023 v1.0.2 Mar 29, 2023 Changes in this version type HMCore + VendorID string type HMDynamicInterface + BytesRecvPerSec utils.Float64P2 + BytesSentPerSec utils.Float64P2 type HMStaticPayload + Baseboard struct{ ... } + Product struct{ ... } v1.0.1 Mar 30, 2023 Changes in this version + const InstallActionDone + const InstallActionDownload + const InstallActionFile + const InstallActionInstall + const LoggingAlreadyRunningMsg + const LoggingNotRunningMsg + const LoggingTypeDocker + const LoggingTypeFile + const LoggingTypeK8s + const RPAContinue + const RPAPause + const RPAStop + func Decrypt(data []byte) ([]byte, error) + func Encrypt(data []byte) ([]byte, error) + type AgentInfo struct + CpuUsage float32 + GC map[string]float64 + GoVersion string + HeapInuse uint64 + InBytes uint64 + InPackets uint64 + MemoryUsage float32 + OutBytes uint64 + OutPackets uint64 + PluginExecd uint64 + PluginOutBytes map[string]uint64 + PluginOutPackets map[string]uint64 + PluginRunning uint64 + PluginUseCount map[string]uint64 + ReadChanSize int + ReconnectCount int + Routines int + Startup int64 + Threads int + Version string + WriteChanSize int + type ComePayload struct + Arch string + CPU string + CPUCore uint64 + HostName string + ID string + IP net.IP + KernelVersion string + MAC string + Memory uint64 + Name string + OS string + Platform string + PlatformVersion string + Version string + type DownloadData struct + Data string + Offset uint64 + type DownloadError struct + Msg string + type DownloadRep struct + BlockSize uint64 + Dir string + ErrMsg string + MD5 [md5.Size]byte + OK bool + Size uint64 + type DownloadReq struct + Dir string + type ExecData struct + Data string + type ExecDone struct + Code int + Time time.Time + type ExecKill struct + Pid int + type ExecPayload struct + Args []string + Auth string + Cmd string + DeferRM string + Env []string + Pass string + Timeout int + User string + WorkDir string + type ExecdPayload struct + Msg string + OK bool + Pid int + Time time.Time + type FileInfo struct + Group string + IsLink bool + LinkDir string + Mod os.FileMode + ModTime time.Time + Name string + Size uint64 + User string + type HMAgentJob struct + BytesSent uint64 + Count uint64 + Interval uint64 + Name string + type HMAgentStatus struct + Jobs []HMAgentJob + Warnings uint64 + type HMChangeReportStatus struct + Jobs []string + type HMCore struct + Core int32 + Cores int32 + Mhz utils.Float64P2 + Model string + Physical int32 + Processor int32 + type HMDisk struct + Model string + Partitions []string + Total uint64 + Type string + type HMDynamicConnection struct + Fd uint32 + Local string + Pid int32 + Remote string + Status string + Type string + type HMDynamicInterface struct + BytesRecv uint64 + BytesSent uint64 + Name string + PacketsRecv uint64 + PacketsSent uint64 + type HMDynamicPartition struct + Free uint64 + InodeFree uint64 + InodeUsage utils.Float64P2 + InodeUsed uint64 + IopsInProgress uint64 + Name string + ReadPreSecond utils.Float64P2 + Usage utils.Float64P2 + Used uint64 + WritePreSecond utils.Float64P2 + type HMDynamicProcess struct + Cmd []string + Connections int + CpuUsage utils.Float64P2 + ID int32 + Listen []uint32 + MemoryUsage utils.Float64P2 + ParentID int32 + RssMemory uint64 + SwapMemory uint64 + User string + VirtualMemory uint64 + type HMDynamicRep struct + Begin time.Time + Connections []HMDynamicConnection + End time.Time + Process []HMDynamicProcess + SensorsTemperatures []HMSensorTemperature + Usage *HMDynamicUsage + type HMDynamicReq struct + AllowConns []string + Req []HMDynamicReqType + Top int + type HMDynamicReqType int + const HMReqConnections + const HMReqProcess + const HMReqSensorsTemperatures + const HMReqUsage + type HMDynamicUsage struct + Cpu struct{ ... } + Interface []HMDynamicInterface + Memory struct{ ... } + Partitions []HMDynamicPartition + type HMInterface struct + Address []string + Flags []string + Index int + Mac string + Mtu int + Name string + type HMJob struct + Interval time.Duration + Name string + type HMPartition struct + FSType string + INodes uint64 + Name string + Opts []string + Total uint64 + type HMReportStatusPayload struct + ConnsAllow []string + Jobs []HMJob + type HMSensorTemperature struct + Name string + Temperature utils.Float64P2 + type HMStaticPayload struct + CPU struct{ ... } + Disks []HMDisk + GateWay string + Host struct{ ... } + Interface []HMInterface + Kernel struct{ ... } + Memory struct{ ... } + NameServers []string + OS struct{ ... } + Partitions []HMPartition + Time time.Time + User []HMUser + type HMUser struct + GID string + ID string + Name string + type HandshakePayload struct + ID string + Msg string + OK bool + Redirect []string + type InstallArgs struct + Auth string + Configs []InstallConfig + Dir string + Pass string + Timeout int + URI string + URL string + User string + type InstallConfig struct + Dir string + URI string + URL string + type InstallRep struct + Action uint8 + Msg string + Name string + OK bool + Time int64 + type LogDownloadData struct + Data string + Offset uint64 + type LogDownloadInfo struct + BlockSize uint64 + ErrMsg string + MD5 [md5.Size]byte + OK bool + Size uint64 + type LogDownloadReq struct + Files []string + type LogFile struct + ModTime time.Time + Name string + Size uint64 + type LoggingConfig struct + Batch int + Buffer int + Docker *LoggingConfigDocker + Exclude string + File *LoggingConfigFile + Interval int + K8s *LoggingConfigK8s + Pid int64 + Report string + T int + type LoggingConfigDocker struct + ContainerName string + ContainerTag string + Dir string + type LoggingConfigFile struct + Dir string + type LoggingConfigK8s struct + Api string + Dir string + Names []string + Namespace string + Token string + type LoggingReport struct + AgentInfo LoggingReportAgentInfo + CountDocker uint64 + CountFile uint64 + CountK8s uint64 + Docker LoggingReportDockerData + File LoggingReportFileData + Info LoggingReportInfo + K8s LoggingReportK8sData + type LoggingReportAgentInfo struct + GC map[string]float64 + GoVersion string + HeapInuse uint64 + InBytes uint64 + InPackets uint64 + OutBytes uint64 + OutPackets uint64 + Routines int + Startup int64 + Threads int + type LoggingReportDockerData struct + Count int + type LoggingReportFileData struct + Count int + type LoggingReportInfo struct + AvgCost float64 + Bytes uint64 + Count uint64 + HttpErr uint64 + P0 int64 + P100 int64 + P50 int64 + P90 int64 + P99 int64 + QPS float64 + SrvErr uint64 + type LoggingReportK8sData struct + AvgCost float64 + CountContainer int + CountPod int + CountService int + P0 int64 + P100 int64 + P50 int64 + P90 int64 + P99 int64 + QPS float64 + type LoggingReportTask struct + ID int64 + Pods int + Running bool + type LoggingStatusRep struct + Msg string + OK bool + type LoggingStatusReq struct + ID int64 + Running bool + type LsLogPayload struct + Files []LogFile + type LsRep struct + Dir string + ErrMsg string + Files []FileInfo + OK bool + type LsReq struct + Dir string + type Msg struct + AgentInfo *AgentInfo + Come *ComePayload + DownloadData *DownloadData + DownloadError *DownloadError + DownloadRep *DownloadRep + DownloadReq *DownloadReq + ErrorMsg string + Exec *ExecPayload + ExecData *ExecData + ExecDone *ExecDone + ExecKill *ExecKill + Execd *ExecdPayload + HMAgentStatus *HMAgentStatus + HMChangeStatus *HMChangeReportStatus + HMCollectStatus *HMReportStatusPayload + HMDynamicRep *HMDynamicRep + HMDynamicReq *HMDynamicReq + HMStatic *HMStaticPayload + Handshake *HandshakePayload + Important bool + InstallArgs *InstallArgs + InstallRep *InstallRep + LSRep *LsRep + LSReq *LsReq + LogDownload *LogDownloadReq + LogDownloadData *LogDownloadData + LogDownloadInfo *LogDownloadInfo + LoggingConfig *LoggingConfig + LoggingReport *LoggingReport + LoggingStatusRep *LoggingStatusRep + LoggingStatusReq *LoggingStatusReq + LsLog *LsLogPayload + Plugin *PluginInfo + RPACtrlRep *RPACtrlRep + RPACtrlReq *RPACtrlReq + RPAFinish *RPAFinish + RPALog *RPALogData + RPARun *RPARunArgs + TaskID string + Type TypeName + Upload *Upload + UploadRep *UploadRep + type PluginInfo struct + MD5 [md5.Size]byte + Name string + URI string + Version string + type RPACtrlRep struct + Msg string + OK bool + type RPACtrlReq struct + Status int + type RPAFinish struct + Code int + Msg string + type RPALogData string + type RPARunArgs struct + IsDebug bool + URL string + type TypeName int + const TypeAgentInfo + const TypeBar + const TypeCome + const TypeDownloadData + const TypeDownloadError + const TypeDownloadRep + const TypeDownloadReq + const TypeError + const TypeExec + const TypeExecData + const TypeExecDone + const TypeExecKill + const TypeExecd + const TypeFoo + const TypeHMChangeCollectStatus + const TypeHMCollectStatus + const TypeHMDynamicRep + const TypeHMDynamicReq + const TypeHMQueryCollect + const TypeHMReportAgentStatus + const TypeHMStaticRep + const TypeHMStaticReq + const TypeHandshake + const TypeInstallArgs + const TypeInstallRep + const TypeLogDownloadData + const TypeLogDownloadInfo + const TypeLogDownloadReq + const TypeLogLsRep + const TypeLogLsReq + const TypeLoggingConfig + const TypeLoggingReport + const TypeLoggingStatusRep + const TypeLoggingStatusReq + const TypeLsRep + const TypeLsReq + const TypeRPAControlRep + const TypeRPAControlReq + const TypeRPAFinish + const TypeRPALog + const TypeRPARun + const TypeUpload + const TypeUploadRep + func (name TypeName) String() string + type Upload struct + Auth string + Data string + Dir string + MD5 [md5.Size]byte + MD5Check bool + Mod os.FileMode + Name string + OwnGroup string + OwnUser string + Pass string + Size uint64 + Token string + URI string + User string + type UploadRep struct + Dir string + ErrMsg string + OK bool + type WSWrap struct + func NewWSWrap(c *websocket.Conn) *WSWrap + func (w *WSWrap) Read(p []byte) (int, error) + func (w *WSWrap) Write(p []byte) (int, error)