Documentation
¶
Index ¶
- func BootID() (string, error)
- func Bridges(ctx context.Context) ([]*net.IPNet, error)
- func GetPublicIPv4() string
- func GetPublicIPv6() string
- func GetTotalMemory() (total int64)
- func GetUptime() int64
- func HostInfo() (hostInfo *apis.HostInfo, err error)
- func Hostname() (hostname string)
- func KernelRelease() (architecture, release string, err error)
- func MachineID() (string, error)
- func Platform() (platform, version string, err error)
- func ProductUUID() (string, error)
- func TestConnection(address ...string) bool
- func UUID() (string, error)
- type MountInfo
- type Network
- func (network *Network) IPv4() string
- func (network *Network) IPv4s() []string
- func (network *Network) IPv6() string
- func (network *Network) IPv6s() []string
- func (network *Network) IsActive() bool
- func (network *Network) Mac() string
- func (network *Network) Name() string
- func (network *Network) String() string
- type Networks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootID ¶
BootID return machine boot id from '/proc/sys/kernel/random/boot_id', and which is different for each reboot
func GetPublicIPv4 ¶
func GetPublicIPv4() string
func GetPublicIPv6 ¶
func GetPublicIPv6() string
func GetTotalMemory ¶
func GetTotalMemory() (total int64)
func Hostname ¶
func Hostname() (hostname string)
Hostname return host's name of chameleon service running on
func KernelRelease ¶
func ProductUUID ¶
ProductUUID returns ACES product uuid, which shares common cache file '/etc/.aces_uuid' or file provided by ENV 'CHAMELEON_HOST_PROCFS', and product uuid will be changed if the specified file updated
func TestConnection ¶
Types ¶
type MountInfo ¶
Click to show internal directories.
Click to hide internal directories.