os

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OS

type OS int
const (
	// UNDEFINED represents commands that are not defined because zero is the default value for int
	UNDEFINED OS = iota
	// LOCAL represents commands that are only used locally on the CLI and not sent to an Agent
	LOCAL
	// ALL represents commands that can be executed by Agents on any operating system
	ALL
	// WINDOWS represents commands that can be executed by Agents on Windows operating systems
	WINDOWS
	// LINUX represents commands that can be executed by Agents on Linux operating systems
	LINUX
	// MACOS represents commands that can be executed by Agents on macOS operating systems
	MACOS
	// DEBIAN represents commands that can be executed by Agents on Debian operating systems
	DEBIAN
)

os structure constants

func FromString

func FromString(operatingSystem string) OS

func (OS) String

func (o OS) String() string

String returns the string representation of the os type

Jump to

Keyboard shortcuts

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