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(method *config.Method, value string) (string, error) GetTypeReactor func() string }
Execute (fake) allows inserting logic into an executer for testing
func (*Execute) ExecuteWithValue ¶
ExecuteWithValue calls the fake Execute reactor method provided
type ResourceClient ¶ added in v0.9.0
type ResourceClient struct {
GetReactor func(apiVersion string, kind string, name string, namespace string) (metav1.Object, error)
}
ResourceClient (fake) allows inserting logic into a resource client for testing
type Scaler ¶ added in v0.10.0
type Scaler struct {
ScaleReactor func(evaluation evaluate.Evaluation, resource metav1.Object, minReplicas int32, maxReplicas int32, scaleTargetRef *autoscaling.CrossVersionObjectReference, namespace string) (*evaluate.Evaluation, error)
}
Scaler (fake) allows inserting logic into a scaler for testing
func (*Scaler) Scale ¶ added in v0.10.0
func (s *Scaler) Scale(evaluation evaluate.Evaluation, resource metav1.Object, minReplicas int32, maxReplicas int32, scaleTargetRef *autoscaling.CrossVersionObjectReference, namespace string) (*evaluate.Evaluation, error)
Scale calls the fake Scaler reactor method provided
Click to show internal directories.
Click to hide internal directories.