workspace

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func GetLogConfig

func GetLogConfig() *config.LogSetting

func GetMac

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

func GetStorageConfig

func GetStorageConfig() *storage.Config

func GetUserPath

func GetUserPath() 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
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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