fake

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 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 FakeEndpointProvider

type FakeEndpointProvider struct {
	EndpointValue string
	EndpointError error

	GetValue *waov1beta1.EndpointTerm
	GetError error
	GetDelay time.Duration
}

func NewEndpointProvider

func NewEndpointProvider(endpointValue string, endpointError error, getValue *waov1beta1.EndpointTerm, getError error, getDelay time.Duration) *FakeEndpointProvider

func (*FakeEndpointProvider) Endpoint

func (p *FakeEndpointProvider) Endpoint() (string, error)

func (*FakeEndpointProvider) Get

type FakePowerConsumptionPredictor

type FakePowerConsumptionPredictor struct {
	EndpointValue string
	EndpointError error

	PredictValue float64
	PredictError error
	PredictDelay time.Duration
}

func NewPowerConsumptionPredictor

func NewPowerConsumptionPredictor(endpointValue string, endpointError error, predictValue float64, predictError error, predictDelay time.Duration) *FakePowerConsumptionPredictor

func (*FakePowerConsumptionPredictor) Endpoint

func (p *FakePowerConsumptionPredictor) Endpoint() (string, error)

func (*FakePowerConsumptionPredictor) Predict

func (p *FakePowerConsumptionPredictor) Predict(ctx context.Context, cpuUsage, inletTemp, deltaP float64) (watt float64, err error)

Jump to

Keyboard shortcuts

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