github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/rpc/errors.go (about)

     1  package rpc
     2  
     3  import "google.golang.org/grpc/codes"
     4  
     5  const (
     6  	// WatchServiceStatus .
     7  	WatchServiceStatus codes.Code = 1001
     8  
     9  	// ListNetworks .
    10  	ListNetworks codes.Code = 1011
    11  	// ConnectNetwork .
    12  	ConnectNetwork codes.Code = 1012
    13  	// DisconnectNetwork .
    14  	DisconnectNetwork codes.Code = 1013
    15  
    16  	// AddPod .
    17  	AddPod codes.Code = 1021
    18  	// RemovePod .
    19  	RemovePod codes.Code = 1022
    20  	// GetPod .
    21  	GetPod codes.Code = 1023
    22  	// ListPods .
    23  	ListPods codes.Code = 1024
    24  	// PodResource .
    25  	PodResource codes.Code = 1025
    26  
    27  	// AddNode .
    28  	AddNode codes.Code = 1031
    29  	// RemoveNode .
    30  	RemoveNode codes.Code = 1032
    31  	// ListPodNodes .
    32  	ListPodNodes codes.Code = 1033
    33  	// GetNode .
    34  	GetNode codes.Code = 1034
    35  	// SetNode .
    36  	SetNode codes.Code = 1035
    37  	// SetNodeStatus .
    38  	SetNodeStatus codes.Code = 1036
    39  	// GetNodeStatus .
    40  	GetNodeStatus codes.Code = 1038
    41  	// GetNodeResource .
    42  	GetNodeResource codes.Code = 1037
    43  	// GetNodeEngine .
    44  	GetNodeEngine codes.Code = 1038
    45  
    46  	// CalculateCapacity .
    47  	CalculateCapacity codes.Code = 1041
    48  
    49  	// GetWorkload .
    50  	GetWorkload codes.Code = 1051
    51  	// GetWorkloads .
    52  	GetWorkloads codes.Code = 1052
    53  	// ListWorkloads .
    54  	ListWorkloads codes.Code = 1053
    55  	// ListNodeWorkloads .
    56  	ListNodeWorkloads codes.Code = 1054
    57  	// GetWorkloadsStatus .
    58  	GetWorkloadsStatus codes.Code = 1055
    59  	// SetWorkloadsStatus .
    60  	SetWorkloadsStatus codes.Code = 1056
    61  	// RawEngine
    62  	RawEngineStatus codes.Code = 1057
    63  
    64  	// Copy .
    65  	Copy codes.Code = 1061
    66  	// Send .
    67  	Send codes.Code = 1062
    68  	// SendLargeFile .
    69  	SendLargeFile codes.Code = 1063
    70  
    71  	// BuildImage .
    72  	BuildImage codes.Code = 1071
    73  	// CacheImage .
    74  	CacheImage codes.Code = 1072
    75  	// RemoveImage .
    76  	RemoveImage codes.Code = 1073
    77  
    78  	// CreateWorkload .
    79  	CreateWorkload codes.Code = 1074
    80  	// ReplaceWorkload .
    81  	ReplaceWorkload codes.Code = 1075
    82  	// RemoveWorkload .
    83  	RemoveWorkload codes.Code = 1076
    84  	// DissociateWorkload .
    85  	DissociateWorkload codes.Code = 1077
    86  	// ControlWorkload .
    87  	ControlWorkload codes.Code = 1078
    88  	// ExecuteWorkload .
    89  	ExecuteWorkload codes.Code = 1079
    90  	// ReallocResource .
    91  	ReallocResource codes.Code = 10710
    92  	// LogStream .
    93  	LogStream codes.Code = 10711
    94  	// RunAndWait .
    95  	RunAndWait codes.Code = 10712
    96  	// ListImage .
    97  	ListImage codes.Code = 10713
    98  )