cpugroup

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NullGroupID = "00000000-0000-0000-0000-000000000000"

Variables

View Source
var ErrHVStatusInvalidCPUGroupState = errors.New("The hypervisor could not perform the operation because the CPU group is entering or in an invalid state.")

ErrHVStatusInvalidCPUGroupState corresponds to the internal error code for HV_STATUS_INVALID_CPU_GROUP_STATE

Functions

func Create

func Create(ctx context.Context, id string, logicalProcessors []uint32) error

Create creates a new cpugroup on the host with a prespecified id

func Delete

func Delete(ctx context.Context, id string) error

Delete deletes the cpugroup from the host

func GetCPUGroupConfig added in v0.9.0

func GetCPUGroupConfig(ctx context.Context, id string) (*hcsschema.CpuGroupConfig, error)

GetCPUGroupConfig finds the cpugroup config information for group with `id`

Types

This section is empty.

Jump to

Keyboard shortcuts

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