package platform

import "github.com/docker/docker/pkg/platform"

Index

Constants

const (
	ProcessorArchitecture64    = 9  // PROCESSOR_ARCHITECTURE_AMD64
	ProcessorArchitectureIA64  = 6  // PROCESSOR_ARCHITECTURE_IA64
	ProcessorArchitecture32    = 0  // PROCESSOR_ARCHITECTURE_INTEL
	ProcessorArchitectureArm   = 5  // PROCESSOR_ARCHITECTURE_ARM
	ProcessorArchitectureArm64 = 12 // PROCESSOR_ARCHITECTURE_ARM64
)

Constants

Variables

var (
	// Architecture holds the runtime architecture of the process.
	Architecture string
	// OSType holds the runtime operating system type (Linux, …) of the process.
	OSType string
)

Functions

func NumProcs

func NumProcs() uint32

NumProcs returns the number of processors on the system

Source Files

architecture_windows.go platform.go

Version
v23.0.1+incompatible
Published
Feb 9, 2023
Platform
windows/amd64
Imports
6 packages
Last checked
18 minutes ago

Tools for package owners.