Documentation ¶
Index ¶
- Variables
- func CurrentOsMixTypesMap() map[Variant]bool
- func CurrentOsTypesMustBePresent(items ...Variant)
- func CurrentOsTypesNotContainsError(items ...Variant) error
- func IsCentOs() bool
- func IsCurrentOsTypesContains(items ...Variant) bool
- func IsDebian() bool
- func IsRedhat() bool
- func IsRunningInDockerContainer() bool
- func IsUbuntu() bool
- func NewWindowsSystemDetailGetter() (windowsSysDetailDefiner, error)
- func RangesInvalidErr() error
- type OperatingSystemDetail
- func (it OperatingSystemDetail) AllSysTypes() []Variant
- func (it OperatingSystemDetail) AllSysTypesMap() map[Variant]bool
- func (it OperatingSystemDetail) Deserialize(toPtr interface{}) error
- func (it *OperatingSystemDetail) HasAnyItem() bool
- func (it *OperatingSystemDetail) HasWindowsDetail() bool
- func (it *OperatingSystemDetail) HasWindowsDetails() bool
- func (it OperatingSystemDetail) Is32BitArch() bool
- func (it OperatingSystemDetail) Is64BitArch() bool
- func (it OperatingSystemDetail) IsAndroid() bool
- func (it OperatingSystemDetail) IsAnyOfTypes(mixTypes ...Variant) bool
- func (it OperatingSystemDetail) IsArch(arch osarchs.Architecture) bool
- func (it OperatingSystemDetail) IsCentOsAtLeast(majorVersion int) bool
- func (it OperatingSystemDetail) IsCentos() bool
- func (it OperatingSystemDetail) IsDebianAtLeast(majorVersion int) bool
- func (it *OperatingSystemDetail) IsEmpty() bool
- func (it *OperatingSystemDetail) IsEmptyWindowsDetail() bool
- func (it *OperatingSystemDetail) IsInvalid() bool
- func (it OperatingSystemDetail) IsMacOsAtLeast(majorVersion int) bool
- func (it OperatingSystemDetail) IsMajorVersionAtLeast(major int) bool
- func (it OperatingSystemDetail) IsName(name string) bool
- func (it OperatingSystemDetail) IsNameContains(name string) bool
- func (it OperatingSystemDetail) IsNameEndsWith(name string) bool
- func (it OperatingSystemDetail) IsNameStartsWith(name string) bool
- func (it *OperatingSystemDetail) IsNull() bool
- func (it OperatingSystemDetail) IsType(mixType Variant) bool
- func (it OperatingSystemDetail) IsTypePlusMajorAtLeast(mixType Variant, majorVersion int) bool
- func (it OperatingSystemDetail) IsTypePlusRunningInDocker(mixType Variant) bool
- func (it OperatingSystemDetail) IsUbuntu() bool
- func (it OperatingSystemDetail) IsUbuntuAtLeast(majorVersion int) bool
- func (it OperatingSystemDetail) IsUnix() bool
- func (it *OperatingSystemDetail) IsValid() bool
- func (it OperatingSystemDetail) IsVersion(versionCompare string) bool
- func (it OperatingSystemDetail) IsVersionAtLeast(versionCompare string) bool
- func (it OperatingSystemDetail) IsWindows() bool
- func (it OperatingSystemDetail) IsWindowsAtLeast(majorVersion int) bool
- func (it OperatingSystemDetail) Json() corejson.Result
- func (it OperatingSystemDetail) JsonPtr() *corejson.Result
- func (it OperatingSystemDetail) PrettyJsonString() string
- func (it *OperatingSystemDetail) ReleaseVersion() *coreversion.Version
- func (it OperatingSystemDetail) Serialize() ([]byte, error)
- func (it OperatingSystemDetail) SerializeMust() []byte
- type OsDetailWithErr
- func (it OsDetailWithErr) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *OsDetailWithErr) Json() corejson.Result
- func (it *OsDetailWithErr) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it *OsDetailWithErr) JsonPtr() *corejson.Result
- func (it *OsDetailWithErr) PrettyJsonString() string
- func (it *OsDetailWithErr) String() string
- type Variant
- func (it Variant) AllNameValues() []string
- func (it Variant) AllSysMatchingTypes() []Variant
- func (it Variant) AllSysMatchingTypesMap() map[Variant]bool
- func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it *Variant) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *Variant) AsJsonMarshaller() corejson.JsonMarshaller
- func (it *Variant) AsJsoner() corejson.Jsoner
- func (it Variant) DefaultCmdProcessName() string
- func (it Variant) EnumType() enuminf.EnumTyper
- func (it Variant) Format(format string) (compiled string)
- func (it Variant) Index() int
- func (it Variant) IntegerEnumRanges() []int
- func (it Variant) IsAllLogically() bool
- func (it Variant) IsAllOs() bool
- func (it Variant) IsAndroid() bool
- func (it Variant) IsAnyNamesOf(names ...string) bool
- func (it Variant) IsAnyOf(anyOfItems ...Variant) bool
- func (it Variant) IsAnyOs() bool
- func (it Variant) IsAnyOsLogically() bool
- func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Variant) IsArchLinux() bool
- func (it Variant) IsByteValueEqual(value byte) bool
- func (it Variant) IsCentos() bool
- func (it Variant) IsCurrentOs() bool
- func (it Variant) IsDebian() bool
- func (it Variant) IsDocker() bool
- func (it Variant) IsInvalid() bool
- func (it Variant) IsLinux() bool
- func (it Variant) IsMacOs() bool
- func (it Variant) IsMajorAtLeast(majorVersion int) bool
- func (it Variant) IsNameEqual(name string) bool
- func (it Variant) IsNameOf(anyNames ...string) bool
- func (it Variant) IsRedHatEnterpriseLinux() bool
- func (it Variant) IsUbuntu() bool
- func (it Variant) IsUninitialized() bool
- func (it Variant) IsUnix() bool
- func (it Variant) IsUnixLogically() bool
- func (it Variant) IsValid() bool
- func (it Variant) IsValueEqual(value byte) bool
- func (it Variant) IsWindows() bool
- func (it Variant) Json() corejson.Result
- func (it *Variant) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Variant) JsonPtr() *corejson.Result
- func (it Variant) LinuxVendorType() linuxvendortype.Variant
- func (it Variant) MarshalJSON() ([]byte, error)
- func (it Variant) MaxByte() byte
- func (it Variant) MaxInt() int
- func (it Variant) MaxValueString() string
- func (it Variant) MinByte() byte
- func (it Variant) MinInt() int
- func (it Variant) MinMaxAny() (min, max interface{})
- func (it Variant) MinValueString() string
- func (it Variant) Name() string
- func (it Variant) NameLower() string
- func (it Variant) NameValue() string
- func (it Variant) OnlySupportedErr(names ...string) error
- func (it Variant) OnlySupportedMsgErr(message string, names ...string) error
- func (it Variant) OsDetail() *OperatingSystemDetail
- func (it Variant) OsDetailWithError() (*OperatingSystemDetail, error)
- func (it Variant) RangeNamesCsv() string
- func (it Variant) RangesByte() []byte
- func (it Variant) RangesDynamicMap() map[string]interface{}
- func (it Variant) String() string
- func (it Variant) ToNumberString() string
- func (it Variant) ToPtr() *Variant
- func (it *Variant) ToSimple() Variant
- func (it Variant) TypeName() string
- func (it *Variant) UnmarshalJSON(data []byte) error
- func (it Variant) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Variant) Value() byte
- func (it Variant) ValueByte() byte
- func (it Variant) ValueInt() int
- func (it Variant) ValueInt16() int16
- func (it Variant) ValueInt32() int32
- func (it Variant) ValueInt8() int8
- func (it Variant) ValueString() string
- func (it Variant) ValueUInt16() uint16
- type WindowsSystemDetail
- func (it *WindowsSystemDetail) IsDefined() bool
- func (it *WindowsSystemDetail) IsDefinedPlus(isCondition bool) bool
- func (it *WindowsSystemDetail) IsNull() bool
- func (it *WindowsSystemDetail) IsNullOr(isCondition bool) bool
- func (it WindowsSystemDetail) IsWindows10() bool
- func (it WindowsSystemDetail) IsWindows11() bool
- func (it WindowsSystemDetail) IsWindows7() bool
- func (it WindowsSystemDetail) IsWindows8() bool
- func (it WindowsSystemDetail) IsWindowsEqual(number int) bool
- func (it WindowsSystemDetail) IsWindowsGreaterEqual(number int) bool
- func (it *WindowsSystemDetail) IsWindowsServerEqual(number int) bool
- func (it *WindowsSystemDetail) IsWindowsServerGreaterEqual(number int) bool
- func (it WindowsSystemDetail) IsWindowsSever() bool
- func (it WindowsSystemDetail) IsWindowsSever2016() bool
- func (it WindowsSystemDetail) IsWindowsSever2019() bool
- func (it WindowsSystemDetail) IsWindowsSeverGreaterEqual2016() bool
- func (it WindowsSystemDetail) IsWindowsSeverGreaterEqual2019() bool
- func (it *WindowsSystemDetail) WinVer() inttype.Variant
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ranges = [...]string{ Invalid: "Invalid", AnyOs: "AnyOs", Windows: "Windows", Unix: "Unix", Linux: "Linux", MacOs: "MacOs", Ubuntu: "Ubuntu", Debian: "Debian", ArchLinux: "ArchLinux", FreeBsd: "FreeBsd", Centos: "Centos", RedHatEnterpriseLinux: "RedHatEnterpriseLinux", Docker: "Docker", Android: "Android", } BasicEnumImpl = enumimpl.New.BasicByte.UsingFirstItemSliceAliasMap( Invalid, Ranges[:], aliasMap) )
Functions ¶
func CurrentOsMixTypesMap ¶ added in v0.1.3
func CurrentOsTypesMustBePresent ¶ added in v0.1.3
func CurrentOsTypesMustBePresent(items ...Variant)
func CurrentOsTypesNotContainsError ¶ added in v0.1.3
func IsCurrentOsTypesContains ¶ added in v0.1.3
func IsRunningInDockerContainer ¶ added in v0.3.6
func IsRunningInDockerContainer() bool
IsRunningInDockerContainer
https://paulbradley.org/indocker/ docker creates a .dockerenv file at the root of the directory tree inside the container. if this file exists then the viewer is running from inside a container so return true
func NewWindowsSystemDetailGetter ¶ added in v0.1.3
func NewWindowsSystemDetailGetter() (windowsSysDetailDefiner, error)
func RangesInvalidErr ¶
func RangesInvalidErr() error
Types ¶
type OperatingSystemDetail ¶ added in v0.1.3
type OperatingSystemDetail struct { OsMixType Variant Name strtype.Variant `json:"Name,omitempty"` // eg. "CentOS Linux 7 (Core)", Vendor strtype.Variant `json:"Vendor,omitempty"` // eg. ubuntu, centos LinuxVendorType linuxvendortype.Variant `json:"LinuxVendorType,omitempty"` // eg. ubuntu, centos Version strtype.Variant `json:"Version,omitempty"` // eg. "7" Release strtype.Variant `json:"Release,omitempty"` // eg. "7.2.1511" Architecture osarchs.Architecture `json:"Architecture,omitempty"` // eg. "amd64" WindowsDetail *WindowsSystemDetail `json:"WindowsDetail,omitempty"` IsLinux bool `json:"IsLinux,omitempty"` IsMacOs bool `json:"IsMacOs,omitempty"` IsDocker bool `json:"IsDocker,omitempty"` // TODO VM detect Group ostype.Group // contains filtered or unexported fields }
OperatingSystemDetail
References: - Sample from other packages : https://t.ly/Au3Q - Enum all os detect examples : https://gitlab.com/evatix-go/enum/-/issues/4
func GetCurrentOsDetail ¶ added in v0.1.3
func GetCurrentOsDetail() (*OperatingSystemDetail, error)
func (OperatingSystemDetail) AllSysTypes ¶ added in v0.1.3
func (it OperatingSystemDetail) AllSysTypes() []Variant
func (OperatingSystemDetail) AllSysTypesMap ¶ added in v0.1.3
func (it OperatingSystemDetail) AllSysTypesMap() map[Variant]bool
func (OperatingSystemDetail) Deserialize ¶ added in v0.1.3
func (it OperatingSystemDetail) Deserialize(toPtr interface{}) error
func (*OperatingSystemDetail) HasAnyItem ¶ added in v0.1.3
func (it *OperatingSystemDetail) HasAnyItem() bool
func (*OperatingSystemDetail) HasWindowsDetail ¶ added in v0.1.3
func (it *OperatingSystemDetail) HasWindowsDetail() bool
func (*OperatingSystemDetail) HasWindowsDetails ¶ added in v0.1.3
func (it *OperatingSystemDetail) HasWindowsDetails() bool
func (OperatingSystemDetail) Is32BitArch ¶ added in v0.1.3
func (it OperatingSystemDetail) Is32BitArch() bool
func (OperatingSystemDetail) Is64BitArch ¶ added in v0.1.3
func (it OperatingSystemDetail) Is64BitArch() bool
func (OperatingSystemDetail) IsAndroid ¶ added in v0.1.3
func (it OperatingSystemDetail) IsAndroid() bool
func (OperatingSystemDetail) IsAnyOfTypes ¶ added in v0.1.3
func (it OperatingSystemDetail) IsAnyOfTypes( mixTypes ...Variant, ) bool
func (OperatingSystemDetail) IsArch ¶ added in v0.1.3
func (it OperatingSystemDetail) IsArch(arch osarchs.Architecture) bool
func (OperatingSystemDetail) IsCentOsAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsCentOsAtLeast( majorVersion int, ) bool
func (OperatingSystemDetail) IsCentos ¶ added in v0.1.3
func (it OperatingSystemDetail) IsCentos() bool
func (OperatingSystemDetail) IsDebianAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsDebianAtLeast( majorVersion int, ) bool
func (*OperatingSystemDetail) IsEmpty ¶ added in v0.1.3
func (it *OperatingSystemDetail) IsEmpty() bool
func (*OperatingSystemDetail) IsEmptyWindowsDetail ¶ added in v0.1.3
func (it *OperatingSystemDetail) IsEmptyWindowsDetail() bool
func (*OperatingSystemDetail) IsInvalid ¶ added in v0.1.3
func (it *OperatingSystemDetail) IsInvalid() bool
func (OperatingSystemDetail) IsMacOsAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsMacOsAtLeast( majorVersion int, ) bool
func (OperatingSystemDetail) IsMajorVersionAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsMajorVersionAtLeast( major int, ) bool
func (OperatingSystemDetail) IsName ¶ added in v0.1.3
func (it OperatingSystemDetail) IsName(name string) bool
func (OperatingSystemDetail) IsNameContains ¶ added in v0.1.3
func (it OperatingSystemDetail) IsNameContains(name string) bool
func (OperatingSystemDetail) IsNameEndsWith ¶ added in v0.1.3
func (it OperatingSystemDetail) IsNameEndsWith(name string) bool
func (OperatingSystemDetail) IsNameStartsWith ¶ added in v0.1.3
func (it OperatingSystemDetail) IsNameStartsWith(name string) bool
func (*OperatingSystemDetail) IsNull ¶ added in v0.1.3
func (it *OperatingSystemDetail) IsNull() bool
func (OperatingSystemDetail) IsType ¶ added in v0.1.3
func (it OperatingSystemDetail) IsType(mixType Variant) bool
func (OperatingSystemDetail) IsTypePlusMajorAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsTypePlusMajorAtLeast( mixType Variant, majorVersion int, ) bool
func (OperatingSystemDetail) IsTypePlusRunningInDocker ¶ added in v0.1.3
func (it OperatingSystemDetail) IsTypePlusRunningInDocker( mixType Variant, ) bool
func (OperatingSystemDetail) IsUbuntu ¶ added in v0.1.3
func (it OperatingSystemDetail) IsUbuntu() bool
func (OperatingSystemDetail) IsUbuntuAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsUbuntuAtLeast( majorVersion int, ) bool
func (OperatingSystemDetail) IsUnix ¶ added in v0.1.3
func (it OperatingSystemDetail) IsUnix() bool
func (*OperatingSystemDetail) IsValid ¶ added in v0.1.3
func (it *OperatingSystemDetail) IsValid() bool
func (OperatingSystemDetail) IsVersion ¶ added in v0.1.3
func (it OperatingSystemDetail) IsVersion( versionCompare string, ) bool
func (OperatingSystemDetail) IsVersionAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsVersionAtLeast( versionCompare string, ) bool
func (OperatingSystemDetail) IsWindows ¶ added in v0.1.3
func (it OperatingSystemDetail) IsWindows() bool
func (OperatingSystemDetail) IsWindowsAtLeast ¶ added in v0.1.3
func (it OperatingSystemDetail) IsWindowsAtLeast( majorVersion int, ) bool
func (OperatingSystemDetail) Json ¶ added in v0.1.3
func (it OperatingSystemDetail) Json() corejson.Result
func (OperatingSystemDetail) JsonPtr ¶ added in v0.1.3
func (it OperatingSystemDetail) JsonPtr() *corejson.Result
func (OperatingSystemDetail) PrettyJsonString ¶ added in v0.1.3
func (it OperatingSystemDetail) PrettyJsonString() string
func (*OperatingSystemDetail) ReleaseVersion ¶ added in v0.1.3
func (it *OperatingSystemDetail) ReleaseVersion() *coreversion.Version
func (OperatingSystemDetail) Serialize ¶ added in v0.1.3
func (it OperatingSystemDetail) Serialize() ([]byte, error)
func (OperatingSystemDetail) SerializeMust ¶ added in v0.1.3
func (it OperatingSystemDetail) SerializeMust() []byte
type OsDetailWithErr ¶ added in v0.1.3
type OsDetailWithErr struct { OperatingSystemDetail *OperatingSystemDetail Error string }
func (OsDetailWithErr) AsJsonContractsBinder ¶ added in v0.1.3
func (it OsDetailWithErr) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*OsDetailWithErr) Json ¶ added in v0.1.3
func (it *OsDetailWithErr) Json() corejson.Result
func (*OsDetailWithErr) JsonParseSelfInject ¶ added in v0.1.3
func (it *OsDetailWithErr) JsonParseSelfInject(jsonResult *corejson.Result) error
func (*OsDetailWithErr) JsonPtr ¶ added in v0.1.3
func (it *OsDetailWithErr) JsonPtr() *corejson.Result
func (*OsDetailWithErr) PrettyJsonString ¶ added in v0.1.3
func (it *OsDetailWithErr) PrettyJsonString() string
func (*OsDetailWithErr) String ¶ added in v0.1.3
func (it *OsDetailWithErr) String() string
type Variant ¶
type Variant byte
func CurrentOsMixType ¶ added in v0.1.3
func CurrentOsMixType() Variant
func CurrentOsMixTypes ¶ added in v0.1.3
func CurrentOsMixTypes() []Variant
func (Variant) AllNameValues ¶
func (Variant) AllSysMatchingTypes ¶ added in v0.1.3
func (Variant) AllSysMatchingTypesMap ¶ added in v0.1.3
func (Variant) AsBasicByteEnumContractsBinder ¶
func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Variant) AsBasicEnumContractsBinder ¶
func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (*Variant) AsJsonContractsBinder ¶
func (it *Variant) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*Variant) AsJsonMarshaller ¶
func (it *Variant) AsJsonMarshaller() corejson.JsonMarshaller
func (Variant) DefaultCmdProcessName ¶ added in v0.1.2
func (Variant) IntegerEnumRanges ¶
func (Variant) IsAllLogically ¶ added in v0.2.7
func (Variant) IsAnyNamesOf ¶
func (Variant) IsAnyOsLogically ¶ added in v0.2.7
func (Variant) IsAnyValuesEqual ¶
func (Variant) IsArchLinux ¶ added in v0.3.6
func (Variant) IsByteValueEqual ¶
func (Variant) IsCurrentOs ¶ added in v0.1.3
func (Variant) IsMajorAtLeast ¶ added in v0.1.3
func (Variant) IsNameEqual ¶
func (Variant) IsRedHatEnterpriseLinux ¶ added in v0.1.3
func (Variant) IsUninitialized ¶
func (Variant) IsUnixLogically ¶
func (Variant) IsValueEqual ¶
func (*Variant) JsonParseSelfInject ¶
func (Variant) LinuxVendorType ¶ added in v0.1.3
func (it Variant) LinuxVendorType() linuxvendortype.Variant
func (Variant) MarshalJSON ¶
func (Variant) MaxValueString ¶
func (Variant) MinValueString ¶
func (Variant) OnlySupportedErr ¶
func (Variant) OnlySupportedMsgErr ¶
func (Variant) OsDetail ¶ added in v0.2.7
func (it Variant) OsDetail() *OperatingSystemDetail
func (Variant) OsDetailWithError ¶ added in v0.2.7
func (it Variant) OsDetailWithError() (*OperatingSystemDetail, error)
func (Variant) RangeNamesCsv ¶
func (Variant) RangesByte ¶
func (Variant) RangesDynamicMap ¶
func (Variant) ToNumberString ¶
func (*Variant) UnmarshalJSON ¶
func (Variant) UnmarshallEnumToValue ¶
func (Variant) ValueInt16 ¶
func (Variant) ValueInt32 ¶
func (Variant) ValueString ¶
func (Variant) ValueUInt16 ¶
type WindowsSystemDetail ¶ added in v0.1.3
type WindowsSystemDetail struct { WindowsVersion inttype.Variant // eg. 8, 10, 11 ServerVersion inttype.Variant // eg. 2016, 2019 CurrentVersion coreversion.Version // eg. 6.3 https://t.ly/XLFC CompiledVersion coreversion.Version ReleaseId inttype.Variant CurrentBuildId inttype.Variant BuildBranch strtype.Variant InstallType strtype.Variant SystemRoot strtype.Variant Edition strtype.Variant // example: "ServerStandard", "Professional", "Enterprise", "Workstation" CompositionEdition strtype.Variant // eg. "Enterprise" - For Windows 10, "ServerStandard" -- Windows Server IsServer bool // refers to Windows Server IsClient bool // refers to Windows 10 CompiledError error }
func (*WindowsSystemDetail) IsDefined ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsDefined() bool
func (*WindowsSystemDetail) IsDefinedPlus ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsDefinedPlus(isCondition bool) bool
func (*WindowsSystemDetail) IsNull ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsNull() bool
func (*WindowsSystemDetail) IsNullOr ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsNullOr(isCondition bool) bool
func (WindowsSystemDetail) IsWindows10 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindows10() bool
func (WindowsSystemDetail) IsWindows11 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindows11() bool
IsWindows11
https://t.ly/Jsr1, https://prnt.sc/wAZ5uQScNqk_
func (WindowsSystemDetail) IsWindows7 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindows7() bool
func (WindowsSystemDetail) IsWindows8 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindows8() bool
func (WindowsSystemDetail) IsWindowsEqual ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsEqual(number int) bool
func (WindowsSystemDetail) IsWindowsGreaterEqual ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsGreaterEqual(number int) bool
func (*WindowsSystemDetail) IsWindowsServerEqual ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsWindowsServerEqual(number int) bool
func (*WindowsSystemDetail) IsWindowsServerGreaterEqual ¶ added in v0.1.3
func (it *WindowsSystemDetail) IsWindowsServerGreaterEqual(number int) bool
func (WindowsSystemDetail) IsWindowsSever ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsSever() bool
func (WindowsSystemDetail) IsWindowsSever2016 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsSever2016() bool
func (WindowsSystemDetail) IsWindowsSever2019 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsSever2019() bool
func (WindowsSystemDetail) IsWindowsSeverGreaterEqual2016 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsSeverGreaterEqual2016() bool
func (WindowsSystemDetail) IsWindowsSeverGreaterEqual2019 ¶ added in v0.1.3
func (it WindowsSystemDetail) IsWindowsSeverGreaterEqual2019() bool
func (*WindowsSystemDetail) WinVer ¶ added in v0.1.3
func (it *WindowsSystemDetail) WinVer() inttype.Variant
Source Files ¶
- CurrentOsMixType.go
- CurrentOsMixTypes.go
- CurrentOsMixTypesMap.go
- CurrentOsTypesMustBePresent.go
- CurrentOsTypesNotContainsError.go
- GetCurrentOsDetail.go
- IsCentOs.go
- IsCurrentOsTypesContains.go
- IsDebian.go
- IsRedhat.go
- IsRunningInDockerContainer.go
- IsUbuntu.go
- Max.go
- Min.go
- New.go
- NewMust.go
- NewWindowsSystemDetailGetter_linux.go
- OperatingSystemDetail.go
- OsDetailWithErr.go
- RangesInvalidErr.go
- Variant.go
- WindowsSystemDetail.go
- all-interfaces.go
- all-regular-expressions.go
- consts.go
- generate.go
- getWinSysDetail.go
- readTrimmedFile.go
- vars.go
- windowsCurrentVersionRegistry.go
Click to show internal directories.
Click to hide internal directories.