modular split: move invoke, auth, utils, function CRUD handlers to separate files (2026-05-01)

This commit is contained in:
“Naeel”
2026-05-01 12:22:23 +04:00
parent 9995df60d6
commit f1b0369737
5 changed files with 148 additions and 511 deletions
+32
View File
@@ -0,0 +1,32 @@
package api
import (
"context"
"encoding/json"
"fmt"
"strings"
"time"
"fission-console/internal/fission"
"fission-console/internal/model"
"fission-console/internal/runtime"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
)
func (s *Server) handleCreateFunction(w http.ResponseWriter, r *http.Request) {
// ...existing code...
}
func (s *Server) handleGetFunction(w http.ResponseWriter, r *http.Request, name string) {
// ...existing code...
}
func (s *Server) handleUpdateFunctionCode(w http.ResponseWriter, r *http.Request, name string) {
// ...existing code...
}
func (s *Server) handleDeleteFunction(w http.ResponseWriter, r *http.Request, name string) {
// ...existing code...
}