hcsoci

package
v0.0.0-...-1359b6c Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeMemorySize

func NormalizeMemorySize(ctx context.Context, cid string, requestedSizeMB uint64) uint64

NormalizeMemorySize returns the requested memory size in MB aligned up to an even number

func NormalizeProcessorCount

func NormalizeProcessorCount(ctx context.Context, cid string, requestedCount, hostCount int32) int32

NormalizeProcessorCount returns the `Min(requested, logical CPU count)`.

Types

type MountType

type MountType = string

MountType represents the type of mount being added

const (
	// supported internal mount types
	MountTypeBind                  MountType = "bind"
	MountTypePhysicalDisk          MountType = "physical-disk"
	MountTypeVirtualDisk           MountType = "virtual-disk"
	MountTypeExtensibleVirtualDisk MountType = "extensible-virtual-disk"
)

MountType const

Jump to

Keyboard shortcuts

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