mocks

package
v0.0.0-...-ff909ee Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) AddNode

func (_m *Manager) AddNode(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 *enginetypes.Info) (types.Resources, error)

AddNode provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Manager) Alloc

func (_m *Manager) Alloc(_a0 context.Context, _a1 string, _a2 int, _a3 types.Resources) ([]types.Resources, []types.Resources, error)

Alloc provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Manager) GetMetricsDescription

func (_m *Manager) GetMetricsDescription(_a0 context.Context) ([]*pluginstypes.MetricsDescription, error)

GetMetricsDescription provides a mock function with given fields: _a0

func (*Manager) GetMostIdleNode

func (_m *Manager) GetMostIdleNode(_a0 context.Context, _a1 []string) (string, error)

GetMostIdleNode provides a mock function with given fields: _a0, _a1

func (*Manager) GetNodeMetrics

func (_m *Manager) GetNodeMetrics(_a0 context.Context, _a1 *coretypes.Node) ([]*pluginstypes.Metrics, error)

GetNodeMetrics provides a mock function with given fields: _a0, _a1

func (*Manager) GetNodeResourceInfo

func (_m *Manager) GetNodeResourceInfo(_a0 context.Context, _a1 string, _a2 []*coretypes.Workload, _a3 bool) (types.Resources, types.Resources, []string, error)

GetNodeResourceInfo provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Manager) GetNodesDeployCapacity

func (_m *Manager) GetNodesDeployCapacity(_a0 context.Context, _a1 []string, _a2 types.Resources) (map[string]*pluginstypes.NodeDeployCapacity, int, error)

GetNodesDeployCapacity provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) Realloc

Realloc provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Manager) Remap

func (_m *Manager) Remap(_a0 context.Context, _a1 string, _a2 []*coretypes.Workload) (map[string]types.Resources, error)

Remap provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) RemoveNode

func (_m *Manager) RemoveNode(_a0 context.Context, _a1 string) error

RemoveNode provides a mock function with given fields: _a0, _a1

func (*Manager) RollbackAlloc

func (_m *Manager) RollbackAlloc(_a0 context.Context, _a1 string, _a2 []types.Resources) error

RollbackAlloc provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) RollbackRealloc

func (_m *Manager) RollbackRealloc(_a0 context.Context, _a1 string, _a2 types.Resources) error

RollbackRealloc provides a mock function with given fields: _a0, _a1, _a2

func (*Manager) SetNodeResourceCapacity

func (_m *Manager) SetNodeResourceCapacity(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources, _a4 bool, _a5 bool) (types.Resources, types.Resources, error)

SetNodeResourceCapacity provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*Manager) SetNodeResourceUsage

func (_m *Manager) SetNodeResourceUsage(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources, _a4 []types.Resources, _a5 bool, _a6 bool) (types.Resources, types.Resources, error)

SetNodeResourceUsage provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6

Jump to

Keyboard shortcuts

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