package hcsoci

import "github.com/Microsoft/hcsshim/internal/hcsoci"

Index

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

Source Files

doc.go resources.go

Version
v0.12.6
Published
Aug 19, 2024
Platform
darwin/amd64
Imports
3 packages
Last checked
39 seconds ago

Tools for package owners.