sources

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyDeviceStartup

func DummyDeviceStartup() device.Device

Types

type Dummy

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

func (*Dummy) AbsEnergyFromDevice

func (d *Dummy) AbsEnergyFromDevice() []uint32

func (*Dummy) DevType

func (d *Dummy) DevType() device.DeviceType

func (*Dummy) DeviceInstances

func (d *Dummy) DeviceInstances() map[int]map[int]any

func (*Dummy) DeviceUtilizationStats

func (d *Dummy) DeviceUtilizationStats(dev any) (map[any]interface{}, error)

func (*Dummy) DevicesByID

func (d *Dummy) DevicesByID() map[int]any

func (*Dummy) DevicesByName

func (d *Dummy) DevicesByName() map[string]any

func (*Dummy) HwType

func (d *Dummy) HwType() string

func (*Dummy) Init

func (d *Dummy) Init() error

func (*Dummy) InitLib

func (d *Dummy) InitLib() error

func (*Dummy) IsDeviceCollectionSupported

func (d *Dummy) IsDeviceCollectionSupported() bool

func (*Dummy) Name

func (d *Dummy) Name() string

func (*Dummy) ProcessResourceUtilizationPerDevice

func (d *Dummy) ProcessResourceUtilizationPerDevice(dev any, _ time.Duration) (map[uint32]any, error)

func (*Dummy) SetDeviceCollectionSupported

func (d *Dummy) SetDeviceCollectionSupported(supported bool)

func (*Dummy) Shutdown

func (d *Dummy) Shutdown() bool

Jump to

Keyboard shortcuts

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