Documentation ¶
Index ¶
- Variables
- func ErrorAccesstokenNotFound(format string, args ...interface{}) *errors.Error
- func ErrorDeploykeyNotFound(format string, args ...interface{}) *errors.Error
- func ErrorGroupNotFound(format string, args ...interface{}) *errors.Error
- func ErrorNoAuthorization(format string, args ...interface{}) *errors.Error
- func ErrorNodeNotFound(format string, args ...interface{}) *errors.Error
- func ErrorProjectNotFound(format string, args ...interface{}) *errors.Error
- func ErrorRefreshPermissionsAccessDenied(format string, args ...interface{}) *errors.Error
- func ErrorResourceNotFound(format string, args ...interface{}) *errors.Error
- func ErrorResourceNotMatch(format string, args ...interface{}) *errors.Error
- func ErrorSecretNotFound(format string, args ...interface{}) *errors.Error
- func IsAccesstokenNotFound(err error) bool
- func IsDeploykeyNotFound(err error) bool
- func IsGroupNotFound(err error) bool
- func IsNoAuthorization(err error) bool
- func IsNodeNotFound(err error) bool
- func IsProjectNotFound(err error) bool
- func IsRefreshPermissionsAccessDenied(err error) bool
- func IsResourceNotFound(err error) bool
- func IsResourceNotMatch(err error) bool
- func IsSecretNotFound(err error) bool
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReason_name = map[int32]string{ 0: "PROJECT_NOT_FOUND", 1: "GROUP_NOT_FOUND", 2: "NODE_NOT_FOUND", 3: "RESOURCE_NOT_FOUND", 4: "RESOURCE_NOT_MATCH", 5: "NO_AUTHORIZATION", 6: "DEPLOYKEY_NOT_FOUND", 7: "SECRET_NOT_FOUND", 8: "ACCESSTOKEN_NOT_FOUND", 9: "REFRESH_PERMISSIONS_ACCESS_DENIED", } ErrorReason_value = map[string]int32{ "PROJECT_NOT_FOUND": 0, "GROUP_NOT_FOUND": 1, "NODE_NOT_FOUND": 2, "RESOURCE_NOT_FOUND": 3, "RESOURCE_NOT_MATCH": 4, "NO_AUTHORIZATION": 5, "DEPLOYKEY_NOT_FOUND": 6, "SECRET_NOT_FOUND": 7, "ACCESSTOKEN_NOT_FOUND": 8, "REFRESH_PERMISSIONS_ACCESS_DENIED": 9, } )
Enum value maps for ErrorReason.
View Source
var File_common_v1_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorDeploykeyNotFound ¶
func ErrorGroupNotFound ¶
func ErrorNoAuthorization ¶
func ErrorNodeNotFound ¶
func ErrorProjectNotFound ¶
func ErrorResourceNotFound ¶
func ErrorResourceNotMatch ¶
func ErrorSecretNotFound ¶
func IsAccesstokenNotFound ¶
func IsDeploykeyNotFound ¶
func IsGroupNotFound ¶
func IsNoAuthorization ¶
func IsNodeNotFound ¶
func IsProjectNotFound ¶
func IsResourceNotFound ¶
func IsResourceNotMatch ¶
func IsSecretNotFound ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_PROJECT_NOT_FOUND ErrorReason = 0 ErrorReason_GROUP_NOT_FOUND ErrorReason = 1 ErrorReason_NODE_NOT_FOUND ErrorReason = 2 ErrorReason_RESOURCE_NOT_FOUND ErrorReason = 3 ErrorReason_RESOURCE_NOT_MATCH ErrorReason = 4 ErrorReason_NO_AUTHORIZATION ErrorReason = 5 ErrorReason_DEPLOYKEY_NOT_FOUND ErrorReason = 6 ErrorReason_SECRET_NOT_FOUND ErrorReason = 7 ErrorReason_ACCESSTOKEN_NOT_FOUND ErrorReason = 8 ErrorReason_REFRESH_PERMISSIONS_ACCESS_DENIED ErrorReason = 9 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.