manager_host

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCpuCores

func GetCpuCores() (string, error)

func GetIP

func GetIP() (ip string, e error)

func GetMac

func GetMac() (string, error)

func GetMemSize

func GetMemSize() (string, error)

func GetName

func GetName() (string, error)

Types

type HostManager

type HostManager struct {
	// contains filtered or unexported fields
}

func NewHostManager

func NewHostManager(ctx context.Context, ct *controller.Manager, cl *collector.Manager, guid string) (*HostManager, error)

func (*HostManager) GetHost

func (r *HostManager) GetHost() *host.Host

func (*HostManager) GetHostGuid

func (r *HostManager) GetHostGuid() string

func (*HostManager) GetMetricsChan

func (r *HostManager) GetMetricsChan(interval int64) (<-chan string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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