Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Plan ¶
func Plan(left, right allocation.ProviderSlice) (create, update allocation.ProviderSlice, destroy []string)
Plan determines changes between left and right for one pod
Types ¶
type Evaluator ¶
type Evaluator struct { *supervisor.Control // contains filtered or unexported fields }
Providers evaluator
func NewEvaluator ¶
func (*Evaluator) Deallocate ¶
Deallocate all providers in given pod
func (*Evaluator) GetConstraint ¶
func (e *Evaluator) GetConstraint(pod *manifest.Pod) manifest.Constraint
Returns base constraint from manifest. For pods without resources GetConstraint adds constraint "__provider.allocate = false".
type Manager ¶
type Manager interface { // Create provider CreateProvider(id string, alloc *allocation.Provider) // Update provider UpdateProvider(id string, alloc *allocation.Provider) // Deallocate provider on estimator DestroyProvider(id string) }
Manager can reconfigure resources from providers
Click to show internal directories.
Click to hide internal directories.