kernel

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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_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

type Version struct {
	Code kernel.Version
	// contains filtered or unexported fields
}

Version defines a kernel version helper

func NewKernelVersion

func NewKernelVersion() (*Version, error)

NewKernelVersion returns a new kernel version helper

func (*Version) IsOracleUEKKernel

func (k *Version) IsOracleUEKKernel() bool

IsOracleUEKKernel returns whether the kernel is an oracle uek kernel

func (*Version) IsRH7Kernel

func (k *Version) IsRH7Kernel() bool

IsRH7Kernel returns whether the kernel is a rh7 kernel

func (*Version) IsRH8Kernel

func (k *Version) IsRH8Kernel() bool

IsRH8Kernel returns whether the kernel is a rh8 kernel

func (*Version) IsSLES12Kernel

func (k *Version) IsSLES12Kernel() bool

IsSLES12Kernel returns whether the kernel is a sles 12 kernel

func (*Version) IsSLES15Kernel

func (k *Version) IsSLES15Kernel() bool

IsSLES15Kernel returns whether the kernel is a sles 15 kernel

func (*Version) IsSuseKernel

func (k *Version) IsSuseKernel() bool

IsSuseKernel returns whether the kernel is a suse kernel

func (*Version) String

func (k *Version) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL