oasis_err

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SUCCESS          = 200
	ERROR            = 500
	INVALID_PARAMS   = 400
	ERROR_AUTH_TOKEN = 401

	//user
	PWD_INVALID  = 10001
	PWD_IS_EMPTY = 10002

	PWD_INVALID_OLD = 10003
	ACCOUNT_LOCK    = 10004
	//system
	DIR_ALREADY_EXISTS  = 20001
	FILE_ALREADY_EXISTS = 20002
	FILE_OR_DIR_EXISTS  = 20003
	PORT_IS_OCCUPIED    = 20004

	//zerotier
	GET_TOKEN_ERROR = 30001

	//app
	UNINSTALL_APP_ERROR = 50001
	PULL_IMAGE_ERROR    = 50002
	DEVICE_NOT_EXIST    = 50003

	//file
	FILE_DOES_NOT_EXIST = 60001
	FILE_READ_ERROR     = 60002

	//shortcuts
	SHORTCUTS_URL_ERROR = 70001
)

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:          "ok",
	ERROR:            "fail",
	INVALID_PARAMS:   "Invalid params",
	ERROR_AUTH_TOKEN: "error auth token",

	PWD_INVALID:     "Password invalid",
	PWD_IS_EMPTY:    "Password is empty",
	PWD_INVALID_OLD: "Old Password invalid",
	ACCOUNT_LOCK:    "Account Lock",

	DIR_ALREADY_EXISTS:  "Directory already exists",
	FILE_ALREADY_EXISTS: "File already exists",
	FILE_OR_DIR_EXISTS:  "File or directory already exists",
	PORT_IS_OCCUPIED:    "Port is occupied",

	GET_TOKEN_ERROR: "Get token error,Please log in to zerotier's official website to confirm whether the account is available",

	UNINSTALL_APP_ERROR: "uninstall app error",
	PULL_IMAGE_ERROR:    "pull image error",
	DEVICE_NOT_EXIST:    "device not exist",

	FILE_DOES_NOT_EXIST: "file does not exist",

	FILE_READ_ERROR:     "file read error",
	SHORTCUTS_URL_ERROR: "url error",
}

Functions

func GetMsg

func GetMsg(code int) string

获取错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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