agent

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgentExecutablePath

func GetAgentExecutablePath(orgId string) string

func GetConfigFilePath

func GetConfigFilePath(orgId string) string

func GetDataDirectory added in v0.4.0

func GetDataDirectory(orgId string) string

func GetLogFilePath

func GetLogFilePath(orgId string) string

func GetProgramDirectory added in v0.4.0

func GetProgramDirectory(orgId string) string

func GetScriptsDirectory

func GetScriptsDirectory(orgId string) string

func GetServiceExecutablePath

func GetServiceExecutablePath(orgId string) string

func GetServiceManagerPath

func GetServiceManagerPath(orgId string) string

func GetServiceName

func GetServiceName(orgId string) string

func RunAutoUpdater added in v0.16.0

func RunAutoUpdater(logger hclog.Logger, device Device)

Types

type Device

type Device struct {
	DeviceId             string             `json:"device_id"`
	RewstOrgId           string             `json:"rewst_org_id"`
	RewstEngineHost      string             `json:"rewst_engine_host"`
	SharedAccessKey      string             `json:"shared_access_key"`
	AzureIotHubHost      string             `json:"azure_iot_hub_host"`
	Broker               string             `json:"broker"`
	LoggingLevel         utils.LoggingLevel `json:"logging_level"`
	UseSyslog            bool               `json:"syslog"`
	Plugins              []Plugin           `json:"plugins"`
	DisableAgentPostback bool               `json:"disable_agent_postback"`
	DisableAutoUpdates   bool               `json:"disable_auto_updates"`
}

type HostInfo

type HostInfo struct {
	AgentVersion          string  `json:"agent_version"`
	AgentExecutablePath   string  `json:"agent_executable_path"`
	ServiceExecutablePath string  `json:"service_executable_path"`
	HostName              string  `json:"hostname"`
	MacAddress            *string `json:"mac_address"`
	OperatingSystem       string  `json:"operating_system"`
	CpuModel              string  `json:"cpu_model"`
	RamGb                 string  `json:"ram_gb"`
	AdDomain              *string `json:"ad_domain"`
	IsAdDomainController  bool    `json:"is_ad_domain_controller"`
	IsEntraConnectServer  bool    `json:"is_entra_connect_server"`
	EntraDomain           *string `json:"entra_domain"`
	OrgId                 string  `json:"org_id"`
}

func (*HostInfo) Load

func (hostInfo *HostInfo) Load(ctx context.Context, orgId string, logger hclog.Logger) error

type PathsData

type PathsData struct {
	ServiceExecutablePath string   `json:"service_executable_path"`
	AgentExecutablePath   string   `json:"agent_executable_path"`
	ConfigFilePath        string   `json:"config_file_path"`
	ServiceManagerPath    string   `json:"service_manager_path"`
	Tags                  HostInfo `json:"tags"`
}

func (*PathsData) Load

func (paths *PathsData) Load(ctx context.Context, orgId string, logger hclog.Logger) error

type Plugin added in v0.12.0

type Plugin struct {
	Name           string `json:"name"`
	ExecutablePath string `json:"executable_path"`
}

Jump to

Keyboard shortcuts

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