fake

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execute

type Execute struct {
	ExecuteWithValueReactor func(definition *jamiethompsonmev1alpha1.HookDefinition, value string) (string, error)
	GetTypeReactor          func() string
}

Execute (fake) provides a way to insert functionality into a hook executer

func (*Execute) ExecuteWithValue

func (e *Execute) ExecuteWithValue(definition *jamiethompsonmev1alpha1.HookDefinition, value string) (string, error)

ExecuteWithValue calls the fake Executer function

func (*Execute) GetType

func (e *Execute) GetType() string

GetType calls the fake Executer function

type Predicter

type Predicter struct {
	GetPredictionReactor func(model *jamiethompsonmev1alpha1.Model, replicaHistory []jamiethompsonmev1alpha1.TimestampedReplicas) (int32, error)
	PruneHistoryReactor  func(model *jamiethompsonmev1alpha1.Model, replicaHistory []jamiethompsonmev1alpha1.TimestampedReplicas) ([]jamiethompsonmev1alpha1.TimestampedReplicas, error)
	GetTypeReactor       func() string
}

Predicter (fake) provides a way to insert functionality into a Predicter

func (*Predicter) GetPrediction

func (f *Predicter) GetPrediction(model *jamiethompsonmev1alpha1.Model, replicaHistory []jamiethompsonmev1alpha1.TimestampedReplicas) (int32, error)

GetPrediction calls the fake Predicter function

func (*Predicter) GetType

func (f *Predicter) GetType() string

GetType calls the fake Predicter function

func (*Predicter) PruneHistory added in v0.11.0

GetIDsToRemove calls the fake Predicter function

type Run

type Run struct {
	RunAlgorithmWithValueReactor func(algorithmPath string, value string, timeout int) (string, error)
}

Run (fake) provides a way to insert functionality into an algorithm Runner

func (*Run) RunAlgorithmWithValue

func (f *Run) RunAlgorithmWithValue(algorithmPath string, value string, timeout int) (string, error)

RunAlgorithmWithValue calls the fake Runner function

Jump to

Keyboard shortcuts

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