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 ¶
func (p *FakeEndpointProvider) Get(ctx context.Context, predictorType predictor.PredictorType) (*waov1beta1.EndpointTerm, error)
type FakePowerConsumptionPredictor ¶
type FakePowerConsumptionPredictor struct { EndpointValue string EndpointError error PredictValue float64 PredictError error PredictDelay time.Duration }
func (*FakePowerConsumptionPredictor) Endpoint ¶
func (p *FakePowerConsumptionPredictor) Endpoint() (string, error)
Click to show internal directories.
Click to hide internal directories.