Documentation
¶
Index ¶
- func CreateTaskConfig() *rm_task.Config
- func GetLimitFromResourceConfig(resourcesMap map[string]*respool.ResourceConfig) *scalar.Resources
- func GetReservationFromResourceConfig(resourcesMap map[string]*respool.ResourceConfig) *scalar.Resources
- func ValidateResources(resources *scalar.Resources, values map[string]int64) bool
- func ValidateStateTransitions(rmtask *rm_task.RMTask, states []task.TaskState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTaskConfig ¶
CreateTaskConfig crates a test task config with all the default values for the tests. It is a TEST task config.
func GetLimitFromResourceConfig ¶
func GetLimitFromResourceConfig( resourcesMap map[string]*respool.ResourceConfig) *scalar.Resources
GetLimitFromResourceConfig gets the limit from the respools resource config
func GetReservationFromResourceConfig ¶
func GetReservationFromResourceConfig( resourcesMap map[string]*respool.ResourceConfig) *scalar.Resources
GetReservationFromResourceConfig gets the reservation from the respools resource config
func ValidateResources ¶
ValidateResources validates the resources and the values passed if anything differs it returns false else true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.