Documentation ¶
Index ¶
- func CheckForAgents(ctx context.Context) error
- func FetchAgents(ctx context.Context) error
- func SaveAgents(aa Agents) error
- type APIAgent
- type APIAgents
- type Agent
- type Agents
- type Commands
- type ConfigFile
- type InstalledAgent
- type InstalledAgents
- type Platform
- type RegisterResponse
- type RegisteredAgents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForAgents ¶
func FetchAgents ¶
func SaveAgents ¶
Types ¶
type Agent ¶
type Agent struct { ConfigFiles map[string]string `json:"config_files" yaml:"config_files"` Binary string `json:"binary" yaml:"binary"` Start string `json:"start" yaml:"start"` Stop string `json:"stop" yaml:"stop"` Restart string `json:"restart" yaml:"restart"` Reload string `json:"reload" yaml:"reload"` Status string `json:"status" yaml:"status"` Version string `json:"version" yaml:"version"` }
type Agents ¶
key1 is platform (GOOS) e.g. darwin, windows, linux, freebsd, etc. key2 is agent e.g. fluent-bit, telegraf, etc.
func LoadAgents ¶
func ParseAPIAgents ¶
type ConfigFile ¶
type InstalledAgent ¶
type InstalledAgents ¶
type InstalledAgents []InstalledAgent
type Platform ¶
type Platform struct { ID string `json:"platform_id" yaml:"platform_id"` AgentTypeID string `json:"agent_type_id" yaml:"agent_type_id"` Executable string `json:"executable" yaml:"executable"` Commands []Commands `json:"commands" yaml:"commands"` Start string `json:"start" yaml:"start"` Stop string `json:"stop" yaml:"stop"` Restart string `json:"restart" yaml:"restart"` Reload string `json:"reload" yaml:"reload"` Status string `json:"status" yaml:"status"` Version string `json:"version" yaml:"version"` ConfigFiles []ConfigFile `json:"config_files" yaml:"config_files"` }
type RegisterResponse ¶
type RegisterResponse []RegisteredAgents
type RegisteredAgents ¶
type RegisteredAgents struct {
AgentID string `json:"agent_id"`
}
Click to show internal directories.
Click to hide internal directories.