package hostos
import "gvisor.dev/gvisor/pkg/hostos"
Package hostos contains utility functions for getting information about the host OS.
Index ¶
Types ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a semantic version of the form "%d.%d[.%d]".
func KernelVersion ¶
KernelVersion returns the version of the kernel using uname().
func (Version) AtLeast ¶
AtLeast returns whether vr is at least version major.minor.
func (Version) LessThan ¶
LessThan returns whether vr is less than version major.minor.
func (Version) String ¶
String implements fmt.Stringer.
Source Files ¶
hostos.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 hours ago –
Tools for package owners.