Documentation ¶
Index ¶
- type Plugin
- func (p Plugin) AddNode(ctx context.Context, nodename string, resource plugintypes.NodeResourceRequest, ...) (resourcetypes.RawParams, error)
- func (p Plugin) CalculateDeploy(ctx context.Context, nodename string, deployCount int, ...) (resourcetypes.RawParams, error)
- func (p Plugin) CalculateRealloc(ctx context.Context, nodename string, resource plugintypes.WorkloadResource, ...) (resourcetypes.RawParams, error)
- func (p Plugin) CalculateRemap(context.Context, string, map[string]plugintypes.WorkloadResource) (resourcetypes.RawParams, error)
- func (p Plugin) FixNodeResource(ctx context.Context, nodename string, ...) (resourcetypes.RawParams, error)
- func (p Plugin) GetMetrics(ctx context.Context, podname, nodename string) ([]resourcetypes.RawParams, error)
- func (p Plugin) GetMetricsDescription(_ context.Context) ([]resourcetypes.RawParams, error)
- func (p Plugin) GetMostIdleNode(_ context.Context, nodenames []string) (*resourcetypes.RawParams, error)
- func (p Plugin) GetNodeResourceInfo(ctx context.Context, nodename string, ...) (resourcetypes.RawParams, error)
- func (p Plugin) GetNodesDeployCapacity(ctx context.Context, nodenames []string, ...) (resourcetypes.RawParams, error)
- func (p Plugin) Name() string
- func (p Plugin) RemoveNode(ctx context.Context, nodename string) error
- func (p Plugin) SetNodeResourceCapacity(ctx context.Context, nodename string, resource plugintypes.NodeResource, ...) (resourcetypes.RawParams, error)
- func (p Plugin) SetNodeResourceInfo(ctx context.Context, nodename string, capacity plugintypes.NodeResource, ...) error
- func (p Plugin) SetNodeResourceUsage(ctx context.Context, nodename string, resource plugintypes.NodeResource, ...) (resourcetypes.RawParams, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin
func (Plugin) AddNode ¶
func (p Plugin) AddNode(ctx context.Context, nodename string, resource plugintypes.NodeResourceRequest, info *enginetypes.Info) (resourcetypes.RawParams, error)
func (Plugin) CalculateDeploy ¶
func (p Plugin) CalculateDeploy(ctx context.Context, nodename string, deployCount int, resourceRequest plugintypes.WorkloadResourceRequest) (resourcetypes.RawParams, error)
func (Plugin) CalculateRealloc ¶
func (p Plugin) CalculateRealloc(ctx context.Context, nodename string, resource plugintypes.WorkloadResource, resourceRequest plugintypes.WorkloadResourceRequest) (resourcetypes.RawParams, error)
func (Plugin) CalculateRemap ¶
func (p Plugin) CalculateRemap(context.Context, string, map[string]plugintypes.WorkloadResource) (resourcetypes.RawParams, error)
func (Plugin) FixNodeResource ¶
func (p Plugin) FixNodeResource(ctx context.Context, nodename string, workloadsResource []plugintypes.WorkloadResource) (resourcetypes.RawParams, error)
func (Plugin) GetMetrics ¶
func (p Plugin) GetMetrics(ctx context.Context, podname, nodename string) ([]resourcetypes.RawParams, error)
GetMetrics .
func (Plugin) GetMetricsDescription ¶
GetMetricsDescription .
func (Plugin) GetMostIdleNode ¶
func (Plugin) GetNodeResourceInfo ¶
func (p Plugin) GetNodeResourceInfo(ctx context.Context, nodename string, workloadsResource []plugintypes.WorkloadResource) (resourcetypes.RawParams, error)
func (Plugin) GetNodesDeployCapacity ¶
func (p Plugin) GetNodesDeployCapacity(ctx context.Context, nodenames []string, resource plugintypes.WorkloadResourceRequest) (resourcetypes.RawParams, error)
func (Plugin) SetNodeResourceCapacity ¶
func (p Plugin) SetNodeResourceCapacity(ctx context.Context, nodename string, resource plugintypes.NodeResource, resourceRequest plugintypes.NodeResourceRequest, delta bool, incr bool) (resourcetypes.RawParams, error)
func (Plugin) SetNodeResourceInfo ¶
func (p Plugin) SetNodeResourceInfo(ctx context.Context, nodename string, capacity plugintypes.NodeResource, usage plugintypes.NodeResource) error
func (Plugin) SetNodeResourceUsage ¶
func (p Plugin) SetNodeResourceUsage(ctx context.Context, nodename string, resource plugintypes.NodeResource, resourceRequest plugintypes.NodeResourceRequest, workloadsResource []plugintypes.WorkloadResource, delta bool, incr bool) (resourcetypes.RawParams, error)
Click to show internal directories.
Click to hide internal directories.