management

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialModelStateInfo added in v1.1.1

type CredentialModelStateInfo struct {
	Model             string               `json:"model"`
	UpstreamModel     string               `json:"upstream_model"`
	StateKey          string               `json:"state_key"`
	DisplayName       string               `json:"display_name,omitempty"`
	Registered        bool                 `json:"registered"`
	Status            coreauth.Status      `json:"status"`
	StatusMessage     string               `json:"status_message,omitempty"`
	Unavailable       bool                 `json:"unavailable"`
	Blocked           bool                 `json:"blocked"`
	BlockReason       string               `json:"block_reason"`
	NextRetryAfter    time.Time            `json:"next_retry_after,omitzero"`
	RemainingCooldown string               `json:"remaining_cooldown,omitempty"`
	LastError         *coreauth.Error      `json:"last_error,omitempty"`
	Quota             *coreauth.QuotaState `json:"quota,omitempty"`
	UpdatedAt         time.Time            `json:"updated_at,omitzero"`
}

CredentialModelStateInfo keeps recorded errors separate from effective scheduling gates.

type CredentialModelStatesItem added in v1.1.1

type CredentialModelStatesItem struct {
	CredentialID   string                     `json:"credential_id"`
	Provider       string                     `json:"provider"`
	Label          string                     `json:"label,omitempty"`
	Prefix         string                     `json:"prefix,omitempty"`
	StateVersion   int64                      `json:"state_version"`
	Status         coreauth.Status            `json:"status"`
	StatusMessage  string                     `json:"status_message,omitempty"`
	Disabled       bool                       `json:"disabled"`
	Unavailable    bool                       `json:"unavailable"`
	RefreshBlocked bool                       `json:"refresh_blocked"`
	NextRetryAfter time.Time                  `json:"next_retry_after,omitzero"`
	LastError      *coreauth.Error            `json:"last_error,omitempty"`
	Models         []CredentialModelStateInfo `json:"models"`
}

CredentialModelStatesItem describes a snapshot held by the current Home node.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(repo *cluster.Repository, runtime *home.Runtime, nodeIP string, nodePort int) *Handler

NewHandler creates a new handler.

func (*Handler) APICall

func (h *Handler) APICall(c *gin.Context)

APICall proxies a management API call through a stored auth entry.

func (*Handler) ApplyBillingModelPriceImport added in v1.0.55

func (h *Handler) ApplyBillingModelPriceImport(c *gin.Context)

func (*Handler) CancelAuthSession added in v1.0.75

func (h *Handler) CancelAuthSession(c *gin.Context)

CancelAuthSession invalidates a pending database-backed login session.

func (*Handler) ClearCredentialCooldown added in v1.0.67

func (h *Handler) ClearCredentialCooldown(c *gin.Context)

ClearCredentialCooldown clears Home-owned quota cooldown state for one credential, optionally limited to one model.

func (*Handler) CollectQuota added in v1.0.61

func (h *Handler) CollectQuota(c *gin.Context)

CollectQuota handles POST /quota/collect: kick off an asynchronous quota collection round for the selected credentials (empty body = all eligible).

func (*Handler) ConfigV8 added in v1.0.75

func (h *Handler) ConfigV8(c *gin.Context)

ConfigV8 serves the persisted configuration using v8 names. Mutations read and update the authoritative database view in one transaction before reloading runtime state.

func (*Handler) CreateBillingModelPrice added in v1.0.32

func (h *Handler) CreateBillingModelPrice(c *gin.Context)

func (*Handler) CreateChannelGroup added in v1.0.20

func (h *Handler) CreateChannelGroup(c *gin.Context)

CreateChannelGroup creates a channel group.

func (*Handler) CreateChannelGroupDetail added in v1.0.20

func (h *Handler) CreateChannelGroupDetail(c *gin.Context)

CreateChannelGroupDetail creates a channel group detail.

func (*Handler) CreateClientCertificate added in v1.0.14

func (h *Handler) CreateClientCertificate(c *gin.Context)

CreateClientCertificate creates a pending client certificate and returns its Home JWT.

func (*Handler) CreateModelGroup added in v1.0.20

func (h *Handler) CreateModelGroup(c *gin.Context)

CreateModelGroup creates a model group.

func (*Handler) CreateModelGroupDetail added in v1.0.20

func (h *Handler) CreateModelGroupDetail(c *gin.Context)

CreateModelGroupDetail creates a model group detail.

func (*Handler) CreatePluginStoreAuth added in v1.0.57

func (h *Handler) CreatePluginStoreAuth(c *gin.Context)

func (*Handler) CreateProxyPoolItem added in v1.0.32

func (h *Handler) CreateProxyPoolItem(c *gin.Context)

func (*Handler) CreateUser added in v1.0.22

func (h *Handler) CreateUser(c *gin.Context)

CreateUser creates a user.

func (*Handler) DeductBillingBalance added in v1.0.32

func (h *Handler) DeductBillingBalance(c *gin.Context)

func (*Handler) DeleteAPIKeys added in v1.0.3

func (h *Handler) DeleteAPIKeys(c *gin.Context)

DeleteAPIKeys deletes an api keys.

func (*Handler) DeleteAuthFile

func (h *Handler) DeleteAuthFile(c *gin.Context)

DeleteAuthFile deletes an auth file.

func (*Handler) DeleteBillingModelPrice added in v1.0.32

func (h *Handler) DeleteBillingModelPrice(c *gin.Context)

func (*Handler) DeleteChannelGroup added in v1.0.20

func (h *Handler) DeleteChannelGroup(c *gin.Context)

DeleteChannelGroup deletes a channel group.

func (*Handler) DeleteChannelGroupDetail added in v1.0.20

func (h *Handler) DeleteChannelGroupDetail(c *gin.Context)

DeleteChannelGroupDetail deletes a channel group detail.

func (*Handler) DeleteClaudeKey

func (h *Handler) DeleteClaudeKey(c *gin.Context)

DeleteClaudeKey deletes a claude key.

func (*Handler) DeleteCodexKey

func (h *Handler) DeleteCodexKey(c *gin.Context)

DeleteCodexKey deletes a codex key.

func (*Handler) DeleteConfigRoot

func (h *Handler) DeleteConfigRoot(route string) gin.HandlerFunc

DeleteConfigRoot deletes a config root.

func (*Handler) DeleteGeminiKey

func (h *Handler) DeleteGeminiKey(c *gin.Context)

DeleteGeminiKey deletes a gemini key.

func (*Handler) DeleteInteractionsKey added in v1.0.70

func (h *Handler) DeleteInteractionsKey(c *gin.Context)

DeleteInteractionsKey deletes a native Interactions key.

func (*Handler) DeleteLogs added in v1.0.63

func (h *Handler) DeleteLogs(c *gin.Context)

DeleteLogs deletes all app log records stored in the shared database.

func (*Handler) DeleteMetaKey added in v1.0.73

func (h *Handler) DeleteMetaKey(c *gin.Context)

DeleteMetaKey deletes a Meta key.

func (*Handler) DeleteModelGroup added in v1.0.20

func (h *Handler) DeleteModelGroup(c *gin.Context)

DeleteModelGroup deletes a model group.

func (*Handler) DeleteModelGroupDetail added in v1.0.20

func (h *Handler) DeleteModelGroupDetail(c *gin.Context)

DeleteModelGroupDetail deletes a model group detail.

func (*Handler) DeleteOAuthExcludedModels added in v1.0.3

func (h *Handler) DeleteOAuthExcludedModels(c *gin.Context)

DeleteOAuthExcludedModels deletes an o auth excluded models.

func (*Handler) DeleteOAuthModelAlias added in v1.0.3

func (h *Handler) DeleteOAuthModelAlias(c *gin.Context)

DeleteOAuthModelAlias deletes an o auth model alias.

func (*Handler) DeleteOpenAICompat

func (h *Handler) DeleteOpenAICompat(c *gin.Context)

DeleteOpenAICompat deletes an open ai compat.

func (*Handler) DeletePluginStoreAuth added in v1.0.57

func (h *Handler) DeletePluginStoreAuth(c *gin.Context)

func (*Handler) DeleteProxyPoolItem added in v1.0.32

func (h *Handler) DeleteProxyPoolItem(c *gin.Context)

func (*Handler) DeleteProxyURL added in v1.0.3

func (h *Handler) DeleteProxyURL(c *gin.Context)

DeleteProxyURL deletes a proxy url.

func (*Handler) DeleteUser added in v1.0.22

func (h *Handler) DeleteUser(c *gin.Context)

DeleteUser deletes a user.

func (*Handler) DeleteVertexCompatKey

func (h *Handler) DeleteVertexCompatKey(c *gin.Context)

DeleteVertexCompatKey deletes a vertex compat key.

func (*Handler) DeleteXAIKey added in v1.0.55

func (h *Handler) DeleteXAIKey(c *gin.Context)

DeleteXAIKey deletes an xAI key.

func (*Handler) DownloadAuthFile

func (h *Handler) DownloadAuthFile(c *gin.Context)

DownloadAuthFile downloads an auth file.

func (*Handler) DownloadLocalRequestLogByID added in v1.0.25

func (h *Handler) DownloadLocalRequestLogByID(c *gin.Context)

DownloadLocalRequestLogByID downloads a request log file from this Home only.

func (*Handler) DownloadRequestLogByID added in v1.0.25

func (h *Handler) DownloadRequestLogByID(c *gin.Context)

DownloadRequestLogByID downloads a request log file by path request ID and optional query Home identity.

func (*Handler) ExportRequestEvents added in v1.0.52

func (h *Handler) ExportRequestEvents(c *gin.Context)

func (*Handler) ExportUsageRecords added in v1.0.47

func (h *Handler) ExportUsageRecords(c *gin.Context)

func (*Handler) FetchCredentialQuota added in v1.0.75

func (h *Handler) FetchCredentialQuota(c *gin.Context)

FetchCredentialQuota invokes a plugin quota provider or queues a Home collector.

func (*Handler) FetchPluginQuota added in v1.0.75

func (h *Handler) FetchPluginQuota(c *gin.Context)

FetchPluginQuota handles POST /v8/management/plugins/:id/quota

func (*Handler) GetAPIKeyUsage added in v1.0.44

func (h *Handler) GetAPIKeyUsage(c *gin.Context)

GetAPIKeyUsage returns recent request buckets for runtime API-key auths.

func (*Handler) GetAPIKeys added in v1.0.3

func (h *Handler) GetAPIKeys(c *gin.Context)

GetAPIKeys returns an api keys.

func (*Handler) GetAuthFileModels added in v1.0.3

func (h *Handler) GetAuthFileModels(c *gin.Context)

GetAuthFileModels returns an auth file models.

func (*Handler) GetAuthStatus added in v1.0.3

func (h *Handler) GetAuthStatus(c *gin.Context)

GetAuthStatus returns an auth status.

func (*Handler) GetBillingModelPriceImportOperation added in v1.0.55

func (h *Handler) GetBillingModelPriceImportOperation(c *gin.Context)

func (*Handler) GetBillingOverview added in v1.0.32

func (h *Handler) GetBillingOverview(c *gin.Context)

func (*Handler) GetBillingSettings added in v1.0.53

func (h *Handler) GetBillingSettings(c *gin.Context)

func (*Handler) GetBillingTierDiagnostics added in v1.0.55

func (h *Handler) GetBillingTierDiagnostics(c *gin.Context)

func (*Handler) GetCapabilities added in v1.0.47

func (h *Handler) GetCapabilities(c *gin.Context)

func (*Handler) GetChannelGroup added in v1.0.20

func (h *Handler) GetChannelGroup(c *gin.Context)

GetChannelGroup returns a channel group.

func (*Handler) GetChannelGroupDetail added in v1.0.20

func (h *Handler) GetChannelGroupDetail(c *gin.Context)

GetChannelGroupDetail returns a channel group detail.

func (*Handler) GetClaudeKeys

func (h *Handler) GetClaudeKeys(c *gin.Context)

GetClaudeKeys returns a claude keys.

func (*Handler) GetCodexKeys

func (h *Handler) GetCodexKeys(c *gin.Context)

GetCodexKeys returns a codex keys.

func (*Handler) GetConfig

func (h *Handler) GetConfig(c *gin.Context)

GetConfig returns a config.

func (*Handler) GetConfigRoot

func (h *Handler) GetConfigRoot(route string) gin.HandlerFunc

GetConfigRoot returns a config root.

func (*Handler) GetConfigYAML

func (h *Handler) GetConfigYAML(c *gin.Context)

GetConfigYAML returns a config yaml.

func (*Handler) GetCredentialConcurrency added in v1.0.61

func (h *Handler) GetCredentialConcurrency(c *gin.Context)

func (*Handler) GetCredentialConcurrencyPolicy added in v1.0.61

func (h *Handler) GetCredentialConcurrencyPolicy(c *gin.Context)

func (*Handler) GetCredentialModelStates added in v1.1.1

func (h *Handler) GetCredentialModelStates(c *gin.Context)

GetCredentialModelStates handles both the list route and the single-credential path. It reads runtime snapshots only; persisted credentials are never merged into them.

func (*Handler) GetCredentialModelsV8 added in v1.1.5

func (h *Handler) GetCredentialModelsV8(c *gin.Context)

GetCredentialModelsV8 includes the IDs accepted by credential exclusion rules.

func (*Handler) GetDebug added in v1.0.3

func (h *Handler) GetDebug(c *gin.Context)

GetDebug returns a debug.

func (*Handler) GetErrorLogsMaxFiles added in v1.0.3

func (h *Handler) GetErrorLogsMaxFiles(c *gin.Context)

GetErrorLogsMaxFiles returns an error logs max files.

func (*Handler) GetForceModelPrefix added in v1.0.3

func (h *Handler) GetForceModelPrefix(c *gin.Context)

GetForceModelPrefix returns a force model prefix.

func (*Handler) GetGeminiKeys

func (h *Handler) GetGeminiKeys(c *gin.Context)

GetGeminiKeys returns a gemini keys.

func (*Handler) GetInFlightDetails added in v1.0.61

func (h *Handler) GetInFlightDetails(c *gin.Context)

func (*Handler) GetInFlightSummary added in v1.0.61

func (h *Handler) GetInFlightSummary(c *gin.Context)

func (*Handler) GetInteractionsKeys added in v1.0.70

func (h *Handler) GetInteractionsKeys(c *gin.Context)

GetInteractionsKeys returns native Interactions keys.

func (*Handler) GetLatestVersion added in v1.0.3

func (h *Handler) GetLatestVersion(c *gin.Context)

GetLatestVersion returns a latest version.

func (*Handler) GetLoggingToFile added in v1.0.3

func (h *Handler) GetLoggingToFile(c *gin.Context)

GetLoggingToFile returns a logging to file.

func (*Handler) GetLogs added in v1.0.25

func (h *Handler) GetLogs(c *gin.Context)

GetLogs returns app log records stored in the database.

func (*Handler) GetLogsMaxTotalSizeMB added in v1.0.3

func (h *Handler) GetLogsMaxTotalSizeMB(c *gin.Context)

GetLogsMaxTotalSizeMB returns a logs max total size mb.

func (*Handler) GetLogsV8 added in v1.1.3

func (h *Handler) GetLogsV8(c *gin.Context)

GetLogsV8 returns app log records with ingestion bounds and chronological cursors.

func (*Handler) GetMaxRetryCredentials added in v1.0.70

func (h *Handler) GetMaxRetryCredentials(c *gin.Context)

GetMaxRetryCredentials returns the maximum number of retry credentials.

func (*Handler) GetMaxRetryInterval added in v1.0.3

func (h *Handler) GetMaxRetryInterval(c *gin.Context)

GetMaxRetryInterval returns a max retry interval.

func (*Handler) GetMetaKeys added in v1.0.73

func (h *Handler) GetMetaKeys(c *gin.Context)

GetMetaKeys returns Meta keys.

func (*Handler) GetModelGroup added in v1.0.20

func (h *Handler) GetModelGroup(c *gin.Context)

GetModelGroup returns a model group.

func (*Handler) GetModelGroupDetail added in v1.0.20

func (h *Handler) GetModelGroupDetail(c *gin.Context)

GetModelGroupDetail returns a model group detail.

func (*Handler) GetModels added in v1.0.26

func (h *Handler) GetModels(c *gin.Context)

GetModels returns static or currently available model definitions.

func (*Handler) GetModelsV8 added in v1.1.6

func (h *Handler) GetModelsV8(c *gin.Context)

GetModelsV8 includes the execution identities used by billing for public aliases.

func (*Handler) GetOAuthExcludedModels added in v1.0.3

func (h *Handler) GetOAuthExcludedModels(c *gin.Context)

GetOAuthExcludedModels returns an o auth excluded models.

func (*Handler) GetOAuthModelAlias added in v1.0.3

func (h *Handler) GetOAuthModelAlias(c *gin.Context)

GetOAuthModelAlias returns an o auth model alias.

func (*Handler) GetOpenAICompat

func (h *Handler) GetOpenAICompat(c *gin.Context)

GetOpenAICompat returns an open ai compat.

func (*Handler) GetPluginQuota added in v1.0.75

func (h *Handler) GetPluginQuota(c *gin.Context)

GetPluginQuota handles GET /v8/management/plugins/:id/quota?auth_index=...

func (*Handler) GetPluginStoreAuth added in v1.0.57

func (h *Handler) GetPluginStoreAuth(c *gin.Context)

func (*Handler) GetPort added in v1.0.72

func (h *Handler) GetPort(c *gin.Context)

GetPort returns the CPA server port distributed by Home.

func (*Handler) GetProxyURL added in v1.0.3

func (h *Handler) GetProxyURL(c *gin.Context)

GetProxyURL returns a proxy url.

func (*Handler) GetQuotaCredential added in v1.0.56

func (h *Handler) GetQuotaCredential(c *gin.Context)

func (*Handler) GetQuotaProviders added in v1.0.75

func (h *Handler) GetQuotaProviders(c *gin.Context)

GetQuotaProviders returns the list of registered quota providers.

func (*Handler) GetRequestEvent added in v1.0.52

func (h *Handler) GetRequestEvent(c *gin.Context)

func (*Handler) GetRequestEventFilterOptions added in v1.0.52

func (h *Handler) GetRequestEventFilterOptions(c *gin.Context)

func (*Handler) GetRequestLog added in v1.0.3

func (h *Handler) GetRequestLog(c *gin.Context)

GetRequestLog returns a request log.

func (*Handler) GetRequestRetry added in v1.0.3

func (h *Handler) GetRequestRetry(c *gin.Context)

GetRequestRetry returns a request retry.

func (*Handler) GetRoutingStrategy added in v1.0.3

func (h *Handler) GetRoutingStrategy(c *gin.Context)

GetRoutingStrategy returns a routing strategy.

func (*Handler) GetSessionTree added in v1.0.73

func (h *Handler) GetSessionTree(c *gin.Context)

GetSessionTree handles on-demand retrieval of the hierarchical session tree and request timeline.

func (*Handler) GetStaticModelDefinitions added in v1.0.3

func (h *Handler) GetStaticModelDefinitions(c *gin.Context)

GetStaticModelDefinitions returns a static model definitions.

func (*Handler) GetSwitchPreviewModel added in v1.0.3

func (h *Handler) GetSwitchPreviewModel(c *gin.Context)

GetSwitchPreviewModel returns a switch preview model.

func (*Handler) GetSwitchProject added in v1.0.3

func (h *Handler) GetSwitchProject(c *gin.Context)

GetSwitchProject returns a switch project.

func (*Handler) GetTopology added in v1.0.52

func (h *Handler) GetTopology(c *gin.Context)

GetTopology returns a Home and CPA cluster topology snapshot.

func (*Handler) GetUsageCredentialHealth added in v1.0.47

func (h *Handler) GetUsageCredentialHealth(c *gin.Context)

func (*Handler) GetUsageOverview added in v1.0.47

func (h *Handler) GetUsageOverview(c *gin.Context)

func (*Handler) GetUsageProviderHealth added in v1.0.47

func (h *Handler) GetUsageProviderHealth(c *gin.Context)

func (*Handler) GetUsageRealtime added in v1.0.47

func (h *Handler) GetUsageRealtime(c *gin.Context)

func (*Handler) GetUsageRecord added in v1.0.47

func (h *Handler) GetUsageRecord(c *gin.Context)

func (*Handler) GetUsageStatisticsEnabled added in v1.0.3

func (h *Handler) GetUsageStatisticsEnabled(c *gin.Context)

GetUsageStatisticsEnabled returns an usage statistics enabled.

func (*Handler) GetUser added in v1.0.22

func (h *Handler) GetUser(c *gin.Context)

GetUser returns a user.

func (*Handler) GetUserPeriodLimits added in v1.0.52

func (h *Handler) GetUserPeriodLimits(c *gin.Context)

GetUserPeriodLimits returns period-limit configuration and current usage.

func (*Handler) GetVertexCompatKeys

func (h *Handler) GetVertexCompatKeys(c *gin.Context)

GetVertexCompatKeys returns a vertex compat keys.

func (*Handler) GetXAIKeys added in v1.0.55

func (h *Handler) GetXAIKeys(c *gin.Context)

GetXAIKeys returns xAI keys.

func (*Handler) ImportOAuthV8 added in v1.0.75

func (h *Handler) ImportOAuthV8(c *gin.Context)

ImportOAuthV8 dispatches credential import using the provider query parameter.

func (*Handler) ImportVertexCredential added in v1.0.3

func (h *Handler) ImportVertexCredential(c *gin.Context)

ImportVertexCredential handles import vertex credential.

func (*Handler) InstallPluginFromStore added in v1.0.39

func (h *Handler) InstallPluginFromStore(c *gin.Context)

func (*Handler) ListAuthFiles

func (h *Handler) ListAuthFiles(c *gin.Context)

ListAuthFiles preserves the v0 credential list contract without plugin quota metadata.

func (*Handler) ListBillingBalanceRecords added in v1.0.32

func (h *Handler) ListBillingBalanceRecords(c *gin.Context)

func (*Handler) ListBillingCharges added in v1.0.32

func (h *Handler) ListBillingCharges(c *gin.Context)

func (*Handler) ListBillingModelPrices added in v1.0.32

func (h *Handler) ListBillingModelPrices(c *gin.Context)

func (*Handler) ListChannelGroupDetails added in v1.0.20

func (h *Handler) ListChannelGroupDetails(c *gin.Context)

ListChannelGroupDetails returns channel group details.

func (*Handler) ListChannelGroups added in v1.0.20

func (h *Handler) ListChannelGroups(c *gin.Context)

ListChannelGroups returns channel groups.

func (*Handler) ListCredentialConcurrencyPolicies added in v1.0.61

func (h *Handler) ListCredentialConcurrencyPolicies(c *gin.Context)

func (*Handler) ListCredentialsV8 added in v1.1.2

func (h *Handler) ListCredentialsV8(c *gin.Context)

ListCredentialsV8 includes the quota plugin selected for each credential by the runtime host.

func (*Handler) ListModelGroupDetails added in v1.0.20

func (h *Handler) ListModelGroupDetails(c *gin.Context)

ListModelGroupDetails returns model group details.

func (*Handler) ListModelGroups added in v1.0.20

func (h *Handler) ListModelGroups(c *gin.Context)

ListModelGroups returns model groups.

func (*Handler) ListNodes added in v1.0.3

func (h *Handler) ListNodes(c *gin.Context)

ListNodes returns a nodes.

func (*Handler) ListPluginStore added in v1.0.39

func (h *Handler) ListPluginStore(c *gin.Context)

func (*Handler) ListPluginStoreAuth added in v1.0.57

func (h *Handler) ListPluginStoreAuth(c *gin.Context)

func (*Handler) ListPlugins added in v1.0.49

func (h *Handler) ListPlugins(c *gin.Context)

func (*Handler) ListProxyPoolItems added in v1.0.32

func (h *Handler) ListProxyPoolItems(c *gin.Context)

func (*Handler) ListQuotaCredentials added in v1.0.56

func (h *Handler) ListQuotaCredentials(c *gin.Context)

func (*Handler) ListRequestEvents added in v1.0.52

func (h *Handler) ListRequestEvents(c *gin.Context)

func (*Handler) ListRequestLogs added in v1.0.47

func (h *Handler) ListRequestLogs(c *gin.Context)

func (*Handler) ListUsageAggregates added in v1.0.47

func (h *Handler) ListUsageAggregates(c *gin.Context)

func (*Handler) ListUsageRecords added in v1.0.47

func (h *Handler) ListUsageRecords(c *gin.Context)

func (*Handler) ListUsers added in v1.0.22

func (h *Handler) ListUsers(c *gin.Context)

ListUsers returns users.

func (*Handler) PatchAPIKeys added in v1.0.3

func (h *Handler) PatchAPIKeys(c *gin.Context)

PatchAPIKeys applies a partial update to an api keys.

func (*Handler) PatchAuthFileFields

func (h *Handler) PatchAuthFileFields(c *gin.Context)

PatchAuthFileFields applies a partial update to an auth file fields.

func (*Handler) PatchAuthFileStatus

func (h *Handler) PatchAuthFileStatus(c *gin.Context)

PatchAuthFileStatus applies a partial update to an auth file status.

func (*Handler) PatchClaudeKey

func (h *Handler) PatchClaudeKey(c *gin.Context)

PatchClaudeKey applies a partial update to a claude key.

func (*Handler) PatchCodexKey

func (h *Handler) PatchCodexKey(c *gin.Context)

PatchCodexKey applies a partial update to a codex key.

func (*Handler) PatchConfigRoot added in v1.0.52

func (h *Handler) PatchConfigRoot(route string) gin.HandlerFunc

PatchConfigRoot merges a config root object.

func (*Handler) PatchCredentialConcurrencyPolicy added in v1.0.61

func (h *Handler) PatchCredentialConcurrencyPolicy(c *gin.Context)

func (*Handler) PatchGeminiKey

func (h *Handler) PatchGeminiKey(c *gin.Context)

PatchGeminiKey applies a partial update to a gemini key.

func (*Handler) PatchInteractionsKey added in v1.0.70

func (h *Handler) PatchInteractionsKey(c *gin.Context)

PatchInteractionsKey applies a partial update to a native Interactions key.

func (*Handler) PatchMetaKey added in v1.0.73

func (h *Handler) PatchMetaKey(c *gin.Context)

PatchMetaKey applies a partial update to a Meta key.

func (*Handler) PatchOAuthExcludedModels added in v1.0.3

func (h *Handler) PatchOAuthExcludedModels(c *gin.Context)

PatchOAuthExcludedModels applies a partial update to an o auth excluded models.

func (*Handler) PatchOAuthModelAlias added in v1.0.3

func (h *Handler) PatchOAuthModelAlias(c *gin.Context)

PatchOAuthModelAlias applies a partial update to an o auth model alias.

func (*Handler) PatchOpenAICompat

func (h *Handler) PatchOpenAICompat(c *gin.Context)

PatchOpenAICompat applies a partial update to an open ai compat.

func (*Handler) PatchVertexCompatKey

func (h *Handler) PatchVertexCompatKey(c *gin.Context)

PatchVertexCompatKey applies a partial update to a vertex compat key.

func (*Handler) PatchXAIKey added in v1.0.55

func (h *Handler) PatchXAIKey(c *gin.Context)

PatchXAIKey applies a partial update to an xAI key.

func (*Handler) PostAPIKeys added in v1.0.57

func (h *Handler) PostAPIKeys(c *gin.Context)

PostAPIKeys creates one API key.

func (*Handler) PostOAuthCallback

func (h *Handler) PostOAuthCallback(c *gin.Context)

PostOAuthCallback handles a post o auth callback.

func (*Handler) PreviewBillingModelPriceImport added in v1.0.55

func (h *Handler) PreviewBillingModelPriceImport(c *gin.Context)

func (*Handler) PutAPIKeys added in v1.0.3

func (h *Handler) PutAPIKeys(c *gin.Context)

PutAPIKeys replaces an api keys.

func (*Handler) PutClaudeKeys

func (h *Handler) PutClaudeKeys(c *gin.Context)

PutClaudeKeys replaces a claude keys.

func (*Handler) PutCodexKeys

func (h *Handler) PutCodexKeys(c *gin.Context)

PutCodexKeys replaces a codex keys.

func (*Handler) PutConfigRoot

func (h *Handler) PutConfigRoot(route string) gin.HandlerFunc

PutConfigRoot replaces a config root.

func (*Handler) PutConfigYAML

func (h *Handler) PutConfigYAML(c *gin.Context)

PutConfigYAML replaces a config yaml.

func (*Handler) PutDebug added in v1.0.3

func (h *Handler) PutDebug(c *gin.Context)

PutDebug replaces a debug.

func (*Handler) PutErrorLogsMaxFiles added in v1.0.3

func (h *Handler) PutErrorLogsMaxFiles(c *gin.Context)

PutErrorLogsMaxFiles replaces an error logs max files.

func (*Handler) PutForceModelPrefix added in v1.0.3

func (h *Handler) PutForceModelPrefix(c *gin.Context)

PutForceModelPrefix replaces a force model prefix.

func (*Handler) PutGeminiKeys

func (h *Handler) PutGeminiKeys(c *gin.Context)

PutGeminiKeys replaces a gemini keys.

func (*Handler) PutInteractionsKeys added in v1.0.70

func (h *Handler) PutInteractionsKeys(c *gin.Context)

PutInteractionsKeys replaces native Interactions keys.

func (*Handler) PutLoggingToFile added in v1.0.3

func (h *Handler) PutLoggingToFile(c *gin.Context)

PutLoggingToFile replaces a logging to file.

func (*Handler) PutLogsMaxTotalSizeMB added in v1.0.3

func (h *Handler) PutLogsMaxTotalSizeMB(c *gin.Context)

PutLogsMaxTotalSizeMB replaces a logs max total size mb.

func (*Handler) PutMaxRetryCredentials added in v1.0.70

func (h *Handler) PutMaxRetryCredentials(c *gin.Context)

PutMaxRetryCredentials replaces the maximum number of retry credentials.

func (*Handler) PutMaxRetryInterval added in v1.0.3

func (h *Handler) PutMaxRetryInterval(c *gin.Context)

PutMaxRetryInterval replaces a max retry interval.

func (*Handler) PutMetaKeys added in v1.0.73

func (h *Handler) PutMetaKeys(c *gin.Context)

PutMetaKeys replaces Meta keys.

func (*Handler) PutOAuthExcludedModels added in v1.0.3

func (h *Handler) PutOAuthExcludedModels(c *gin.Context)

PutOAuthExcludedModels replaces an o auth excluded models.

func (*Handler) PutOAuthModelAlias added in v1.0.3

func (h *Handler) PutOAuthModelAlias(c *gin.Context)

PutOAuthModelAlias replaces an o auth model alias.

func (*Handler) PutOpenAICompat

func (h *Handler) PutOpenAICompat(c *gin.Context)

PutOpenAICompat replaces an open ai compat.

func (*Handler) PutPort added in v1.0.72

func (h *Handler) PutPort(c *gin.Context)

PutPort replaces the CPA server port distributed by Home.

func (*Handler) PutProxyURL added in v1.0.3

func (h *Handler) PutProxyURL(c *gin.Context)

PutProxyURL replaces a proxy url.

func (*Handler) PutRequestLog added in v1.0.3

func (h *Handler) PutRequestLog(c *gin.Context)

PutRequestLog replaces a request log.

func (*Handler) PutRequestRetry added in v1.0.3

func (h *Handler) PutRequestRetry(c *gin.Context)

PutRequestRetry replaces a request retry.

func (*Handler) PutRoutingStrategy added in v1.0.3

func (h *Handler) PutRoutingStrategy(c *gin.Context)

PutRoutingStrategy replaces a routing strategy.

func (*Handler) PutSwitchPreviewModel added in v1.0.3

func (h *Handler) PutSwitchPreviewModel(c *gin.Context)

PutSwitchPreviewModel replaces a switch preview model.

func (*Handler) PutSwitchProject added in v1.0.3

func (h *Handler) PutSwitchProject(c *gin.Context)

PutSwitchProject replaces a switch project.

func (*Handler) PutUsageStatisticsEnabled added in v1.0.3

func (h *Handler) PutUsageStatisticsEnabled(c *gin.Context)

PutUsageStatisticsEnabled replaces an usage statistics enabled.

func (*Handler) PutVertexCompatKeys

func (h *Handler) PutVertexCompatKeys(c *gin.Context)

PutVertexCompatKeys replaces a vertex compat keys.

func (*Handler) PutXAIKeys added in v1.0.55

func (h *Handler) PutXAIKeys(c *gin.Context)

PutXAIKeys replaces xAI keys.

func (*Handler) RechargeBillingBalance added in v1.0.32

func (h *Handler) RechargeBillingBalance(c *gin.Context)

func (*Handler) RefreshAuthFiles added in v1.0.75

func (h *Handler) RefreshAuthFiles(c *gin.Context)

RefreshAuthFiles uses the Home refresh coordinator so refreshed credentials follow the database ownership and cross-node fencing rules.

func (*Handler) RequestAnthropicToken added in v1.0.3

func (h *Handler) RequestAnthropicToken(c *gin.Context)

RequestAnthropicToken handles request anthropic token.

func (*Handler) RequestAntigravityToken added in v1.0.3

func (h *Handler) RequestAntigravityToken(c *gin.Context)

RequestAntigravityToken handles request antigravity token.

func (*Handler) RequestCodexToken added in v1.0.3

func (h *Handler) RequestCodexToken(c *gin.Context)

RequestCodexToken handles request codex token.

func (*Handler) RequestDevinToken added in v1.0.73

func (h *Handler) RequestDevinToken(c *gin.Context)

RequestDevinToken handles request Devin token.

func (*Handler) RequestKimiToken added in v1.0.3

func (h *Handler) RequestKimiToken(c *gin.Context)

RequestKimiToken handles request kimi token.

func (*Handler) RequestMetaToken added in v1.0.73

func (h *Handler) RequestMetaToken(c *gin.Context)

RequestMetaToken handles request Meta token.

func (*Handler) RequestXAIToken added in v1.0.14

func (h *Handler) RequestXAIToken(c *gin.Context)

RequestXAIToken handles request xAI token.

func (*Handler) ResetCredentialQuota added in v1.0.75

func (h *Handler) ResetCredentialQuota(c *gin.Context)

ResetCredentialQuota resets quota or usage for a credential.

func (*Handler) ResetPluginQuota added in v1.0.75

func (h *Handler) ResetPluginQuota(c *gin.Context)

ResetPluginQuota handles DELETE /v8/management/plugins/:id/quota and POST /v8/management/plugins/:id/quota/reset

func (*Handler) ResetQuota added in v1.0.75

func (h *Handler) ResetQuota(c *gin.Context)

ResetQuota accepts the CPA auth_index contract and clears authoritative Home cooldowns, rather than mutating a separate SDK auth manager.

func (*Handler) ResetUserPeriodLimits added in v1.0.52

func (h *Handler) ResetUserPeriodLimits(c *gin.Context)

ResetUserPeriodLimits resets period-limit counters for a user.

func (*Handler) ServePluginAuthURL added in v1.0.49

func (h *Handler) ServePluginAuthURL(c *gin.Context) bool

func (*Handler) SetForwardTLSConfig added in v1.0.25

func (h *Handler) SetForwardTLSConfig(tlsConfig *tls.Config)

SetForwardTLSConfig sets the TLS config used for cluster HTTP forwarding.

func (*Handler) SetHeartbeatTimeout added in v1.0.50

func (h *Handler) SetHeartbeatTimeout(timeout time.Duration)

SetHeartbeatTimeout sets the live cluster node timeout used by management reads.

func (*Handler) SetModelsDevHTTPClient added in v1.0.55

func (h *Handler) SetModelsDevHTTPClient(client *http.Client)

SetModelsDevHTTPClient sets the HTTP client used for server-side pricing imports.

func (*Handler) SetPluginStoreHTTPClient added in v1.0.39

func (h *Handler) SetPluginStoreHTTPClient(client pluginstore.HTTPDoer)

func (*Handler) SetQuotaRecollectTrigger added in v1.0.61

func (h *Handler) SetQuotaRecollectTrigger(trigger QuotaRecollectTrigger)

func (*Handler) StartOAuthV8 added in v1.0.75

func (h *Handler) StartOAuthV8(c *gin.Context)

StartOAuthV8 dispatches login using the provider query parameter.

func (*Handler) TestProxyPoolItem added in v1.0.32

func (h *Handler) TestProxyPoolItem(c *gin.Context)

func (*Handler) UninstallPluginFromStore added in v1.0.39

func (h *Handler) UninstallPluginFromStore(c *gin.Context)

func (*Handler) UpdateBillingModelPrice added in v1.0.32

func (h *Handler) UpdateBillingModelPrice(c *gin.Context)

func (*Handler) UpdateBillingSettings added in v1.0.53

func (h *Handler) UpdateBillingSettings(c *gin.Context)

func (*Handler) UpdateCPANodeName added in v1.0.69

func (h *Handler) UpdateCPANodeName(c *gin.Context)

UpdateCPANodeName sets or clears the operator-managed name for a CPA node.

func (*Handler) UpdateChannelGroup added in v1.0.20

func (h *Handler) UpdateChannelGroup(c *gin.Context)

UpdateChannelGroup updates a channel group.

func (*Handler) UpdateChannelGroupDetail added in v1.0.20

func (h *Handler) UpdateChannelGroupDetail(c *gin.Context)

UpdateChannelGroupDetail updates a channel group detail.

func (*Handler) UpdateModelGroup added in v1.0.20

func (h *Handler) UpdateModelGroup(c *gin.Context)

UpdateModelGroup updates a model group.

func (*Handler) UpdateModelGroupDetail added in v1.0.20

func (h *Handler) UpdateModelGroupDetail(c *gin.Context)

UpdateModelGroupDetail updates a model group detail.

func (*Handler) UpdatePluginStoreAuth added in v1.0.57

func (h *Handler) UpdatePluginStoreAuth(c *gin.Context)

func (*Handler) UpdateProxyPoolItem added in v1.0.32

func (h *Handler) UpdateProxyPoolItem(c *gin.Context)

func (*Handler) UpdateUser added in v1.0.22

func (h *Handler) UpdateUser(c *gin.Context)

UpdateUser updates a user.

func (*Handler) UploadAuthFile

func (h *Handler) UploadAuthFile(c *gin.Context)

UploadAuthFile handles upload auth file.

type QuotaRecollectTrigger added in v1.0.61

type QuotaRecollectTrigger interface {
	TriggerCollection(ctx context.Context, credentialIDs map[string]struct{}, providers map[string]struct{}) (int, error)
}

QuotaRecollectTrigger starts an asynchronous quota collection round. It is implemented by the quota collector and injected at server build time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL