workspace

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCancelObserver added in v2.8.0

func AddCancelObserver(observer func(s os.Signal))

func Cancel

func Cancel()

func GetAccount

func GetAccount() (account.Account, *data.CodeError)

func GetConfig

func GetConfig() *config.Config

GetConfig 获取之前需要先 Load

func GetContext

func GetContext() context.Context

GetContext 统一使用一个 context

func GetJobDir added in v2.8.0

func GetJobDir() string

func GetLogConfig

func GetLogConfig() *config.LogSetting

func GetMac

func GetMac() (mac *qbox.Mac, err *data.CodeError)

func GetStorageConfig

func GetStorageConfig() *storage.Config

func GetUserDir added in v2.8.0

func GetUserDir() string

func GetUserName added in v2.9.2

func GetUserName() string

func GetWorkspace

func GetWorkspace() string

func IsCmdInterrupt

func IsCmdInterrupt() bool

func Load

func Load(info LoadInfo) (err *data.CodeError)

Load 加载工作环境

Types

type LoadInfo

type LoadInfo struct {
	UserConfigPath string
	CmdConfig      *config.Config
	WorkspacePath  string
	JobPathBuilder func(cmdPath string) string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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