batchresource

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Object

func Object() *plugin

Types

type Rule added in v1.4.0

type Rule struct {
	// contains filtered or unexported fields
}

func (*Rule) GetCFSQuotaScaleRatio added in v1.4.0

func (r *Rule) GetCFSQuotaScaleRatio() (bool, float64)

GetCFSQuotaScaleRatio returns 1. if the cfs quota should be unlimited (-1 / max) 2. the scale ratio for the cfs quota when the quota is limited (-1 means do not scale)

func (*Rule) UpdateCFSQuotaEnabled added in v1.4.0

func (r *Rule) UpdateCFSQuotaEnabled(enabled bool) bool

func (*Rule) UpdateCPUNormalizationRatio added in v1.4.0

func (r *Rule) UpdateCPUNormalizationRatio(ratio float64) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL