Documentation ¶
Index ¶
- type Agent
- type App
- type AppUpdate
- type Application
- type ApplicationGroup
- type ApplicationManager
- type ApplicationPort
- type ApplicationStatus
- type BasicUpdate
- type CounterResponse
- type Cpu
- type CpuUpdate
- type Device
- type DeviceUpdate
- type Disk
- type DiskType
- type DiskUpdate
- type DockerGroupInfo
- type DockerInfo
- type ErrorResponse
- type FileSystemType
- type Host
- type IPAddress
- type Interface
- type InterfaceState
- type InterfaceType
- type Network
- type NetworkUpdate
- type NicCapability
- type OkResponse
- type PartitionType
- type Ram
- type RamSlot
- type RamSlotContent
- type RamUpdate
- type StorageItem
- type StoragePartition
- type TransportProtocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Applications []ApplicationGroup `diff:"applications"`
}
type AppUpdate ¶
type AppUpdate struct { BasicUpdate App }
type Application ¶
type Application struct { Name string `diff:"name"` AppManager ApplicationManager `diff:"manager"` Status ApplicationStatus `diff:"status"` Ports []ApplicationPort `diff:"ports"` CpuLimits int `diff:"cpuLimits"` MemoryLimits uint64 `diff:"memoryLimits"` AdditionalInfo interface{} `diff:"info"` }
type ApplicationGroup ¶
type ApplicationGroup struct { Name string `diff:"name"` Applications []Application `diff:"applications"` AdditionalInfo interface{} `diff:"info"` }
type ApplicationManager ¶
type ApplicationManager string
const ( ManagerUnknown ApplicationManager = "unknown" ManagerSystemd ApplicationManager = "systemd" ManagerDocker ApplicationManager = "docker" ManagerPodman ApplicationManager = "podman" ManagerKubernetes ApplicationManager = "kubernetes" )
type ApplicationPort ¶
type ApplicationPort struct { Port int `diff:"port"` TransportProtocol TransportProtocol `diff:"transport"` InterfaceAddress string `diff:"interface"` }
type ApplicationStatus ¶
type ApplicationStatus string
const ( StatusUnknown ApplicationStatus = "unknown" StatusRunning ApplicationStatus = "running" StatusStopped ApplicationStatus = "stopped" StatusFailed ApplicationStatus = "failed" )
type BasicUpdate ¶
type BasicUpdate struct {
Uuid string
}
type CounterResponse ¶
type CounterResponse struct {
Value uint64 `json:"value"`
}
CounterResponse is the response for the counter API.
type CpuUpdate ¶
type CpuUpdate struct { BasicUpdate Cpu }
type Device ¶
type Device struct { Name string `diff:"name"` HostId string `diff:"hostid"` Arch string `diff:"arch"` KernelVersion string `diff:"kernel"` Platform string `diff:"platform"` PlatformFamily string `diff:"platformfamily"` PlatformVersion string `diff:"platformversion"` OS string `diff:"os"` Product string `diff:"product"` Boottime uint64 `diff:"-"` Uptime uint64 `diff:"-"` }
type DeviceUpdate ¶
type DeviceUpdate struct { BasicUpdate Device }
type Disk ¶
type Disk struct {
Disks []StorageItem
}
type DiskUpdate ¶
type DiskUpdate struct { BasicUpdate Disk }
type DockerGroupInfo ¶
type DockerInfo ¶
type ErrorResponse ¶
ErrorResponse is the http error response.
type FileSystemType ¶
type FileSystemType string
const ( FsExt4 FileSystemType = "ext4" FsBtrfs FileSystemType = "btrfs" FsFat FileSystemType = "fat" FsvFat FileSystemType = "vfat" FsNtfs FileSystemType = "ntfs" FsSwap FileSystemType = "swap" FsNone FileSystemType = "none" FsOther FileSystemType = "other" )
type Interface ¶
type Interface struct { Name string Virtual bool Mac string IPv4 []IPAddress IPv6 []IPAddress Mtu int State InterfaceState Type InterfaceType Speed string Capabilities []NicCapability }
type InterfaceState ¶
type InterfaceState string
const ( StateDisabled InterfaceState = "disabled" StateDisconnected InterfaceState = "disconnected" StateConnected InterfaceState = "connected" StateUnknown InterfaceState = "unknown" )
type InterfaceType ¶
type InterfaceType string
const ( TypeEthernet InterfaceType = "ethernet" TypeVirtual InterfaceType = "virtual" TypeWireless InterfaceType = "wireless" TypeBluetooth InterfaceType = "bluetooth" TypeLoopback InterfaceType = "loopback" TypeBridge InterfaceType = "bridge" TypeTunnel InterfaceType = "tunnel" TypeUnknown InterfaceType = "unknown" )
type NetworkUpdate ¶
type NetworkUpdate struct { BasicUpdate Network }
type NicCapability ¶
type OkResponse ¶
type PartitionType ¶
type PartitionType string
const ( PartitionGpt PartitionType = "gpt" PartitionDos PartitionType = "dos" )
type RamSlot ¶
type RamSlot struct { Index uint8 SlotName string Content *RamSlotContent }
type RamSlotContent ¶
type RamUpdate ¶
type RamUpdate struct { BasicUpdate Ram }
type StorageItem ¶
type StorageItem struct { Manufacturer string Product string DiskType DiskType LogicalName string Serial string SizeBytes uint64 PartitionType PartitionType Partitions []StoragePartition }
type StoragePartition ¶
type TransportProtocol ¶
type TransportProtocol string
const ( TransportTcp TransportProtocol = "tcp" TransportUdp TransportProtocol = "udp" )
Click to show internal directories.
Click to hide internal directories.