Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Kernel4_12 is the KernelVersion representation of kernel version 4.12 Kernel4_12 = kernel.VersionCode(4, 12, 0) //nolint:deadcode,unused // Kernel4_13 is the KernelVersion representation of kernel version 4.13 Kernel4_13 = kernel.VersionCode(4, 13, 0) //nolint:deadcode,unused // Kernel4_15 is the KernelVersion representation of kernel version 4.15 Kernel4_15 = kernel.VersionCode(4, 15, 0) //nolint:deadcode,unused // Kernel4_16 is the KernelVersion representation of kernel version 4.16 Kernel4_16 = kernel.VersionCode(4, 16, 0) //nolint:deadcode,unused // Kernel5_0 is the KernelVersion representation of kernel version 5.0 Kernel5_0 = kernel.VersionCode(5, 0, 0) //nolint:deadcode,unused // Kernel5_1 is the KernelVersion representation of kernel version 5.1 Kernel5_1 = kernel.VersionCode(5, 1, 0) //nolint:deadcode,unused // Kernel5_3 is the KernelVersion representation of kernel version 5.3 Kernel5_3 = kernel.VersionCode(5, 3, 0) //nolint:deadcode,unused // Kernel5_4 is the KernelVersion representation of kernel version 5.4 Kernel5_4 = kernel.VersionCode(5, 4, 0) //nolint:deadcode,unused // Kernel5_12 is the KernelVersion representation of kernel version 5.12 Kernel5_12 = kernel.VersionCode(5, 12, 0) //nolint:deadcode,unused // Kernel5_13 is the KernelVersion representation of kernel version 5.13 Kernel5_13 = kernel.VersionCode(5, 13, 0) //nolint:deadcode,unused )
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version defines a kernel version helper
func NewKernelVersion ¶
NewKernelVersion returns a new kernel version helper
func (*Version) IsOracleUEKKernel ¶
IsOracleUEKKernel returns whether the kernel is an oracle uek kernel
func (*Version) IsRH7Kernel ¶
IsRH7Kernel returns whether the kernel is a rh7 kernel
func (*Version) IsRH8Kernel ¶
IsRH8Kernel returns whether the kernel is a rh8 kernel
func (*Version) IsSLES12Kernel ¶
IsSLES12Kernel returns whether the kernel is a sles 12 kernel
func (*Version) IsSLES15Kernel ¶
IsSLES15Kernel returns whether the kernel is a sles 15 kernel
func (*Version) IsSuseKernel ¶
IsSuseKernel returns whether the kernel is a suse kernel
Click to show internal directories.
Click to hide internal directories.