Documentation ¶
Index ¶
- func GetCoresReservedForSystem(conf *config.Configuration, metaServer *metaserver.MetaServer, ...) (machine.CPUSet, error)
- func PackAllocationResponse(allocationInfo *state.AllocationInfo, resourceName, ociPropertyName string, ...) (*pluginapi.ResourceAllocationResponse, error)
- func RegenerateHints(allocationInfo *state.AllocationInfo, reqInt int) map[string]*pluginapi.ListOfTopologyHints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoresReservedForSystem ¶ added in v0.4.0
func GetCoresReservedForSystem(conf *config.Configuration, metaServer *metaserver.MetaServer, machineInfo *machine.KatalystMachineInfo, allCPUs machine.CPUSet) (machine.CPUSet, error)
func PackAllocationResponse ¶ added in v0.4.0
func PackAllocationResponse(allocationInfo *state.AllocationInfo, resourceName, ociPropertyName string, isNodeResource, isScalarResource bool, req *pluginapi.ResourceRequest) (*pluginapi.ResourceAllocationResponse, error)
PackAllocationResponse fills pluginapi.ResourceAllocationResponse with information from AllocationInfo and pluginapi.ResourceRequest
func RegenerateHints ¶ added in v0.4.0
func RegenerateHints(allocationInfo *state.AllocationInfo, reqInt int) map[string]*pluginapi.ListOfTopologyHints
RegenerateHints regenerates hints for container that'd already been allocated cpu, and regenerateHints will assemble hints based on already-existed AllocationInfo, without any calculation logics at all
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.