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 ¶
- func DummyDeviceStartup() device.Device
- type Dummy
- func (d *Dummy) AbsEnergyFromDevice() []uint32
- func (d *Dummy) DevType() device.DeviceType
- func (d *Dummy) DeviceInstances() map[int]map[int]any
- func (d *Dummy) DeviceUtilizationStats(dev any) (map[any]interface{}, error)
- func (d *Dummy) DevicesByID() map[int]any
- func (d *Dummy) DevicesByName() map[string]any
- func (d *Dummy) HwType() string
- func (d *Dummy) Init() error
- func (d *Dummy) InitLib() error
- func (d *Dummy) IsDeviceCollectionSupported() bool
- func (d *Dummy) Name() string
- func (d *Dummy) ProcessResourceUtilizationPerDevice(dev any, _ time.Duration) (map[uint32]any, error)
- func (d *Dummy) SetDeviceCollectionSupported(supported bool)
- func (d *Dummy) Shutdown() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyDeviceStartup ¶
Types ¶
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
func (*Dummy) AbsEnergyFromDevice ¶
func (*Dummy) DevType ¶
func (d *Dummy) DevType() device.DeviceType
func (*Dummy) DeviceUtilizationStats ¶
func (*Dummy) DevicesByID ¶
func (*Dummy) DevicesByName ¶
func (*Dummy) IsDeviceCollectionSupported ¶
func (*Dummy) ProcessResourceUtilizationPerDevice ¶
func (*Dummy) SetDeviceCollectionSupported ¶
Click to show internal directories.
Click to hide internal directories.