Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) AddNode(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 *enginetypes.Info) (types.Resources, error)
- func (_m *Manager) Alloc(_a0 context.Context, _a1 string, _a2 int, _a3 types.Resources) ([]types.Resources, []types.Resources, error)
- func (_m *Manager) GetMetricsDescription(_a0 context.Context) ([]*pluginstypes.MetricsDescription, error)
- func (_m *Manager) GetMostIdleNode(_a0 context.Context, _a1 []string) (string, error)
- func (_m *Manager) GetNodeMetrics(_a0 context.Context, _a1 *coretypes.Node) ([]*pluginstypes.Metrics, error)
- func (_m *Manager) GetNodeResourceInfo(_a0 context.Context, _a1 string, _a2 []*coretypes.Workload, _a3 bool) (types.Resources, types.Resources, []string, error)
- func (_m *Manager) GetNodesDeployCapacity(_a0 context.Context, _a1 []string, _a2 types.Resources) (map[string]*pluginstypes.NodeDeployCapacity, int, error)
- func (_m *Manager) Realloc(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources) (types.Resources, types.Resources, types.Resources, error)
- func (_m *Manager) Remap(_a0 context.Context, _a1 string, _a2 []*coretypes.Workload) (map[string]types.Resources, error)
- func (_m *Manager) RemoveNode(_a0 context.Context, _a1 string) error
- func (_m *Manager) RollbackAlloc(_a0 context.Context, _a1 string, _a2 []types.Resources) error
- func (_m *Manager) RollbackRealloc(_a0 context.Context, _a1 string, _a2 types.Resources) error
- func (_m *Manager) SetNodeResourceCapacity(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources, ...) (types.Resources, types.Resources, error)
- func (_m *Manager) SetNodeResourceUsage(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources, ...) (types.Resources, types.Resources, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
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 ¶
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 ¶
func (_m *Manager) Realloc(_a0 context.Context, _a1 string, _a2 types.Resources, _a3 types.Resources) (types.Resources, types.Resources, types.Resources, error)
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 ¶
RemoveNode provides a mock function with given fields: _a0, _a1
func (*Manager) RollbackAlloc ¶
RollbackAlloc provides a mock function with given fields: _a0, _a1, _a2
func (*Manager) RollbackRealloc ¶
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