Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUQuotaStatus

type CPUQuotaStatus int

    CPUQuotaStatus presents the status of how CPU quota is used

    const (
    	// CPUQuotaUndefined is returned when CPU quota is undefined
    	CPUQuotaUndefined CPUQuotaStatus = iota
    	// CPUQuotaUsed is returned when a valid CPU quota can be used
    	CPUQuotaUsed
    	// CPUQuotaMinUsed is return when CPU quota is smaller than the min value
    	CPUQuotaMinUsed
    )

    func CPUQuotaToGOMAXPROCS

    func CPUQuotaToGOMAXPROCS(minValue int) (int, CPUQuotaStatus, error)

      CPUQuotaToGOMAXPROCS converts the CPU quota applied to the calling process to a valid GOMAXPROCS value.