Documentation ¶
Index ¶
- func PrettyPrintJson(value any) error
- type ApplicationCollector
- type Collector
- type DeviceCollector
- type DiskCollector
- type IPInfo
- type LsblkDevice
- type LsblkDevices
- type LsblkPartition
- type LshwGenericMemory
- type LshwNetwork
- type LshwRamSlot
- type NetworkCollector
- func (c *NetworkCollector) Collect(uuid string) (interface{}, error)
- func (c *NetworkCollector) GetEndpoint() string
- func (c *NetworkCollector) GetIPData() ([]IPInfo, error)
- func (c *NetworkCollector) GetLshwData() ([]LshwNetwork, error)
- func (c *NetworkCollector) GetName() string
- func (c *NetworkCollector) GetNmcli() error
- type OpenPort
- type Project
- type RamCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintJson ¶
Types ¶
type ApplicationCollector ¶
type ApplicationCollector struct { }
func (*ApplicationCollector) Collect ¶
func (c *ApplicationCollector) Collect(uuid string) (interface{}, error)
func (*ApplicationCollector) GetEndpoint ¶
func (c *ApplicationCollector) GetEndpoint() string
func (*ApplicationCollector) GetName ¶
func (c *ApplicationCollector) GetName() string
type DeviceCollector ¶
type DeviceCollector struct { }
func (*DeviceCollector) Collect ¶
func (c *DeviceCollector) Collect(uuid string) (interface{}, error)
func (*DeviceCollector) GetEndpoint ¶
func (c *DeviceCollector) GetEndpoint() string
func (*DeviceCollector) GetName ¶
func (c *DeviceCollector) GetName() string
type DiskCollector ¶
type DiskCollector struct { }
func (*DiskCollector) Collect ¶
func (c *DiskCollector) Collect(uuid string) (interface{}, error)
func (*DiskCollector) GetEndpoint ¶
func (c *DiskCollector) GetEndpoint() string
func (*DiskCollector) GetName ¶
func (c *DiskCollector) GetName() string
type IPInfo ¶
type IPInfo struct { Ifindex int `json:"ifindex"` Ifname string `json:"ifname"` Flags []string `json:"flags"` Mtu int `json:"mtu"` Qdisc string `json:"qdisc"` Operstate string `json:"operstate"` Group string `json:"group"` Txqlen int `json:"txqlen,omitempty"` LinkType string `json:"link_type"` Address string `json:"address,omitempty"` Broadcast string `json:"broadcast,omitempty"` AddrInfo []struct { Family string `json:"family"` Local string `json:"local"` Prefixlen int `json:"prefixlen"` Scope string `json:"scope"` Label string `json:"label,omitempty"` ValidLifeTime int64 `json:"valid_life_time"` PreferredLifeTime int64 `json:"preferred_life_time"` } `json:"addr_info"` LinkIndex int `json:"link_index,omitempty"` Master string `json:"master,omitempty"` LinkNetnsid int `json:"link_netnsid,omitempty"` }
type LsblkDevice ¶
type LsblkDevice struct { Name string `json:"name"` Kname string `json:"kname"` Path string `json:"path"` MajMin string `json:"maj:min"` Ptuuid string `json:"ptuuid"` Pttype string `json:"pttype"` Ra int `json:"ra"` Ro bool `json:"ro"` Rm bool `json:"rm"` Hotplug bool `json:"hotplug"` Model string `json:"model"` Serial string `json:"serial"` Size uint64 `json:"size"` State string `json:"state"` Owner string `json:"owner"` Group string `json:"group"` Mode string `json:"mode"` Alignment int `json:"alignment"` MinIo int `json:"min-io"` OptIo int `json:"opt-io"` PhySec int `json:"phy-sec"` LogSec int `json:"log-sec"` Rota bool `json:"rota"` Sched string `json:"sched"` RqSize int `json:"rq-size"` Type string `json:"type"` DiscAln int `json:"disc-aln"` DiscGran int `json:"disc-gran"` DiscMax int `json:"disc-max"` DiscZero bool `json:"disc-zero"` Wsame int `json:"wsame"` Wwn string `json:"wwn"` Rand bool `json:"rand"` Hctl string `json:"hctl"` Tran string `json:"tran"` Subsystems string `json:"subsystems"` Rev string `json:"rev"` Vendor string `json:"vendor"` Zoned string `json:"zoned"` Dax bool `json:"dax"` Children []LsblkPartition `json:"children"` }
type LsblkDevices ¶
type LsblkDevices struct {
Blockdevices []LsblkDevice `json:"blockdevices"`
}
type LsblkPartition ¶
type LsblkPartition struct { Name string `json:"name"` Kname string `json:"kname"` Path string `json:"path"` MajMin string `json:"maj:min"` Fsavail *string `json:"fsavail"` Fssize *string `json:"fssize"` Fstype string `json:"fstype"` Fsused *string `json:"fsused"` Fsuse *string `json:"fsuse%"` Fsroots []string `json:"fsroots"` Fsver string `json:"fsver"` Mountpoint *string `json:"mountpoint"` Mountpoints []*string `json:"mountpoints"` Label *string `json:"label"` UUID string `json:"uuid"` Ptuuid string `json:"ptuuid"` Pttype string `json:"pttype"` Parttype string `json:"parttype"` Parttypename string `json:"parttypename"` Partlabel *string `json:"partlabel"` Partuuid string `json:"partuuid"` Partflags string `json:"partflags"` Ra int `json:"ra"` Ro bool `json:"ro"` Rm bool `json:"rm"` Hotplug bool `json:"hotplug"` Size uint64 `json:"size"` State *string `json:"state"` Owner string `json:"owner"` Group string `json:"group"` Mode string `json:"mode"` Alignment int `json:"alignment"` MinIo int `json:"min-io"` OptIo int `json:"opt-io"` PhySec int `json:"phy-sec"` LogSec int `json:"log-sec"` Rota bool `json:"rota"` Sched string `json:"sched"` RqSize int `json:"rq-size"` Type string `json:"type"` DiscAln int `json:"disc-aln"` DiscGran int `json:"disc-gran"` DiscMax int `json:"disc-max"` DiscZero bool `json:"disc-zero"` Wsame int `json:"wsame"` Wwn string `json:"wwn"` Rand bool `json:"rand"` Pkname string `json:"pkname"` Subsystems string `json:"subsystems"` Zoned string `json:"zoned"` Dax bool `json:"dax"` }
type LshwGenericMemory ¶
type LshwNetwork ¶
type LshwNetwork struct { Handle string `json:"handle,omitempty"` Product string `json:"product,omitempty"` Vendor string `json:"vendor,omitempty"` Businfo string `json:"businfo"` Version string `json:"version,omitempty"` Width int `json:"width,omitempty"` Clock int `json:"clock,omitempty"` Configuration struct { Latency string `json:"latency"` Wireless string `json:"wireless"` Firmware string `json:"firmware"` IP string `json:"ip"` Autonegotiation string `json:"autonegotiation"` Broadcast string `json:"broadcast"` Driver string `json:"driver"` Driverversion string `json:"driverversion"` Duplex string `json:"duplex"` Link string `json:"link"` Multicast string `json:"multicast"` Port string `json:"port"` Speed string `json:"speed"` } `json:"configuration,omitempty"` Capabilities struct { One000Bt string `json:"1000bt"` One000BtFd string `json:"1000bt-fd"` One00Bt string `json:"100bt"` One00BtFd string `json:"100bt-fd"` One0Bt string `json:"10bt"` One0BtFd string `json:"10bt-fd"` Autonegotiation string `json:"autonegotiation"` Ethernet bool `json:"ethernet"` Mii string `json:"mii"` Physical string `json:"physical"` Tp string `json:"tp"` Pm string `json:"pm"` Msi string `json:"msi"` Pciexpress string `json:"pciexpress"` Msix string `json:"msix"` BusMaster string `json:"bus_master"` CapList string `json:"cap_list"` Wireless string `json:"wireless"` } `json:"capabilities,omitempty"` Disabled bool `json:"disabled,omitempty"` Capacity int `json:"capacity,omitempty"` Claimed bool `json:"claimed"` Class string `json:"class"` Description string `json:"description"` ID string `json:"id"` Logicalname string `json:"logicalname"` Physid string `json:"physid"` Serial string `json:"serial"` Size int `json:"size,omitempty"` Units string `json:"units,omitempty"` }
type LshwRamSlot ¶
type LshwRamSlot struct { ID string `json:"id"` Class string `json:"class"` Claimed bool `json:"claimed"` Handle string `json:"handle"` Description string `json:"description"` Product string `json:"product"` Vendor string `json:"vendor"` Physid string `json:"physid"` Serial string `json:"serial"` Slot string `json:"slot"` Units string `json:"units"` Size int64 `json:"size"` Width int `json:"width"` Clock int `json:"clock"` }
type NetworkCollector ¶
type NetworkCollector struct { }
func (*NetworkCollector) Collect ¶
func (c *NetworkCollector) Collect(uuid string) (interface{}, error)
func (*NetworkCollector) GetEndpoint ¶
func (c *NetworkCollector) GetEndpoint() string
func (*NetworkCollector) GetIPData ¶
func (c *NetworkCollector) GetIPData() ([]IPInfo, error)
func (*NetworkCollector) GetLshwData ¶
func (c *NetworkCollector) GetLshwData() ([]LshwNetwork, error)
func (*NetworkCollector) GetName ¶
func (c *NetworkCollector) GetName() string
func (*NetworkCollector) GetNmcli ¶
func (c *NetworkCollector) GetNmcli() error
type OpenPort ¶
type OpenPort struct { Transport models.TransportProtocol Interface string Port int Pid int }
type RamCollector ¶
type RamCollector struct { }
func (*RamCollector) Collect ¶
func (c *RamCollector) Collect(uuid string) (interface{}, error)
func (*RamCollector) GetEndpoint ¶
func (c *RamCollector) GetEndpoint() string
func (*RamCollector) GetLshwData ¶
func (c *RamCollector) GetLshwData() (uint64, []models.RamSlot, error)
func (*RamCollector) GetName ¶
func (c *RamCollector) GetName() string
Click to show internal directories.
Click to hide internal directories.