module

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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()

Report report local actions to the management server

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