Documentation
¶
Index ¶
- type Manager
- func (_mock *Manager) AddNode(context1 context.Context, s string, resources types.Resources, ...) (types.Resources, error)
- func (_mock *Manager) Alloc(context1 context.Context, s string, n int, resources types.Resources) ([]types.Resources, []types.Resources, error)
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_mock *Manager) GetMetricsDescription(context1 context.Context) ([]*types1.MetricsDescription, error)
- func (_mock *Manager) GetMostIdleNode(context1 context.Context, strings []string) (string, error)
- func (_mock *Manager) GetNodeResourceInfo(context1 context.Context, s string, workloads []*types2.Workload, b bool) (types.Resources, types.Resources, []string, error)
- func (_mock *Manager) GetNodesDeployCapacity(context1 context.Context, strings []string, resources types.Resources) (map[string]*types1.NodeDeployCapacity, int, error)
- func (_mock *Manager) GetNodesMetrics(context1 context.Context, nodes []*types2.Node) ([]*types1.Metrics, error)
- func (_mock *Manager) GetNodesResourceInfo(context1 context.Context, strings []string) (map[string]*types2.NodeResourceInfo, error)
- func (_mock *Manager) Realloc(context1 context.Context, s string, resources types.Resources, ...) (types.Resources, types.Resources, types.Resources, error)
- func (_mock *Manager) Remap(context1 context.Context, s string, workloads []*types2.Workload) (map[string]types.Resources, error)
- func (_mock *Manager) RemoveNode(context1 context.Context, s string) error
- func (_mock *Manager) RollbackAlloc(context1 context.Context, s string, resourcess []types.Resources) error
- func (_mock *Manager) RollbackRealloc(context1 context.Context, s string, resources types.Resources) error
- func (_mock *Manager) SetNodeResourceCapacity(context1 context.Context, s string, resources types.Resources, ...) (types.Resources, types.Resources, error)
- func (_mock *Manager) SetNodeResourceUsage(context1 context.Context, s string, resources types.Resources, ...) (types.Resources, types.Resources, error)
- type Manager_AddNode_Call
- func (_c *Manager_AddNode_Call) Return(resources1 types.Resources, err error) *Manager_AddNode_Call
- func (_c *Manager_AddNode_Call) Run(run func(context1 context.Context, s string, resources types.Resources, ...)) *Manager_AddNode_Call
- func (_c *Manager_AddNode_Call) RunAndReturn(...) *Manager_AddNode_Call
- type Manager_Alloc_Call
- func (_c *Manager_Alloc_Call) Return(resourcess []types.Resources, resourcess1 []types.Resources, err error) *Manager_Alloc_Call
- func (_c *Manager_Alloc_Call) Run(run func(context1 context.Context, s string, n int, resources types.Resources)) *Manager_Alloc_Call
- func (_c *Manager_Alloc_Call) RunAndReturn(...) *Manager_Alloc_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) AddNode(context1 any, s any, resources any, info any) *Manager_AddNode_Call
- func (_e *Manager_Expecter) Alloc(context1 any, s any, n any, resources any) *Manager_Alloc_Call
- func (_e *Manager_Expecter) GetMetricsDescription(context1 any) *Manager_GetMetricsDescription_Call
- func (_e *Manager_Expecter) GetMostIdleNode(context1 any, strings any) *Manager_GetMostIdleNode_Call
- func (_e *Manager_Expecter) GetNodeResourceInfo(context1 any, s any, workloads any, b any) *Manager_GetNodeResourceInfo_Call
- func (_e *Manager_Expecter) GetNodesDeployCapacity(context1 any, strings any, resources any) *Manager_GetNodesDeployCapacity_Call
- func (_e *Manager_Expecter) GetNodesMetrics(context1 any, nodes any) *Manager_GetNodesMetrics_Call
- func (_e *Manager_Expecter) GetNodesResourceInfo(context1 any, strings any) *Manager_GetNodesResourceInfo_Call
- func (_e *Manager_Expecter) Realloc(context1 any, s any, resources any, resources1 any) *Manager_Realloc_Call
- func (_e *Manager_Expecter) Remap(context1 any, s any, workloads any) *Manager_Remap_Call
- func (_e *Manager_Expecter) RemoveNode(context1 any, s any) *Manager_RemoveNode_Call
- func (_e *Manager_Expecter) RollbackAlloc(context1 any, s any, resourcess any) *Manager_RollbackAlloc_Call
- func (_e *Manager_Expecter) RollbackRealloc(context1 any, s any, resources any) *Manager_RollbackRealloc_Call
- func (_e *Manager_Expecter) SetNodeResourceCapacity(context1 any, s any, resources any, resources1 any, b any, b1 any) *Manager_SetNodeResourceCapacity_Call
- func (_e *Manager_Expecter) SetNodeResourceUsage(context1 any, s any, resources any, resources1 any, resourcess any, b any, ...) *Manager_SetNodeResourceUsage_Call
- type Manager_GetMetricsDescription_Call
- func (_c *Manager_GetMetricsDescription_Call) Return(metricsDescriptions []*types1.MetricsDescription, err error) *Manager_GetMetricsDescription_Call
- func (_c *Manager_GetMetricsDescription_Call) Run(run func(context1 context.Context)) *Manager_GetMetricsDescription_Call
- func (_c *Manager_GetMetricsDescription_Call) RunAndReturn(run func(context1 context.Context) ([]*types1.MetricsDescription, error)) *Manager_GetMetricsDescription_Call
- type Manager_GetMostIdleNode_Call
- func (_c *Manager_GetMostIdleNode_Call) Return(s string, err error) *Manager_GetMostIdleNode_Call
- func (_c *Manager_GetMostIdleNode_Call) Run(run func(context1 context.Context, strings []string)) *Manager_GetMostIdleNode_Call
- func (_c *Manager_GetMostIdleNode_Call) RunAndReturn(run func(context1 context.Context, strings []string) (string, error)) *Manager_GetMostIdleNode_Call
- type Manager_GetNodeResourceInfo_Call
- func (_c *Manager_GetNodeResourceInfo_Call) Return(resources types.Resources, resources1 types.Resources, strings []string, ...) *Manager_GetNodeResourceInfo_Call
- func (_c *Manager_GetNodeResourceInfo_Call) Run(...) *Manager_GetNodeResourceInfo_Call
- func (_c *Manager_GetNodeResourceInfo_Call) RunAndReturn(...) *Manager_GetNodeResourceInfo_Call
- type Manager_GetNodesDeployCapacity_Call
- func (_c *Manager_GetNodesDeployCapacity_Call) Return(stringToNodeDeployCapacity map[string]*types1.NodeDeployCapacity, n int, ...) *Manager_GetNodesDeployCapacity_Call
- func (_c *Manager_GetNodesDeployCapacity_Call) Run(...) *Manager_GetNodesDeployCapacity_Call
- func (_c *Manager_GetNodesDeployCapacity_Call) RunAndReturn(...) *Manager_GetNodesDeployCapacity_Call
- type Manager_GetNodesMetrics_Call
- func (_c *Manager_GetNodesMetrics_Call) Return(metricss []*types1.Metrics, err error) *Manager_GetNodesMetrics_Call
- func (_c *Manager_GetNodesMetrics_Call) Run(run func(context1 context.Context, nodes []*types2.Node)) *Manager_GetNodesMetrics_Call
- func (_c *Manager_GetNodesMetrics_Call) RunAndReturn(...) *Manager_GetNodesMetrics_Call
- type Manager_GetNodesResourceInfo_Call
- func (_c *Manager_GetNodesResourceInfo_Call) Return(stringToNodeResourceInfo map[string]*types2.NodeResourceInfo, err error) *Manager_GetNodesResourceInfo_Call
- func (_c *Manager_GetNodesResourceInfo_Call) Run(run func(context1 context.Context, strings []string)) *Manager_GetNodesResourceInfo_Call
- func (_c *Manager_GetNodesResourceInfo_Call) RunAndReturn(...) *Manager_GetNodesResourceInfo_Call
- type Manager_Realloc_Call
- func (_c *Manager_Realloc_Call) Return(resources2 types.Resources, resources3 types.Resources, ...) *Manager_Realloc_Call
- func (_c *Manager_Realloc_Call) Run(run func(context1 context.Context, s string, resources types.Resources, ...)) *Manager_Realloc_Call
- func (_c *Manager_Realloc_Call) RunAndReturn(...) *Manager_Realloc_Call
- type Manager_Remap_Call
- func (_c *Manager_Remap_Call) Return(stringToResources map[string]types.Resources, err error) *Manager_Remap_Call
- func (_c *Manager_Remap_Call) Run(run func(context1 context.Context, s string, workloads []*types2.Workload)) *Manager_Remap_Call
- func (_c *Manager_Remap_Call) RunAndReturn(...) *Manager_Remap_Call
- type Manager_RemoveNode_Call
- func (_c *Manager_RemoveNode_Call) Return(err error) *Manager_RemoveNode_Call
- func (_c *Manager_RemoveNode_Call) Run(run func(context1 context.Context, s string)) *Manager_RemoveNode_Call
- func (_c *Manager_RemoveNode_Call) RunAndReturn(run func(context1 context.Context, s string) error) *Manager_RemoveNode_Call
- type Manager_RollbackAlloc_Call
- func (_c *Manager_RollbackAlloc_Call) Return(err error) *Manager_RollbackAlloc_Call
- func (_c *Manager_RollbackAlloc_Call) Run(run func(context1 context.Context, s string, resourcess []types.Resources)) *Manager_RollbackAlloc_Call
- func (_c *Manager_RollbackAlloc_Call) RunAndReturn(...) *Manager_RollbackAlloc_Call
- type Manager_RollbackRealloc_Call
- func (_c *Manager_RollbackRealloc_Call) Return(err error) *Manager_RollbackRealloc_Call
- func (_c *Manager_RollbackRealloc_Call) Run(run func(context1 context.Context, s string, resources types.Resources)) *Manager_RollbackRealloc_Call
- func (_c *Manager_RollbackRealloc_Call) RunAndReturn(run func(context1 context.Context, s string, resources types.Resources) error) *Manager_RollbackRealloc_Call
- type Manager_SetNodeResourceCapacity_Call
- func (_c *Manager_SetNodeResourceCapacity_Call) Return(resources2 types.Resources, resources3 types.Resources, err error) *Manager_SetNodeResourceCapacity_Call
- func (_c *Manager_SetNodeResourceCapacity_Call) Run(run func(context1 context.Context, s string, resources types.Resources, ...)) *Manager_SetNodeResourceCapacity_Call
- func (_c *Manager_SetNodeResourceCapacity_Call) RunAndReturn(...) *Manager_SetNodeResourceCapacity_Call
- type Manager_SetNodeResourceUsage_Call
- func (_c *Manager_SetNodeResourceUsage_Call) Return(resources2 types.Resources, resources3 types.Resources, err error) *Manager_SetNodeResourceUsage_Call
- func (_c *Manager_SetNodeResourceUsage_Call) Run(run func(context1 context.Context, s string, resources types.Resources, ...)) *Manager_SetNodeResourceUsage_Call
- func (_c *Manager_SetNodeResourceUsage_Call) RunAndReturn(...) *Manager_SetNodeResourceUsage_Call
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 (_mock *Manager) AddNode(context1 context.Context, s string, resources types.Resources, info *types0.Info) (types.Resources, error)
AddNode provides a mock function for the type Manager
func (*Manager) Alloc ¶
func (_mock *Manager) Alloc(context1 context.Context, s string, n int, resources types.Resources) ([]types.Resources, []types.Resources, error)
Alloc provides a mock function for the type Manager
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) GetMetricsDescription ¶
func (_mock *Manager) GetMetricsDescription(context1 context.Context) ([]*types1.MetricsDescription, error)
GetMetricsDescription provides a mock function for the type Manager
func (*Manager) GetMostIdleNode ¶
GetMostIdleNode provides a mock function for the type Manager
func (*Manager) GetNodeResourceInfo ¶
func (_mock *Manager) GetNodeResourceInfo(context1 context.Context, s string, workloads []*types2.Workload, b bool) (types.Resources, types.Resources, []string, error)
GetNodeResourceInfo provides a mock function for the type Manager
func (*Manager) GetNodesDeployCapacity ¶
func (_mock *Manager) GetNodesDeployCapacity(context1 context.Context, strings []string, resources types.Resources) (map[string]*types1.NodeDeployCapacity, int, error)
GetNodesDeployCapacity provides a mock function for the type Manager
func (*Manager) GetNodesMetrics ¶ added in v0.1.4
func (_mock *Manager) GetNodesMetrics(context1 context.Context, nodes []*types2.Node) ([]*types1.Metrics, error)
GetNodesMetrics provides a mock function for the type Manager
func (*Manager) GetNodesResourceInfo ¶ added in v0.1.5
func (_mock *Manager) GetNodesResourceInfo(context1 context.Context, strings []string) (map[string]*types2.NodeResourceInfo, error)
GetNodesResourceInfo provides a mock function for the type Manager
func (*Manager) Realloc ¶
func (_mock *Manager) Realloc(context1 context.Context, s string, resources types.Resources, resources1 types.Resources) (types.Resources, types.Resources, types.Resources, error)
Realloc provides a mock function for the type Manager
func (*Manager) Remap ¶
func (_mock *Manager) Remap(context1 context.Context, s string, workloads []*types2.Workload) (map[string]types.Resources, error)
Remap provides a mock function for the type Manager
func (*Manager) RemoveNode ¶
RemoveNode provides a mock function for the type Manager
func (*Manager) RollbackAlloc ¶
func (_mock *Manager) RollbackAlloc(context1 context.Context, s string, resourcess []types.Resources) error
RollbackAlloc provides a mock function for the type Manager
func (*Manager) RollbackRealloc ¶
func (_mock *Manager) RollbackRealloc(context1 context.Context, s string, resources types.Resources) error
RollbackRealloc provides a mock function for the type Manager
func (*Manager) SetNodeResourceCapacity ¶
func (_mock *Manager) SetNodeResourceCapacity(context1 context.Context, s string, resources types.Resources, resources1 types.Resources, b bool, b1 bool) (types.Resources, types.Resources, error)
SetNodeResourceCapacity provides a mock function for the type Manager
func (*Manager) SetNodeResourceUsage ¶
func (_mock *Manager) SetNodeResourceUsage(context1 context.Context, s string, resources types.Resources, resources1 types.Resources, resourcess []types.Resources, b bool, b1 bool) (types.Resources, types.Resources, error)
SetNodeResourceUsage provides a mock function for the type Manager
type Manager_AddNode_Call ¶
Manager_AddNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNode'
func (*Manager_AddNode_Call) Return ¶
func (_c *Manager_AddNode_Call) Return(resources1 types.Resources, err error) *Manager_AddNode_Call
func (*Manager_AddNode_Call) Run ¶
func (_c *Manager_AddNode_Call) Run(run func(context1 context.Context, s string, resources types.Resources, info *types0.Info)) *Manager_AddNode_Call
func (*Manager_AddNode_Call) RunAndReturn ¶
type Manager_Alloc_Call ¶
Manager_Alloc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Alloc'
func (*Manager_Alloc_Call) Return ¶
func (_c *Manager_Alloc_Call) Return(resourcess []types.Resources, resourcess1 []types.Resources, err error) *Manager_Alloc_Call
func (*Manager_Alloc_Call) Run ¶
func (_c *Manager_Alloc_Call) Run(run func(context1 context.Context, s string, n int, resources types.Resources)) *Manager_Alloc_Call
func (*Manager_Alloc_Call) RunAndReturn ¶
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) AddNode ¶
func (_e *Manager_Expecter) AddNode(context1 any, s any, resources any, info any) *Manager_AddNode_Call
AddNode is a helper method to define mock.On call
- context1 context.Context
- s string
- resources types.Resources
- info *types0.Info
func (*Manager_Expecter) Alloc ¶
func (_e *Manager_Expecter) Alloc(context1 any, s any, n any, resources any) *Manager_Alloc_Call
Alloc is a helper method to define mock.On call
- context1 context.Context
- s string
- n int
- resources types.Resources
func (*Manager_Expecter) GetMetricsDescription ¶
func (_e *Manager_Expecter) GetMetricsDescription(context1 any) *Manager_GetMetricsDescription_Call
GetMetricsDescription is a helper method to define mock.On call
- context1 context.Context
func (*Manager_Expecter) GetMostIdleNode ¶
func (_e *Manager_Expecter) GetMostIdleNode(context1 any, strings any) *Manager_GetMostIdleNode_Call
GetMostIdleNode is a helper method to define mock.On call
- context1 context.Context
- strings []string
func (*Manager_Expecter) GetNodeResourceInfo ¶
func (_e *Manager_Expecter) GetNodeResourceInfo(context1 any, s any, workloads any, b any) *Manager_GetNodeResourceInfo_Call
GetNodeResourceInfo is a helper method to define mock.On call
- context1 context.Context
- s string
- workloads []*types2.Workload
- b bool
func (*Manager_Expecter) GetNodesDeployCapacity ¶
func (_e *Manager_Expecter) GetNodesDeployCapacity(context1 any, strings any, resources any) *Manager_GetNodesDeployCapacity_Call
GetNodesDeployCapacity is a helper method to define mock.On call
- context1 context.Context
- strings []string
- resources types.Resources
func (*Manager_Expecter) GetNodesMetrics ¶ added in v0.1.4
func (_e *Manager_Expecter) GetNodesMetrics(context1 any, nodes any) *Manager_GetNodesMetrics_Call
GetNodesMetrics is a helper method to define mock.On call
- context1 context.Context
- nodes []*types2.Node
func (*Manager_Expecter) GetNodesResourceInfo ¶ added in v0.1.5
func (_e *Manager_Expecter) GetNodesResourceInfo(context1 any, strings any) *Manager_GetNodesResourceInfo_Call
GetNodesResourceInfo is a helper method to define mock.On call
- context1 context.Context
- strings []string
func (*Manager_Expecter) Realloc ¶
func (_e *Manager_Expecter) Realloc(context1 any, s any, resources any, resources1 any) *Manager_Realloc_Call
Realloc is a helper method to define mock.On call
- context1 context.Context
- s string
- resources types.Resources
- resources1 types.Resources
func (*Manager_Expecter) Remap ¶
func (_e *Manager_Expecter) Remap(context1 any, s any, workloads any) *Manager_Remap_Call
Remap is a helper method to define mock.On call
- context1 context.Context
- s string
- workloads []*types2.Workload
func (*Manager_Expecter) RemoveNode ¶
func (_e *Manager_Expecter) RemoveNode(context1 any, s any) *Manager_RemoveNode_Call
RemoveNode is a helper method to define mock.On call
- context1 context.Context
- s string
func (*Manager_Expecter) RollbackAlloc ¶
func (_e *Manager_Expecter) RollbackAlloc(context1 any, s any, resourcess any) *Manager_RollbackAlloc_Call
RollbackAlloc is a helper method to define mock.On call
- context1 context.Context
- s string
- resourcess []types.Resources
func (*Manager_Expecter) RollbackRealloc ¶
func (_e *Manager_Expecter) RollbackRealloc(context1 any, s any, resources any) *Manager_RollbackRealloc_Call
RollbackRealloc is a helper method to define mock.On call
- context1 context.Context
- s string
- resources types.Resources
func (*Manager_Expecter) SetNodeResourceCapacity ¶
func (_e *Manager_Expecter) SetNodeResourceCapacity(context1 any, s any, resources any, resources1 any, b any, b1 any) *Manager_SetNodeResourceCapacity_Call
SetNodeResourceCapacity is a helper method to define mock.On call
- context1 context.Context
- s string
- resources types.Resources
- resources1 types.Resources
- b bool
- b1 bool
func (*Manager_Expecter) SetNodeResourceUsage ¶
func (_e *Manager_Expecter) SetNodeResourceUsage(context1 any, s any, resources any, resources1 any, resourcess any, b any, b1 any) *Manager_SetNodeResourceUsage_Call
SetNodeResourceUsage is a helper method to define mock.On call
- context1 context.Context
- s string
- resources types.Resources
- resources1 types.Resources
- resourcess []types.Resources
- b bool
- b1 bool
type Manager_GetMetricsDescription_Call ¶
Manager_GetMetricsDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetricsDescription'
func (*Manager_GetMetricsDescription_Call) Return ¶
func (_c *Manager_GetMetricsDescription_Call) Return(metricsDescriptions []*types1.MetricsDescription, err error) *Manager_GetMetricsDescription_Call
func (*Manager_GetMetricsDescription_Call) Run ¶
func (_c *Manager_GetMetricsDescription_Call) Run(run func(context1 context.Context)) *Manager_GetMetricsDescription_Call
func (*Manager_GetMetricsDescription_Call) RunAndReturn ¶
func (_c *Manager_GetMetricsDescription_Call) RunAndReturn(run func(context1 context.Context) ([]*types1.MetricsDescription, error)) *Manager_GetMetricsDescription_Call
type Manager_GetMostIdleNode_Call ¶
Manager_GetMostIdleNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMostIdleNode'
func (*Manager_GetMostIdleNode_Call) Return ¶
func (_c *Manager_GetMostIdleNode_Call) Return(s string, err error) *Manager_GetMostIdleNode_Call
func (*Manager_GetMostIdleNode_Call) Run ¶
func (_c *Manager_GetMostIdleNode_Call) Run(run func(context1 context.Context, strings []string)) *Manager_GetMostIdleNode_Call
func (*Manager_GetMostIdleNode_Call) RunAndReturn ¶
func (_c *Manager_GetMostIdleNode_Call) RunAndReturn(run func(context1 context.Context, strings []string) (string, error)) *Manager_GetMostIdleNode_Call
type Manager_GetNodeResourceInfo_Call ¶
Manager_GetNodeResourceInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeResourceInfo'
func (*Manager_GetNodeResourceInfo_Call) Return ¶
func (_c *Manager_GetNodeResourceInfo_Call) Return(resources types.Resources, resources1 types.Resources, strings []string, err error) *Manager_GetNodeResourceInfo_Call
func (*Manager_GetNodeResourceInfo_Call) Run ¶
func (_c *Manager_GetNodeResourceInfo_Call) Run(run func(context1 context.Context, s string, workloads []*types2.Workload, b bool)) *Manager_GetNodeResourceInfo_Call
type Manager_GetNodesDeployCapacity_Call ¶
Manager_GetNodesDeployCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesDeployCapacity'
func (*Manager_GetNodesDeployCapacity_Call) Return ¶
func (_c *Manager_GetNodesDeployCapacity_Call) Return(stringToNodeDeployCapacity map[string]*types1.NodeDeployCapacity, n int, err error) *Manager_GetNodesDeployCapacity_Call
func (*Manager_GetNodesDeployCapacity_Call) Run ¶
func (_c *Manager_GetNodesDeployCapacity_Call) Run(run func(context1 context.Context, strings []string, resources types.Resources)) *Manager_GetNodesDeployCapacity_Call
func (*Manager_GetNodesDeployCapacity_Call) RunAndReturn ¶
func (_c *Manager_GetNodesDeployCapacity_Call) RunAndReturn(run func(context1 context.Context, strings []string, resources types.Resources) (map[string]*types1.NodeDeployCapacity, int, error)) *Manager_GetNodesDeployCapacity_Call
type Manager_GetNodesMetrics_Call ¶ added in v0.1.4
Manager_GetNodesMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesMetrics'
func (*Manager_GetNodesMetrics_Call) Return ¶ added in v0.1.4
func (_c *Manager_GetNodesMetrics_Call) Return(metricss []*types1.Metrics, err error) *Manager_GetNodesMetrics_Call
func (*Manager_GetNodesMetrics_Call) Run ¶ added in v0.1.4
func (_c *Manager_GetNodesMetrics_Call) Run(run func(context1 context.Context, nodes []*types2.Node)) *Manager_GetNodesMetrics_Call
func (*Manager_GetNodesMetrics_Call) RunAndReturn ¶ added in v0.1.4
func (_c *Manager_GetNodesMetrics_Call) RunAndReturn(run func(context1 context.Context, nodes []*types2.Node) ([]*types1.Metrics, error)) *Manager_GetNodesMetrics_Call
type Manager_GetNodesResourceInfo_Call ¶ added in v0.1.5
Manager_GetNodesResourceInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesResourceInfo'
func (*Manager_GetNodesResourceInfo_Call) Return ¶ added in v0.1.5
func (_c *Manager_GetNodesResourceInfo_Call) Return(stringToNodeResourceInfo map[string]*types2.NodeResourceInfo, err error) *Manager_GetNodesResourceInfo_Call
func (*Manager_GetNodesResourceInfo_Call) Run ¶ added in v0.1.5
func (_c *Manager_GetNodesResourceInfo_Call) Run(run func(context1 context.Context, strings []string)) *Manager_GetNodesResourceInfo_Call
func (*Manager_GetNodesResourceInfo_Call) RunAndReturn ¶ added in v0.1.5
func (_c *Manager_GetNodesResourceInfo_Call) RunAndReturn(run func(context1 context.Context, strings []string) (map[string]*types2.NodeResourceInfo, error)) *Manager_GetNodesResourceInfo_Call
type Manager_Realloc_Call ¶
Manager_Realloc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Realloc'
func (*Manager_Realloc_Call) Return ¶
func (_c *Manager_Realloc_Call) Return(resources2 types.Resources, resources3 types.Resources, resources4 types.Resources, err error) *Manager_Realloc_Call
type Manager_Remap_Call ¶
Manager_Remap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remap'
func (*Manager_Remap_Call) Return ¶
func (_c *Manager_Remap_Call) Return(stringToResources map[string]types.Resources, err error) *Manager_Remap_Call
func (*Manager_Remap_Call) Run ¶
func (_c *Manager_Remap_Call) Run(run func(context1 context.Context, s string, workloads []*types2.Workload)) *Manager_Remap_Call
func (*Manager_Remap_Call) RunAndReturn ¶
type Manager_RemoveNode_Call ¶
Manager_RemoveNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveNode'
func (*Manager_RemoveNode_Call) Return ¶
func (_c *Manager_RemoveNode_Call) Return(err error) *Manager_RemoveNode_Call
func (*Manager_RemoveNode_Call) Run ¶
func (_c *Manager_RemoveNode_Call) Run(run func(context1 context.Context, s string)) *Manager_RemoveNode_Call
func (*Manager_RemoveNode_Call) RunAndReturn ¶
func (_c *Manager_RemoveNode_Call) RunAndReturn(run func(context1 context.Context, s string) error) *Manager_RemoveNode_Call
type Manager_RollbackAlloc_Call ¶
Manager_RollbackAlloc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RollbackAlloc'
func (*Manager_RollbackAlloc_Call) Return ¶
func (_c *Manager_RollbackAlloc_Call) Return(err error) *Manager_RollbackAlloc_Call
func (*Manager_RollbackAlloc_Call) Run ¶
func (_c *Manager_RollbackAlloc_Call) Run(run func(context1 context.Context, s string, resourcess []types.Resources)) *Manager_RollbackAlloc_Call
func (*Manager_RollbackAlloc_Call) RunAndReturn ¶
func (_c *Manager_RollbackAlloc_Call) RunAndReturn(run func(context1 context.Context, s string, resourcess []types.Resources) error) *Manager_RollbackAlloc_Call
type Manager_RollbackRealloc_Call ¶
Manager_RollbackRealloc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RollbackRealloc'
func (*Manager_RollbackRealloc_Call) Return ¶
func (_c *Manager_RollbackRealloc_Call) Return(err error) *Manager_RollbackRealloc_Call
func (*Manager_RollbackRealloc_Call) Run ¶
func (_c *Manager_RollbackRealloc_Call) Run(run func(context1 context.Context, s string, resources types.Resources)) *Manager_RollbackRealloc_Call
func (*Manager_RollbackRealloc_Call) RunAndReturn ¶
func (_c *Manager_RollbackRealloc_Call) RunAndReturn(run func(context1 context.Context, s string, resources types.Resources) error) *Manager_RollbackRealloc_Call
type Manager_SetNodeResourceCapacity_Call ¶
Manager_SetNodeResourceCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetNodeResourceCapacity'
func (*Manager_SetNodeResourceCapacity_Call) Return ¶
func (_c *Manager_SetNodeResourceCapacity_Call) Return(resources2 types.Resources, resources3 types.Resources, err error) *Manager_SetNodeResourceCapacity_Call
func (*Manager_SetNodeResourceCapacity_Call) RunAndReturn ¶
type Manager_SetNodeResourceUsage_Call ¶
Manager_SetNodeResourceUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetNodeResourceUsage'
func (*Manager_SetNodeResourceUsage_Call) Return ¶
func (_c *Manager_SetNodeResourceUsage_Call) Return(resources2 types.Resources, resources3 types.Resources, err error) *Manager_SetNodeResourceUsage_Call