shared

package
v0.0.0-...-e35f9e6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentHeader

type AgentHeader struct {
	Func    string `json:"func"`
	AgentId string `json:"agent_id"`
	Version string `json:"version"`
}

type AgentNeedsReboot

type AgentNeedsReboot struct {
	AgentID     string `json:"agent_id"`
	NeedsReboot bool   `json:"reboot_pending"`
}

type AllChecks

type AllChecks struct {
	CheckInfo
	Checks []Check
}

type AssignedTask

type AssignedTask struct {
	TaskPK  int  `json:"id"`
	Enabled bool `json:"enabled"`
}

type AutomatedTask

type AutomatedTask struct {
	ID         int      `json:"id"`
	TaskScript Script   `json:"script"`
	Timeout    int      `json:"timeout"`
	Enabled    bool     `json:"enabled"`
	Args       []string `json:"script_args"`
}

type Check

type Check struct {
	Script         Script         `json:"script"`
	AssignedTasks  []AssignedTask `json:"assigned_tasks"`
	CheckPK        int            `json:"id"`
	CheckType      string         `json:"check_type"`
	Storage        string         `json:"storage"`
	IP             string         `json:"ip"`
	ScriptArgs     []string       `json:"script_args"`
	Timeout        int            `json:"timeout"`
	ServiceName    string         `json:"svc_name"`
	LogName        string         `json:"log_name"`
	EventID        int            `json:"event_id"`
	SearchLastDays int            `json:"search_last_days"`
	Status         string         `json:"status"`
}

type CheckInDisk

type CheckInDisk struct {
	AgentHeader
	Drives []jetrmm.StorageDrive `json:"drives"`
}

type CheckInLoggedUser

type CheckInLoggedUser struct {
	AgentHeader
	Username string `json:"logged_in_username"`
}

type CheckInPublicIP

type CheckInPublicIP struct {
	AgentHeader
	PublicIP string `json:"public_ip"`
}

type CheckInSW

type CheckInSW struct {
	AgentHeader
	InstalledSW []jetrmm.Software `json:"software"`
}

type CheckInfo

type CheckInfo struct {
	AgentPK  int `json:"agent"`
	Interval int `json:"check_interval"`
}

type RecoveryAction

type RecoveryAction struct {
	Mode     string `json:"mode"` // command, rpc
	ShellCMD string `json:"shellcmd"`
}

type RpcPayload

type RpcPayload struct {
	Func    string            `json:"func"`
	Data    map[string]string `json:"payload"`
	Timeout int               `json:"timeout"`
}

from NatsMsg

type Script

type Script struct {
	Interpreter string `json:"interpreter"` // cmd, powershell, pwsh, sh, bash, tcsh, etc.
	Code        string `json:"code"`        // base64-encoded
}

Jump to

Keyboard shortcuts

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