os

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChmodX

func ChmodX(filePath string) error

func DownloadFile

func DownloadFile(ctx context.Context, url string, filename string) error

Types

type OperatingSystem

type OperatingSystem string
const (
	Linux_64_86   OperatingSystem = "linux-amd64"
	Linux_arm64   OperatingSystem = "linux-arm64"
	Darwin_64_86  OperatingSystem = "darwin-amd64"
	Darwin_arm64  OperatingSystem = "darwin-arm64"
	Windows_64_86 OperatingSystem = "windows-amd64"
	Windows_arm64 OperatingSystem = "windows-arm64"
)

func GetOperatingSystem

func GetOperatingSystem() (*OperatingSystem, error)

func GetOperatingSystemWindows

func GetOperatingSystemWindows() (*OperatingSystem, error)

func OSFromEchoProcessor

func OSFromEchoProcessor(output string) (*OperatingSystem, error)

func OSFromUnameA

func OSFromUnameA(unameA string) (*OperatingSystem, error)

Jump to

Keyboard shortcuts

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