-
Notifications
You must be signed in to change notification settings - Fork 1
/
errs.go
27 lines (24 loc) · 1.26 KB
/
errs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2020 Apulis Technology Inc. All rights reserved.
package application
import (
"errors"
)
var (
ErrDeployExist = errors.New("application deploy exist")
ErrApplicationExist = errors.New("application exist")
ErrApplicationVersionExist = errors.New("application version exist")
ErrImageVersionNotExist = errors.New("image version not exist")
ErrUnDeploying = errors.New("undeploying")
ErrChangeAppVersionFailed = errors.New("change app version fail")
ErrDeleteStatusNotOffline = errors.New("delete failed! status not offline")
ErrDeleteStatusPublished = errors.New("delete failed! status is published")
ErrDeployStatusNotPublished = errors.New("deploy failed! status not published")
ErrWrongRestartPolicy = errors.New("wrong restart policy")
ErrNetworkPortmappingEmpty = errors.New("need port mapping")
ErrDeployPartFails = errors.New("part of deploy fails")
ErrDeployAllFails = errors.New("all of deploy fails")
ErrUpdatePartFails = errors.New("part of deploy update fails")
ErrUpdateAllFails = errors.New("all of deploy update fails")
ErrUnDeployPartFails = errors.New("part of undeploy fails")
ErrUnDeployAllFails = errors.New("all of undeploy fails")
)