hcsoci

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeMemorySize added in v0.9.0

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 added in v0.9.0

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

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

Types

type MountType added in v0.11.2

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