v1

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 ErrorAccesstokenNotFound

func ErrorAccesstokenNotFound(format string, args ...interface{}) *errors.Error

func ErrorDeploykeyNotFound

func ErrorDeploykeyNotFound(format string, args ...interface{}) *errors.Error

func ErrorGroupNotFound

func ErrorGroupNotFound(format string, args ...interface{}) *errors.Error

func ErrorNoAuthorization

func ErrorNoAuthorization(format string, args ...interface{}) *errors.Error

func ErrorNodeNotFound

func ErrorNodeNotFound(format string, args ...interface{}) *errors.Error

func ErrorProjectNotFound

func ErrorProjectNotFound(format string, args ...interface{}) *errors.Error

func ErrorRefreshPermissionsAccessDenied

func ErrorRefreshPermissionsAccessDenied(format string, args ...interface{}) *errors.Error

func ErrorResourceNotFound

func ErrorResourceNotFound(format string, args ...interface{}) *errors.Error

func ErrorResourceNotMatch

func ErrorResourceNotMatch(format string, args ...interface{}) *errors.Error

func ErrorSecretNotFound

func ErrorSecretNotFound(format string, args ...interface{}) *errors.Error

func IsAccesstokenNotFound

func IsAccesstokenNotFound(err error) bool

func IsDeploykeyNotFound

func IsDeploykeyNotFound(err error) bool

func IsGroupNotFound

func IsGroupNotFound(err error) bool

func IsNoAuthorization

func IsNoAuthorization(err error) bool

func IsNodeNotFound

func IsNodeNotFound(err error) bool

func IsProjectNotFound

func IsProjectNotFound(err error) bool

func IsRefreshPermissionsAccessDenied

func IsRefreshPermissionsAccessDenied(err error) bool

func IsResourceNotFound

func IsResourceNotFound(err error) bool

func IsResourceNotMatch

func IsResourceNotMatch(err error) bool

func IsSecretNotFound

func IsSecretNotFound(err error) bool

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) 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

Jump to

Keyboard shortcuts

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