package hcsoci
import "github.com/Microsoft/hcsshim/internal/hcsoci"
Index ¶
- func NormalizeMemorySize(ctx context.Context, cid string, requestedSizeMB uint64) uint64
- func NormalizeProcessorCount(ctx context.Context, cid string, requestedCount, hostCount int32) int32
- type MountType
Functions ¶
func NormalizeMemorySize ¶
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 ¶
- Version
- v0.12.9 (latest)
- Published
- Oct 30, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 15 hours ago –
Tools for package owners.