![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.9.9 to 0.11.1. - [Release notes](https://github.com/Microsoft/hcsshim/releases) - [Commits](https://github.com/Microsoft/hcsshim/compare/v0.9.9...v0.11.1) --- updated-dependencies: - dependency-name: github.com/Microsoft/hcsshim dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
472 B
Go
31 lines
472 B
Go
//go:build windows
|
|
|
|
package hns
|
|
|
|
type HNSGlobals struct {
|
|
Version HNSVersion `json:"Version"`
|
|
}
|
|
|
|
type HNSVersion struct {
|
|
Major int `json:"Major"`
|
|
Minor int `json:"Minor"`
|
|
}
|
|
|
|
var (
|
|
HNSVersion1803 = HNSVersion{Major: 7, Minor: 2}
|
|
)
|
|
|
|
func GetHNSGlobals() (*HNSGlobals, error) {
|
|
var version HNSVersion
|
|
err := hnsCall("GET", "/globals/version", "", &version)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
globals := &HNSGlobals{
|
|
Version: version,
|
|
}
|
|
|
|
return globals, nil
|
|
}
|