osrelease

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelVersion added in v1.0.9

type KernelVersion struct {
	Version   string
	BuiltDate time.Time
}

func GetKernelVersion

func GetKernelVersion(ctx context.Context) (KernelVersion, error)

GetKernelVersion get kernel version from host machine using `docker run` command so that to adapt to docker-desktop kata-container is not taken into account yet

func KernelParse

func KernelParse(kernel string) KernelVersion

type OsVersion

type OsVersion struct {
	NAME       string `json:"name"`
	OID        string `json:"oid"`
	VERSION    string `json:"version"`
	VERSION_ID string `json:"version___id"`
}

func DetectOs

func DetectOs(ctx context.Context, m layer.Manifest) (*OsVersion, error)

DetectOs get os version

Jump to

Keyboard shortcuts

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