osrelease

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKernelVersion

func GetKernelVersion(ctx context.Context) (string, 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) string

Types

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