module

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 4 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()

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