package osversion

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

Index

Constants

const (

	// RS2 was a client-only release in case you're asking why it's not in the list.
	RS1 = 14393
	RS3 = 16299
	RS4 = 17134
	RS5 = 17743 // TODO Bump to final RS5 build

)

Types

type OSVersion

type OSVersion struct {
	Version      uint32
	MajorVersion uint8
	MinorVersion uint8
	Build        uint16
}

OSVersion is a wrapper for Windows version information https://msdn.microsoft.com/en-us/library/windows/desktop/ms724439(v=vs.85).aspx

func Get

func Get() OSVersion

Get gets the operating system version on Windows. The calling application must be manifested to get the correct version information.

func (OSVersion) ToString

func (osv OSVersion) ToString() string

Source Files

osversion.go windowsbuilds.go

Version
v0.7.3
Published
Sep 7, 2018
Platform
windows/amd64
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.