mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
21 lines
1.3 KiB
Go
21 lines
1.3 KiB
Go
package self_check
|
|
|
|
import "github.com/uozi-tech/cosy"
|
|
|
|
var (
|
|
e = cosy.NewErrorScope("self_check")
|
|
ErrTaskNotFound = e.New(4040, "Task not found")
|
|
ErrFailedToReadNginxConf = e.New(4041, "Failed to read nginx.conf")
|
|
ErrParseNginxConf = e.New(5001, "Failed to parse nginx.conf")
|
|
ErrNginxConfNoHttpBlock = e.New(4042, "Nginx conf no http block")
|
|
ErrNginxConfNotIncludeSitesEnabled = e.New(4043, "Nginx conf not include sites-enabled")
|
|
ErrorNginxConfNoStreamBlock = e.New(4044, "Nginx conf no stream block")
|
|
ErrNginxConfNotIncludeStreamEnabled = e.New(4045, "Nginx conf not include stream-enabled")
|
|
ErrFailedToCreateBackup = e.New(5002, "Failed to create backup")
|
|
ErrSitesAvailableNotExist = e.New(4046, "Sites-available directory not exist")
|
|
ErrSitesEnabledNotExist = e.New(4047, "Sites-enabled directory not exist")
|
|
ErrStreamAvailableNotExist = e.New(4048, "Streams-available directory not exist")
|
|
ErrStreamEnabledNotExist = e.New(4049, "Streams-enabled directory not exist")
|
|
ErrNginxConfNotIncludeConfD = e.New(4050, "Nginx conf not include conf.d directory")
|
|
ErrDockerSocketNotExist = e.New(4051, "Docker socket not exist")
|
|
)
|