agentconf

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(c Config, loc string) error

Types

type Config

type Config struct {
	APIKey     string `json:"api_key"`
	Channel    string `json:"channel"`
	CustomerID string `json:"customer_id"`
	DeviceID   string `json:"device_id"`
	// SystemID normally does not change across installs on the same machine. But to be safe we keep it in config as well.
	SystemID        string `json:"system_id"`
	PPEncryptionKey string `json:"pp_encryption_key"`
	IntegrationsDir string `json:"integrations-dir"`
	// LogLevel to use for the service (optional)
	LogLevel string `json:"log_level"`

	// ExtraIntegrations defines additional integrations that will run on every export trigger in run command. This is needed to run a custom integration for one of our customers. You need to add these custom integrations to config manually after enroll.
	ExtraIntegrations []inconfig.IntegrationAgent `json:"extra_integrations"`
}

func Load

func Load(loc string) (res Config, _ error)

Jump to

Keyboard shortcuts

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