ostype

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidOSTypeName

func IsValidOSTypeName(osType string) bool

IsValidOSTypeName returns true if osType is a valid os type name.

Types

type OSType

type OSType int
const (
	Unknown OSType = iota
	Ubuntu
	Windows
	OSX
	CentOS
	GenericLinux
	Kubernetes
)

func OSTypeForName

func OSTypeForName(name string) OSType

OSTypeForName return the named OS.

func (OSType) EquivalentTo

func (t OSType) EquivalentTo(t2 OSType) bool

EquivalentTo returns true if the OS type is equivalent to another OS type.

func (OSType) IsLinux

func (t OSType) IsLinux() bool

IsLinux returns true if the OS type is a Linux variant.

func (OSType) String

func (t OSType) String() string

Jump to

Keyboard shortcuts

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