Documentation ¶
Index ¶
- type ResourcePartitionState
- type SystemResourcePartitions
- func (s *SystemResourcePartitions) Hit(resPartition resources.Resources)
- func (s *SystemResourcePartitions) MergePartitionsState(newPartitionsState []types.PartitionState)
- func (s *SystemResourcePartitions) Miss(resPartition resources.Resources)
- func (s *SystemResourcePartitions) PartitionsState() []types.PartitionState
- func (s *SystemResourcePartitions) Try(targetResPartition resources.Resources) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourcePartitionState ¶
type ResourcePartitionState struct {
// contains filtered or unexported fields
}
func NewResourcePartitionState ¶
func NewResourcePartitionState(totalStat int, randGenerator *rand.Rand) *ResourcePartitionState
func (*ResourcePartitionState) Hit ¶
func (r *ResourcePartitionState) Hit()
func (*ResourcePartitionState) Merge ¶
func (r *ResourcePartitionState) Merge(newHits int)
func (*ResourcePartitionState) Miss ¶
func (r *ResourcePartitionState) Miss()
func (*ResourcePartitionState) Try ¶
func (r *ResourcePartitionState) Try() bool
type SystemResourcePartitions ¶
type SystemResourcePartitions struct {
// contains filtered or unexported fields
}
func NewSystemResourcePartitions ¶
func NewSystemResourcePartitions(totalStats int, randGenerator *rand.Rand) *SystemResourcePartitions
func (*SystemResourcePartitions) Hit ¶
func (s *SystemResourcePartitions) Hit(resPartition resources.Resources)
func (*SystemResourcePartitions) MergePartitionsState ¶
func (s *SystemResourcePartitions) MergePartitionsState(newPartitionsState []types.PartitionState)
func (*SystemResourcePartitions) Miss ¶
func (s *SystemResourcePartitions) Miss(resPartition resources.Resources)
func (*SystemResourcePartitions) PartitionsState ¶
func (s *SystemResourcePartitions) PartitionsState() []types.PartitionState
Click to show internal directories.
Click to hide internal directories.