info_hdl

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCIDR added in v1.2.0

func ValidateCIDR(v string) error

func ValidateNetItfName added in v1.2.0

func ValidateNetItfName(v string) error

Types

type Handler

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

func New

func New(netInterfaceBlacklist, netRangeBlacklist []string, netInterfaceBlacklistHdl, netRangeBlacklistHdl handler.BlacklistHandler) (*Handler, error)

func (*Handler) GetCPU

func (h *Handler) GetCPU(ctx context.Context) error

func (*Handler) GetNet

func (h *Handler) GetNet(ctx context.Context) (model.HostNet, error)

func (*Handler) GetOS

func (h *Handler) GetOS(ctx context.Context) error

func (*Handler) GetRAM

func (h *Handler) GetRAM(ctx context.Context) error

Jump to

Keyboard shortcuts

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