agent

package
v0.0.0-...-383e6fc Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package agent has the logic related with the agents. NOTE: It's just the agent, not the jobs or anything else

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx *context.Context, a *models.Agent) error

Add connects to the Agent host, creates the drlm user and copies the keys to that user, which has to be admin

func AddRequest

func AddRequest(ctx *context.Context, a *models.Agent) error

AddRequest adds a new agent request

func Install

func Install(ctx *context.Context, a *models.Agent, sshPwd string, f []byte) error

Install installs the agent binary, sets up the daemon and config and starts the service

func Sync

func Sync(ctx *context.Context, a *models.Agent) error

Sync updates the agent OS information, and all the plugins specific info such as OS, OS version, program versions...

Types

This section is empty.

Jump to

Keyboard shortcuts

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