-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathversion.go
More file actions
30 lines (25 loc) · 795 Bytes
/
version.go
File metadata and controls
30 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package windows
type ServerVersion string
const (
// Server2022 represent Windows Server 2022
Server2022 ServerVersion = "2022"
// Server2025 represent Windows Server 2025
Server2025 ServerVersion = "2025"
)
// SupportedVersions are the Windows Server versions supported by the e2e test.
// "" implies the default which is Server2022
var SupportedVersions = []ServerVersion{Server2022, Server2025, ""}
// BuildNumber returns the build for a given server version as defined by Microsoft
var BuildNumber = map[ServerVersion]string{
Server2022: "10.0.20348",
Server2025: "10.0.26100",
}
// IsSupported checks if the given version is supported
func IsSupported(version ServerVersion) bool {
for _, v := range SupportedVersions {
if v == version {
return true
}
}
return false
}