device

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStatus

type DiskStatus struct {
	All  uint64 `json:"all"`
	Used uint64 `json:"used"`
	Free uint64 `json:"free"`
}

type HostInfo

type HostInfo interface {
	GetHostname() (string, error)
	GetDiskStatus(path string) (result DiskStatus, err error)
	GetMacAddress() (macAddrs map[string]string, err error)
}

type Worker

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

func New

func New() (worker *Worker)

func (*Worker) GetDiskStatus

func (w *Worker) GetDiskStatus(path string) (result DiskStatus, err error)

Getdiskstatus ...

func (*Worker) GetHostname

func (w *Worker) GetHostname() (string, error)

func (*Worker) GetMacAddress

func (w *Worker) GetMacAddress() (macAddrs map[string]string, err error)

GetMacAddress ...

Jump to

Keyboard shortcuts

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