Documentation ¶
Index ¶
Constants ¶
View Source
const AgentSvcName = "PaletteInsightAgent"
Constants
View Source
const InsightApiVersion = "v1"
View Source
const SplunkServerAddress = "diagnostics.palette-software.com"
View Source
const WatchdogSplunkToken = "705293B1-BDBA-486B-92D2-6BA3A542F6D7"
View Source
const WatchdogSvcDescription = "Manager for Palette Insight Agent"
View Source
const WatchdogSvcDisplayName = "Palette Insight Watchdog"
View Source
const WatchdogSvcName = "PaletteInsightWatchdog"
Variables ¶
This section is empty.
Functions ¶
func FindAgentConfigFile ¶
FIXME: locating the config file is not generic! This means this way is not going to be okay if we wanted to use this service as an auto-updater for the insight-server NOTE: This only works as long as the watchdog service runs from the very same folder as the agent. But they are supposed to be in the same folder by design.
func GetLicenseData ¶
func GetLicenseData(baseFolder string) (*insight_server.LicenseData, error)
func GetLicenseDataForConfig ¶
func GetLicenseDataForConfig(config Config) (*insight_server.LicenseData, error)
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClientWithConfig ¶
func (*ApiClient) DownloadFile ¶
func (*ApiClient) UploadFile ¶
type Config ¶
type Config struct { LicenseKey string `yaml:"LicenseKey"` Webservice Webservice `yaml:"Webservice"` }
func ParseAgentConfig ¶
func ParseConfig ¶
type Webservice ¶
Click to show internal directories.
Click to hide internal directories.