Documentation
¶
Index ¶
- Constants
- type Device
- func (device *Device) GetBandwidthDown() int64
- func (device *Device) GetBandwidthUp() int64
- func (device *Device) GetDeviceRunningStat(ctx context.Context) (*types.DeviceRunningStat, error)
- func (device *Device) GetInternalIP() string
- func (device *Device) GetNodeID(ctx context.Context) (string, error)
- func (device *Device) GetNodeInfo(ctx context.Context) (types.NodeInfo, error)
- type Resources
- type Storage
Constants ¶
View Source
const ( // 1MiB/s BandwidthUnit = 1024 * 1024 // 1GB StorageUnit = 1024 * 1024 * 1024 // 1GB NetFlowUnit = 1024 * 1024 * 1024 // NicSampleInterval is the interval to sample network interface card and process bandwidth usage. NicSampleInterval = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device represents a device and its properties
func (*Device) GetBandwidthDown ¶
GetBandwidthDown returns the bandwidth download limit for the device.
func (*Device) GetBandwidthUp ¶
GetBandwidthUp returns the bandwidth upload limit for the device.
func (*Device) GetDeviceRunningStat ¶ added in v0.1.22
func (*Device) GetInternalIP ¶
GetInternalIP returns the internal IP address for the device.
Click to show internal directories.
Click to hide internal directories.