connections

package
v0.0.2-0...-83fa1ee Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 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 Connection

type Connection struct {
	Id           uuid.UUID          `db:"id" json:"id" validate:"required,uuid"`
	IP_Address   string             `json:"ip_address"`
	Hostname     string             `json:"hostname"`
	FriendlyName string             `json:"friendly_name"`
	Port         int                `json:"port"`
	Protocol     string             `json:"protocol"`
	Username     string             `json:"username"`
	SSH_Key      string             `json:"ssh_key"`
	Password     string             `json:"password"`
	CreatedAt    time.Time          `json:"created_at"`
	UpdatedAt    time.Time          `json:"updated_at"`
	Settings     ConnectionSettings `json:"settings"`

	Memory_Total int `json:"memory_total"`
	Memory_Free  int `json:"memory_free"`

	CPU_Total int `json:"cpu_total"`
	CPU_Free  int `json:"cpu_free"`
	CPU_Cores int `json:"cpu_cores"`

	Drives     []disk.Drive `json:"drives"`
	Swap_Total int          `json:"swap_total"`
	Swap_Free  int          `json:"swap_free"`

	Uptime int `json:"uptime"`

	Last_seen time.Time `json:"last_seen"`
}

type ConnectionSettings

type ConnectionSettings struct {
	ID                 uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	Name               string    `json:"name"`
	Host               string    `json:"host"`
	Port               int       `json:"port"`
	Username           string    `json:"username"`
	Password           string    `json:"password"`
	Protocol           string    `json:"protocol"`
	SSH_Key            string    `json:"ssh_key"`
	FriendlyName       string    `json:"friendly_name"`
	CreatedAt          time.Time `json:"created_at"`
	UpdatedAt          time.Time `json:"updated_at"`
	Poll_interval      int       `json:"poll_interval"`
	Poll_interval_unit string    `json:"poll_interval_unit"`

	Sync_Directories    []disk.DirectoryExt `json:"sync_directories"`
	Scan_Directories    []disk.DirectoryExt `json:"scan_directories"`
	Move_To_Directories []disk.DirectoryExt `json:"move_to_directories"`
	Ignore_Directories  []disk.DirectoryExt `json:"ignore_directories"`
	Ignore_Files        []disk.FileExt      `json:"ignore_files"`
	Include_Files       []disk.FileExt      `json:"include_files"`
	Exclude_Regex       []string            `json:"exclude_files_regex"`
	Sync_On_Startup     bool                `json:"sync_on_startup"`

	//ManagedProcesses []Process `json:"managed_processes"`
	Ignored_PIDs           []int    `json:"ignored_pids"`
	Ignored_Processes      []string `json:"ignored_processes"`
	Ignore_Process_Pattern string   `json:"ignore_process_pattern"`

	Ignore_CPU_Usage      bool `json:"ignore_cpu_usage"`
	Ignore_Memory_Usage   bool `json:"ignore_memory_usage"`
	Ignore_Disk_Usage     bool `json:"ignore_disk_usage"`
	Ignore_Uptime         bool `json:"ignore_uptime"`
	Ignore_Last_Seen      bool `json:"ignore_last_seen"`
	Ignore_Processes      bool `json:"ignore_processes"`
	Ignore_Process_Count  bool `json:"ignore_process_count"`
	Ignore_Process_Memory bool `json:"ignore_process_memory"`
	Ignore_Process_CPU    bool `json:"ignore_process_cpu"`
	Ignore_Process_Disk   bool `json:"ignore_process_disk"`
	Ignore_Process_Uptime bool `json:"ignore_process_uptime"`

	Hidden      bool        `json:"hidden"`
	Login_Users []auth.User `json:"login_users"`
}

type ConnectionsRequest

type ConnectionsRequest struct {
	Kind string `json:"kind"`
}

type ConntrackStatRequest

type ConntrackStatRequest struct {
	PerCPU bool `json:"per_cpu"`
}

Jump to

Keyboard shortcuts

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