Documentation ¶
Index ¶
- Variables
- func Cwd() string
- func DecodeBytesGB18030(b []byte) v.Result[string, error]
- func EnvIsSupport() bool
- func EnvIsSupportedArch() bool
- func EnvIsSupportedOS() bool
- func EnvProgramFiles() string
- func EnvSystemDrive() string
- func EnvSystemRoot() string
- func FileExist(path string) bool
- func FindBin(name string) string
- func GetPartition(exclude ...string) v.Result[[]Partition, error]
- func GetPartitionNoSystem(exclude ...string) v.Result[[]Partition, error]
- func GetSystemPartition() v.Result[Partition, error]
- func PathJoin(path ...string) string
- func PathResolve(path string) string
- type Partition
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 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 GetPartitionNoSystem ¶
func PathResolve ¶
Types ¶
type Partition ¶
type Partition = disk.PartitionStat
Click to show internal directories.
Click to hide internal directories.