1 package errors 2 3 const ( 4 // KubernetesError generic error from the k8s API 5 KubernetesError = "Kubernetes Error" 6 // TODO -- check if actually not used 7 // // ObjectError is returned when there's a problem with the structure of the object, either for view requests or action requests 8 // ObjectError = "Object Error" 9 10 // ErrClusterAlreadyExists error return by bff when cluster already exists 11 ErrClusterAlreadyExists = "cluster already registered, please try again with a different name" 12 ) 13 14 // Error contains error information when an error occurs on the agent 15 type Error struct { 16 Status string `json:"status,omitempty"` 17 Message string `json:"message,omitempty"` 18 } 19