module

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ManagementAddress string
	HostGroupUUID     string
	HostGroupSecret   string
	HostUUID          string
	HostSecret        string
	// contains filtered or unexported fields
}

Agent type

func NewAgent

func NewAgent() *Agent

NewAgent creates a new instance

func (*Agent) Encrypt64

func (a *Agent) Encrypt64(key, data string) string

Encrypt64 create encrypted version of a data

func (*Agent) Heartbeat

func (a *Agent) Heartbeat(request HeartbeatRequest) error

Heartbeat send a heartbeat to management server

func (*Agent) Join

func (a *Agent) Join(request JoinRequest) error

Join join the host group under the management server

func (*Agent) Report

func (a *Agent) Report(event AgentEvent) error

Report report local actions to the management server

func (*Agent) ValidateManagementCommandRequest added in v0.5.5

func (a *Agent) ValidateManagementCommandRequest(cmd model.Command, token string) bool

ValidateManagementRequest validates incoming request

type AgentEvent added in v0.5.5

type AgentEvent struct {
	Type     string
	Record   string
	TaskUUID string
}

type HeartbeatRequest

type HeartbeatRequest struct {
	Status string
}

HeartbeatRequest type

type JoinRequest

type JoinRequest struct {
	Name         string
	Hostname     string
	AgentAddress string
	Labels       string
	AgentSecret  string
}

JoinRequest type

type System

type System struct {
}

System type

Jump to

Keyboard shortcuts

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