env

package
v0.0.0-...-ee163f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VendorName     = "Edgeless"
	ErrUnsupported = errors.New("error: unsuported platform")
)
View Source
var (
	ErrNotFoundSystemDrive = errors.New("error: not found system drive")
)

Functions

func Cwd

func Cwd() string

func DecodeBytesGB18030

func DecodeBytesGB18030(b []byte) v.Result[string, error]

func EnvIsSupport

func EnvIsSupport() bool

func EnvIsSupportedArch

func EnvIsSupportedArch() bool

func EnvIsSupportedOS

func EnvIsSupportedOS() bool

func EnvProgramFiles

func EnvProgramFiles() string

func EnvSystemDrive

func EnvSystemDrive() string

func EnvSystemRoot

func EnvSystemRoot() string

func FileExist

func FileExist(path string) bool

func FindBin

func FindBin(name string) string

func GetPartition

func GetPartition(exclude ...string) v.Result[[]Partition, error]

func GetPartitionNoSystem

func GetPartitionNoSystem(exclude ...string) v.Result[[]Partition, error]

func GetSystemPartition

func GetSystemPartition() v.Result[Partition, error]

func PathJoin

func PathJoin(path ...string) string

func PathResolve

func PathResolve(path string) string

Types

type Partition

type Partition = disk.PartitionStat

Jump to

Keyboard shortcuts

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