Documentation
¶
Index ¶
- type APIServer
- func (s *APIServer) BuildConfigDumpResponse(log *slog.Logger) (*adminapi.ConfigDumpResponse, error)
- func (s *APIServer) CreateAPIKey(c *gin.Context, id string)
- func (s *APIServer) CreateLLMProvider(c *gin.Context)
- func (s *APIServer) CreateLLMProviderAPIKey(c *gin.Context, id string)
- func (s *APIServer) CreateLLMProviderTemplate(c *gin.Context)
- func (s *APIServer) CreateLLMProxy(c *gin.Context)
- func (s *APIServer) CreateLLMProxyAPIKey(c *gin.Context, id string)
- func (s *APIServer) CreateMCPProxy(c *gin.Context)
- func (s *APIServer) CreateSecret(c *gin.Context)
- func (s *APIServer) CreateSubscription(c *gin.Context)
- func (s *APIServer) CreateSubscriptionPlan(c *gin.Context)
- func (s *APIServer) CreateWebBrokerAPIKey(c *gin.Context, id string)
- func (s *APIServer) CreateWebBrokerApi(c *gin.Context)
- func (s *APIServer) CreateWebSubAPI(c *gin.Context)
- func (s *APIServer) CreateWebSubAPIKey(c *gin.Context, id string)
- func (s *APIServer) DeleteCertificate(c *gin.Context, id string)
- func (s *APIServer) DeleteLLMProvider(c *gin.Context, id string)
- func (s *APIServer) DeleteLLMProviderTemplate(c *gin.Context, id string)
- func (s *APIServer) DeleteLLMProxy(c *gin.Context, id string)
- func (s *APIServer) DeleteMCPProxy(c *gin.Context, id string)
- func (s *APIServer) DeleteSecret(c *gin.Context, id string)
- func (s *APIServer) DeleteSubscription(c *gin.Context, subscriptionId string)
- func (s *APIServer) DeleteSubscriptionPlan(c *gin.Context, planId string)
- func (s *APIServer) DeleteWebBrokerApiById(c *gin.Context, id string)
- func (s *APIServer) DeleteWebSubAPI(c *gin.Context, id string)
- func (s *APIServer) GetAPIByNameVersion(c *gin.Context, name string, version string)
- func (s *APIServer) GetConfigDump(c *gin.Context)
- func (s *APIServer) GetLLMProviderById(c *gin.Context, id string)
- func (s *APIServer) GetLLMProviderTemplateById(c *gin.Context, id string)
- func (s *APIServer) GetLLMProxyById(c *gin.Context, id string)
- func (s *APIServer) GetMCPProxyById(c *gin.Context, id string)
- func (s *APIServer) GetSecret(c *gin.Context, id string)
- func (s *APIServer) GetSubscription(c *gin.Context, subscriptionId string)
- func (s *APIServer) GetSubscriptionPlan(c *gin.Context, planId string)
- func (s *APIServer) GetWebBrokerApiById(c *gin.Context, id string)
- func (s *APIServer) GetWebSubAPIById(c *gin.Context, id string)
- func (s *APIServer) GetXDSSyncStatus(c *gin.Context)
- func (s *APIServer) GetXDSSyncStatusResponse() adminapi.XDSSyncStatusResponse
- func (s *APIServer) ListAPIKeys(c *gin.Context, id string)
- func (s *APIServer) ListCertificates(c *gin.Context)
- func (s *APIServer) ListLLMProviderAPIKeys(c *gin.Context, id string)
- func (s *APIServer) ListLLMProviderTemplates(c *gin.Context, params api.ListLLMProviderTemplatesParams)
- func (s *APIServer) ListLLMProviders(c *gin.Context, params api.ListLLMProvidersParams)
- func (s *APIServer) ListLLMProxies(c *gin.Context, params api.ListLLMProxiesParams)
- func (s *APIServer) ListLLMProxyAPIKeys(c *gin.Context, id string)
- func (s *APIServer) ListMCPProxies(c *gin.Context, params api.ListMCPProxiesParams)
- func (s *APIServer) ListSecrets(c *gin.Context)
- func (s *APIServer) ListSubscriptionPlans(c *gin.Context)
- func (s *APIServer) ListSubscriptions(c *gin.Context, params api.ListSubscriptionsParams)
- func (s *APIServer) ListWebBrokerAPIKeys(c *gin.Context, id string)
- func (s *APIServer) ListWebBrokerApis(c *gin.Context, params api.ListWebBrokerApisParams)
- func (s *APIServer) ListWebSubAPIKeys(c *gin.Context, id string)
- func (s *APIServer) ListWebSubAPIs(c *gin.Context, params api.ListWebSubAPIsParams)
- func (s *APIServer) RegenerateAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RegenerateLLMProviderAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RegenerateLLMProxyAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RegenerateWebBrokerAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RegenerateWebSubAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) ReloadCertificates(c *gin.Context)
- func (s *APIServer) RevokeAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RevokeLLMProviderAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RevokeLLMProxyAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RevokeWebBrokerAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) RevokeWebSubAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) SearchDeployments(c *gin.Context, kind string)
- func (s *APIServer) UpdateAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) UpdateLLMProvider(c *gin.Context, id string)
- func (s *APIServer) UpdateLLMProviderAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) UpdateLLMProviderTemplate(c *gin.Context, id string)
- func (s *APIServer) UpdateLLMProxy(c *gin.Context, id string)
- func (s *APIServer) UpdateLLMProxyAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) UpdateMCPProxy(c *gin.Context, id string)
- func (s *APIServer) UpdateSecret(c *gin.Context, id string)
- func (s *APIServer) UpdateSubscription(c *gin.Context, subscriptionId string)
- func (s *APIServer) UpdateSubscriptionPlan(c *gin.Context, planId string)
- func (s *APIServer) UpdateWebBrokerAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) UpdateWebSubAPI(c *gin.Context, id string)
- func (s *APIServer) UpdateWebSubAPIKey(c *gin.Context, id string, apiKeyName string)
- func (s *APIServer) UploadCertificate(c *gin.Context)
- type CertificateResponse
- type ListCertificatesResponse
- type RestAPIHandler
- func (h *RestAPIHandler) CreateRestAPI(c *gin.Context)
- func (h *RestAPIHandler) DeleteRestAPI(c *gin.Context, id string)
- func (h *RestAPIHandler) GetRestAPIById(c *gin.Context, id string)
- func (h *RestAPIHandler) ListRestAPIs(c *gin.Context, params api.ListRestAPIsParams)
- func (h *RestAPIHandler) UpdateRestAPI(c *gin.Context, id string)
- type UploadCertificateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
*RestAPIHandler // embedded — promotes CreateRestAPI, ListRestAPIs, GetRestAPIById, UpdateRestAPI, DeleteRestAPI
// contains filtered or unexported fields
}
APIServer implements the generated ServerInterface
func NewAPIServer ¶
func NewAPIServer( store *storage.ConfigStore, db storage.Storage, snapshotManager *xds.SnapshotManager, policyManager *policyxds.PolicyManager, lazyResourceManager *lazyresourcexds.LazyResourceStateManager, logger *slog.Logger, controlPlaneClient controlplane.ControlPlaneClient, policyDefinitions map[string]models.PolicyDefinition, templateDefinitions map[string]*api.LLMProviderTemplate, validator config.Validator, apiKeyXDSManager *apikeyxds.APIKeyStateManager, systemConfig *config.Config, eventHub eventhub.EventHub, subscriptionSnapshotUpdater utils.SubscriptionSnapshotUpdater, secretService *secrets.SecretService, restAPIService *restapi.RestAPIService, ) *APIServer
NewAPIServer creates a new API server with dependencies
func (*APIServer) BuildConfigDumpResponse ¶
BuildConfigDumpResponse builds the complete configuration dump response payload.
func (*APIServer) CreateAPIKey ¶
CreateAPIKey implements ServerInterface.CreateAPIKey (POST /apis/{id}/api-keys) Handles both local key generation and external key injection based on request payload
func (*APIServer) CreateLLMProvider ¶
CreateLLMProvider implements ServerInterface.CreateLLMProvider (POST /llm-providers)
func (*APIServer) CreateLLMProviderAPIKey ¶
CreateLLMProviderAPIKey implements ServerInterface.CreateLLMProviderAPIKey (POST /llm-providers/{id}/api-keys)
func (*APIServer) CreateLLMProviderTemplate ¶
CreateLLMProviderTemplate implements ServerInterface.CreateLLMProviderTemplate (POST /llm-provider-templates)
func (*APIServer) CreateLLMProxy ¶
CreateLLMProxy implements ServerInterface.CreateLLMProxy (POST /llm-proxies)
func (*APIServer) CreateLLMProxyAPIKey ¶
CreateLLMProxyAPIKey implements ServerInterface.CreateLLMProxyAPIKey (POST /llm-proxies/{id}/api-keys)
func (*APIServer) CreateMCPProxy ¶
CreateMCPProxy implements ServerInterface.CreateMCPProxy (POST /mcp-proxies)
func (*APIServer) CreateSecret ¶
CreateSecret handles POST /secrets
func (*APIServer) CreateSubscription ¶
CreateSubscription implements ServerInterface.CreateSubscription (POST /subscriptions)
func (*APIServer) CreateSubscriptionPlan ¶
CreateSubscriptionPlan implements ServerInterface.CreateSubscriptionPlan (POST /subscription-plans)
func (*APIServer) CreateWebBrokerAPIKey ¶
CreateWebBrokerAPIKey implements ServerInterface.CreateWebBrokerAPIKey (POST /webbroker-apis/{id}/api-keys)
func (*APIServer) CreateWebBrokerApi ¶
CreateWebBrokerApi handles POST /webbroker-apis
func (*APIServer) CreateWebSubAPI ¶
CreateWebSubAPI implements ServerInterface.CreateWebSubAPI (POST /websub-apis)
func (*APIServer) CreateWebSubAPIKey ¶
CreateWebSubAPIKey implements ServerInterface.CreateWebSubAPIKey (POST /websub-apis/{id}/api-keys)
func (*APIServer) DeleteCertificate ¶
DeleteCertificate deletes a certificate by ID DELETE /certificates/:id
func (*APIServer) DeleteLLMProvider ¶
DeleteLLMProvider implements ServerInterface.DeleteLLMProvider (DELETE /llm-providers/{id})
func (*APIServer) DeleteLLMProviderTemplate ¶
DeleteLLMProviderTemplate implements ServerInterface.DeleteLLMProviderTemplate (DELETE /llm-provider-templates/{id})
func (*APIServer) DeleteLLMProxy ¶
DeleteLLMProxy implements ServerInterface.DeleteLLMProxy (DELETE /llm-proxies/{id})
func (*APIServer) DeleteMCPProxy ¶
DeleteMCPProxy implements ServerInterface.DeleteMCPProxy (DELETE /mcp-proxies/{handle})
func (*APIServer) DeleteSecret ¶
DeleteSecret handles DELETE /secrets/{id}
func (*APIServer) DeleteSubscription ¶
DeleteSubscription implements ServerInterface.DeleteSubscription (DELETE /subscriptions/{subscriptionId})
func (*APIServer) DeleteSubscriptionPlan ¶
DeleteSubscriptionPlan implements ServerInterface.DeleteSubscriptionPlan (DELETE /subscription-plans/{planId})
func (*APIServer) DeleteWebBrokerApiById ¶
DeleteWebBrokerApiById handles DELETE /webbroker-apis/{id}
func (*APIServer) DeleteWebSubAPI ¶
DeleteWebSubAPI implements ServerInterface.DeleteWebSubAPI (DELETE /websub-apis/{id})
func (*APIServer) GetAPIByNameVersion ¶
GetAPIByNameVersion implements ServerInterface.GetAPIByNameVersion (GET /apis/{name}/{version})
func (*APIServer) GetConfigDump ¶
GetConfigDump implements the GET /config_dump endpoint
func (*APIServer) GetLLMProviderById ¶
GetLLMProviderById implements ServerInterface.GetLLMProviderById (GET /llm-providers/{id})
func (*APIServer) GetLLMProviderTemplateById ¶
GetLLMProviderTemplateById implements ServerInterface.GetLLMProviderTemplateById (GET /llm-provider-templates/{id})
func (*APIServer) GetLLMProxyById ¶
GetLLMProxyById implements ServerInterface.GetLLMProxyById (GET /llm-proxies/{id})
func (*APIServer) GetMCPProxyById ¶
GetMCPProxyById implements ServerInterface.GetMCPProxyById (GET /mcp-proxies/{id})
func (*APIServer) GetSubscription ¶
GetSubscription implements ServerInterface.GetSubscription (GET /subscriptions/{subscriptionId})
func (*APIServer) GetSubscriptionPlan ¶
GetSubscriptionPlan implements ServerInterface.GetSubscriptionPlan (GET /subscription-plans/{planId})
func (*APIServer) GetWebBrokerApiById ¶
GetWebBrokerApiById handles GET /webbroker-apis/{id}
func (*APIServer) GetWebSubAPIById ¶
GetWebSubAPIById implements ServerInterface.GetWebSubAPIById (GET /websub-apis/{id})
func (*APIServer) GetXDSSyncStatus ¶
GetXDSSyncStatus implements the GET /xds_sync_status endpoint.
func (*APIServer) GetXDSSyncStatusResponse ¶
func (s *APIServer) GetXDSSyncStatusResponse() adminapi.XDSSyncStatusResponse
GetXDSSyncStatusResponse builds the xDS sync status response payload.
func (*APIServer) ListAPIKeys ¶
ListAPIKeys implements ServerInterface.ListAPIKeys (GET /apis/{id}/api-keys)
func (*APIServer) ListCertificates ¶
ListCertificates lists all custom certificates GET /certificates
func (*APIServer) ListLLMProviderAPIKeys ¶
ListLLMProviderAPIKeys implements ServerInterface.ListLLMProviderAPIKeys (GET /llm-providers/{id}/api-keys)
func (*APIServer) ListLLMProviderTemplates ¶
func (s *APIServer) ListLLMProviderTemplates(c *gin.Context, params api.ListLLMProviderTemplatesParams)
ListLLMProviderTemplates implements ServerInterface.ListLLMProviderTemplates (GET /llm-providers/templates)
func (*APIServer) ListLLMProviders ¶
func (s *APIServer) ListLLMProviders(c *gin.Context, params api.ListLLMProvidersParams)
ListLLMProviders implements ServerInterface.ListLLMProviders (GET /llm-providers)
func (*APIServer) ListLLMProxies ¶
func (s *APIServer) ListLLMProxies(c *gin.Context, params api.ListLLMProxiesParams)
ListLLMProxies implements ServerInterface.ListLLMProxies (GET /llm-proxies)
func (*APIServer) ListLLMProxyAPIKeys ¶
ListLLMProxyAPIKeys implements ServerInterface.ListLLMProxyAPIKeys (GET /llm-proxies/{id}/api-keys)
func (*APIServer) ListMCPProxies ¶
func (s *APIServer) ListMCPProxies(c *gin.Context, params api.ListMCPProxiesParams)
ListMCPProxies implements ServerInterface.ListMCPProxies (GET /mcp-proxies)
func (*APIServer) ListSecrets ¶
ListSecrets implements ServerInterface.ListSecrets (GET /secrets)
func (*APIServer) ListSubscriptionPlans ¶
ListSubscriptionPlans implements ServerInterface.ListSubscriptionPlans (GET /subscription-plans)
func (*APIServer) ListSubscriptions ¶
func (s *APIServer) ListSubscriptions(c *gin.Context, params api.ListSubscriptionsParams)
ListSubscriptions implements ServerInterface.ListSubscriptions (GET /subscriptions)
func (*APIServer) ListWebBrokerAPIKeys ¶
ListWebBrokerAPIKeys implements ServerInterface.ListWebBrokerAPIKeys (GET /webbroker-apis/{id}/api-keys)
func (*APIServer) ListWebBrokerApis ¶
func (s *APIServer) ListWebBrokerApis(c *gin.Context, params api.ListWebBrokerApisParams)
ListWebBrokerApis handles GET /webbroker-apis
func (*APIServer) ListWebSubAPIKeys ¶
ListWebSubAPIKeys implements ServerInterface.ListWebSubAPIKeys (GET /websub-apis/{id}/api-keys)
func (*APIServer) ListWebSubAPIs ¶
func (s *APIServer) ListWebSubAPIs(c *gin.Context, params api.ListWebSubAPIsParams)
ListWebSubAPIs implements ServerInterface.ListWebSubAPIs (GET /websub-apis)
func (*APIServer) RegenerateAPIKey ¶
RegenerateAPIKey implements ServerInterface.RegenerateAPIKey (POST /apis/{id}/api-keys/{apiKeyName}/regenerate)
func (*APIServer) RegenerateLLMProviderAPIKey ¶
RegenerateLLMProviderAPIKey implements ServerInterface.RegenerateLLMProviderAPIKey (POST /llm-providers/{id}/api-keys/{apiKeyName}/regenerate)
func (*APIServer) RegenerateLLMProxyAPIKey ¶
RegenerateLLMProxyAPIKey implements ServerInterface.RegenerateLLMProxyAPIKey (POST /llm-proxies/{id}/api-keys/{apiKeyName}/regenerate)
func (*APIServer) RegenerateWebBrokerAPIKey ¶
RegenerateWebBrokerAPIKey implements ServerInterface.RegenerateWebBrokerAPIKey (POST /webbroker-apis/{id}/api-keys/{apiKeyName}/regenerate)
func (*APIServer) RegenerateWebSubAPIKey ¶
RegenerateWebSubAPIKey implements ServerInterface.RegenerateWebSubAPIKey (POST /websub-apis/{id}/api-keys/{apiKeyName}/regenerate)
func (*APIServer) ReloadCertificates ¶
ReloadCertificates manually triggers certificate reload and SDS update POST /certificates/reload
func (*APIServer) RevokeAPIKey ¶
RevokeAPIKey implements ServerInterface.RevokeAPIKey (DELETE /apis/{id}/api-keys/{apiKeyName})
func (*APIServer) RevokeLLMProviderAPIKey ¶
RevokeLLMProviderAPIKey implements ServerInterface.RevokeLLMProviderAPIKey (DELETE /llm-providers/{id}/api-keys/{apiKeyName})
func (*APIServer) RevokeLLMProxyAPIKey ¶
RevokeLLMProxyAPIKey implements ServerInterface.RevokeLLMProxyAPIKey (DELETE /llm-proxies/{id}/api-keys/{apiKeyName})
func (*APIServer) RevokeWebBrokerAPIKey ¶
RevokeWebBrokerAPIKey implements ServerInterface.RevokeWebBrokerAPIKey (DELETE /webbroker-apis/{id}/api-keys/{apiKeyName})
func (*APIServer) RevokeWebSubAPIKey ¶
RevokeWebSubAPIKey implements ServerInterface.RevokeWebSubAPIKey (DELETE /websub-apis/{id}/api-keys/{apiKeyName})
func (*APIServer) SearchDeployments ¶
func (*APIServer) UpdateAPIKey ¶
UpdateAPIKey implements ServerInterface.UpdateAPIKey (PUT /apis/{id}/api-keys/{apiKeyName})
func (*APIServer) UpdateLLMProvider ¶
UpdateLLMProvider implements ServerInterface.UpdateLLMProvider (PUT /llm-providers/{id})
func (*APIServer) UpdateLLMProviderAPIKey ¶
UpdateLLMProviderAPIKey implements ServerInterface.UpdateLLMProviderAPIKey (PUT /llm-providers/{id}/api-keys/{apiKeyName})
func (*APIServer) UpdateLLMProviderTemplate ¶
UpdateLLMProviderTemplate implements ServerInterface.UpdateLLMProviderTemplate (PUT /llm-provider-templates/{id})
func (*APIServer) UpdateLLMProxy ¶
UpdateLLMProxy implements ServerInterface.UpdateLLMProxy (PUT /llm-proxies/{id})
func (*APIServer) UpdateLLMProxyAPIKey ¶
UpdateLLMProxyAPIKey implements ServerInterface.UpdateLLMProxyAPIKey (PUT /llm-proxies/{id}/api-keys/{apiKeyName})
func (*APIServer) UpdateMCPProxy ¶
UpdateMCPProxy implements ServerInterface.UpdateMCPProxy (PUT /mcp-proxies/{handle})
func (*APIServer) UpdateSecret ¶
UpdateSecret handles PUT /secrets/{id}
func (*APIServer) UpdateSubscription ¶
UpdateSubscription implements ServerInterface.UpdateSubscription (PUT /subscriptions/{subscriptionId})
func (*APIServer) UpdateSubscriptionPlan ¶
UpdateSubscriptionPlan implements ServerInterface.UpdateSubscriptionPlan (PUT /subscription-plans/{planId})
func (*APIServer) UpdateWebBrokerAPIKey ¶
UpdateWebBrokerAPIKey implements ServerInterface.UpdateWebBrokerAPIKey (PUT /webbroker-apis/{id}/api-keys/{apiKeyName})
func (*APIServer) UpdateWebSubAPI ¶
UpdateWebSubAPI implements ServerInterface.UpdateWebSubAPI (PUT /websub-apis/{id})
func (*APIServer) UpdateWebSubAPIKey ¶
UpdateWebSubAPIKey implements ServerInterface.UpdateWebSubAPIKey (PUT /websub-apis/{id}/api-keys/{apiKeyName})
func (*APIServer) UploadCertificate ¶
UploadCertificate handles certificate upload via REST API POST /certificates
type CertificateResponse ¶
type CertificateResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Subject string `json:"subject,omitempty"`
Issuer string `json:"issuer,omitempty"`
NotAfter string `json:"notAfter,omitempty"`
Count int `json:"count"` // Number of certs in file
Message string `json:"message,omitempty"`
Status string `json:"status"` // success, error
}
CertificateResponse represents a certificate information response
type ListCertificatesResponse ¶
type ListCertificatesResponse struct {
Certificates []CertificateResponse `json:"certificates"`
TotalCount int `json:"totalCount"`
TotalBytes int `json:"totalBytes"`
Status string `json:"status"`
}
ListCertificatesResponse represents the response for listing certificates
type RestAPIHandler ¶
type RestAPIHandler struct {
// contains filtered or unexported fields
}
RestAPIHandler handles HTTP requests for REST API CRUD operations.
func NewRestAPIHandler ¶
func NewRestAPIHandler(service *restapi.RestAPIService, logger *slog.Logger) *RestAPIHandler
NewRestAPIHandler creates a new RestAPIHandler.
func (*RestAPIHandler) CreateRestAPI ¶
func (h *RestAPIHandler) CreateRestAPI(c *gin.Context)
CreateRestAPI implements ServerInterface.CreateRestAPI (POST /rest-apis)
func (*RestAPIHandler) DeleteRestAPI ¶
func (h *RestAPIHandler) DeleteRestAPI(c *gin.Context, id string)
DeleteRestAPI implements ServerInterface.DeleteRestAPI (DELETE /rest-apis/{id})
func (*RestAPIHandler) GetRestAPIById ¶
func (h *RestAPIHandler) GetRestAPIById(c *gin.Context, id string)
GetRestAPIById implements ServerInterface.GetRestAPIById (GET /rest-apis/{id})
func (*RestAPIHandler) ListRestAPIs ¶
func (h *RestAPIHandler) ListRestAPIs(c *gin.Context, params api.ListRestAPIsParams)
ListRestAPIs implements ServerInterface.ListRestAPIs (GET /rest-apis)
func (*RestAPIHandler) UpdateRestAPI ¶
func (h *RestAPIHandler) UpdateRestAPI(c *gin.Context, id string)
UpdateRestAPI implements ServerInterface.UpdateRestAPI (PUT /rest-apis/{id})
type UploadCertificateRequest ¶
type UploadCertificateRequest struct {
Certificate string `json:"certificate" binding:"required"` // PEM-encoded certificate
Name string `json:"name" binding:"required"` // Unique certificate name
}
UploadCertificateRequest represents the request body for certificate upload
Source Files
¶
- api_key_handler.go
- certificates.go
- handlers.go
- helpers.go
- llm_provider_handler.go
- llm_provider_template_handler.go
- llm_proxy_handler.go
- mcp_proxy_handler.go
- resource_response.go
- rest_api_handler.go
- secret_handler.go
- subscription_handler.go
- subscription_plan_handler.go
- webbroker_api_handler.go
- websub_api_handler.go