client_informations

package
v0.0.0-...-401644b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Informations

type Informations struct {
	SystemInformations  *SystemInformations  `json:"system_informations"`
	NetworkInformations *NetworkInformations `json:"network_informations"`
	OtherInformations   *OtherInformations   `json:"other_informations"`
}

func GetInformations

func GetInformations() (*Informations, error)

type InterfaceInformations

type InterfaceInformations struct {
	Name     string    `json:"name"`
	Ipv4     string    `json:"ipv4"`
	Ipv4Mask int       `json:"ipv4_mask"`
	MAC      string    `json:"mac"`
	Gateways []string  `json:"gateways"`
	Flags    net.Flags `json:"flags"`
}

type NetworkInformations

type NetworkInformations struct {
	Interfaces []InterfaceInformations `json:"interfaces"`
}

func GetNetworkInformations

func GetNetworkInformations() (*NetworkInformations, error)

type OperatingSystemInformations

type OperatingSystemInformations struct {
	OS              string `json:"os"`
	Platform        string `json:"platform"`
	PlatformFamily  string `json:"platform_family"`
	PlatformVersion string `json:"platform_version"`
	KernelVersion   string `json:"kernel_version"`
}

type OtherInformations

type OtherInformations struct {
	Location  string `json:"location"`
	Perimeter string `json:"perimeter"`
}

type SystemInformations

type SystemInformations struct {
	OperatingSystem            *OperatingSystemInformations `json:"operating_system"`
	VirtualizationInformations *VirtualizationInformations  `json:"virtualization"`
	Hostname                   string                       `json:"hostname"`
	SerialNumber               string                       `json:"serial_number"`
	UUID                       string                       `json:"uuid"`
	OmnisVersion               string                       `json:"omnis_version"`
}

func GetSystemInformations

func GetSystemInformations() (*SystemInformations, error)

type VirtualizationInformations

type VirtualizationInformations struct {
	IsVirtualized        bool   `json:"is_virtualized"`
	VirtualizationSystem string `json:"virtualization_system"`
}

Jump to

Keyboard shortcuts

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