mocks

package
v0.0.0-...-08e4fbc Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func NewPlugin

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Plugin) AddNode

func (_m *Plugin) AddNode(ctx context.Context, nodename string, resource types.RawParams, info *enginetypes.Info) (*pluginstypes.AddNodeResponse, error)

AddNode provides a mock function with given fields: ctx, nodename, resource, info

func (*Plugin) CalculateDeploy

func (_m *Plugin) CalculateDeploy(ctx context.Context, nodename string, deployCount int, resourceRequest types.RawParams) (*pluginstypes.CalculateDeployResponse, error)

CalculateDeploy provides a mock function with given fields: ctx, nodename, deployCount, resourceRequest

func (*Plugin) CalculateRealloc

func (_m *Plugin) CalculateRealloc(ctx context.Context, nodename string, resource types.RawParams, resourceRequest types.RawParams) (*pluginstypes.CalculateReallocResponse, error)

CalculateRealloc provides a mock function with given fields: ctx, nodename, resource, resourceRequest

func (*Plugin) CalculateRemap

func (_m *Plugin) CalculateRemap(ctx context.Context, nodename string, workloadsResource map[string]types.RawParams) (*pluginstypes.CalculateRemapResponse, error)

CalculateRemap provides a mock function with given fields: ctx, nodename, workloadsResource

func (*Plugin) FixNodeResource

func (_m *Plugin) FixNodeResource(ctx context.Context, nodename string, workloadsResource []types.RawParams) (*pluginstypes.GetNodeResourceInfoResponse, error)

FixNodeResource provides a mock function with given fields: ctx, nodename, workloadsResource

func (*Plugin) GetMetrics

func (_m *Plugin) GetMetrics(ctx context.Context, podname string, nodename string) (*pluginstypes.GetMetricsResponse, error)

GetMetrics provides a mock function with given fields: ctx, podname, nodename

func (*Plugin) GetMetricsDescription

func (_m *Plugin) GetMetricsDescription(ctx context.Context) (*pluginstypes.GetMetricsDescriptionResponse, error)

GetMetricsDescription provides a mock function with given fields: ctx

func (*Plugin) GetMostIdleNode

func (_m *Plugin) GetMostIdleNode(ctx context.Context, nodenames []string) (*pluginstypes.GetMostIdleNodeResponse, error)

GetMostIdleNode provides a mock function with given fields: ctx, nodenames

func (*Plugin) GetNodeResourceInfo

func (_m *Plugin) GetNodeResourceInfo(ctx context.Context, nodename string, workloadsResource []types.RawParams) (*pluginstypes.GetNodeResourceInfoResponse, error)

GetNodeResourceInfo provides a mock function with given fields: ctx, nodename, workloadsResource

func (*Plugin) GetNodesDeployCapacity

func (_m *Plugin) GetNodesDeployCapacity(ctx context.Context, nodenames []string, resource types.RawParams) (*pluginstypes.GetNodesDeployCapacityResponse, error)

GetNodesDeployCapacity provides a mock function with given fields: ctx, nodenames, resource

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) RemoveNode

func (_m *Plugin) RemoveNode(ctx context.Context, nodename string) (*pluginstypes.RemoveNodeResponse, error)

RemoveNode provides a mock function with given fields: ctx, nodename

func (*Plugin) SetNodeResourceCapacity

func (_m *Plugin) SetNodeResourceCapacity(ctx context.Context, nodename string, resource types.RawParams, resourceRequest types.RawParams, delta bool, incr bool) (*pluginstypes.SetNodeResourceCapacityResponse, error)

SetNodeResourceCapacity provides a mock function with given fields: ctx, nodename, resource, resourceRequest, delta, incr

func (*Plugin) SetNodeResourceInfo

func (_m *Plugin) SetNodeResourceInfo(ctx context.Context, nodename string, capacity types.RawParams, usage types.RawParams) (*pluginstypes.SetNodeResourceInfoResponse, error)

SetNodeResourceInfo provides a mock function with given fields: ctx, nodename, capacity, usage

func (*Plugin) SetNodeResourceUsage

func (_m *Plugin) SetNodeResourceUsage(ctx context.Context, nodename string, resource types.RawParams, resourceRequest types.RawParams, workloadsResource []types.RawParams, delta bool, incr bool) (*pluginstypes.SetNodeResourceUsageResponse, error)

SetNodeResourceUsage provides a mock function with given fields: ctx, nodename, resource, resourceRequest, workloadsResource, delta, incr

Jump to

Keyboard shortcuts

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