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