Documentation
¶
Index ¶
- Constants
- func DecodeCapabilities(typ string, raw []byte) snapshot.ProviderCapabilities
- func DecodeFallbacks(raw []byte) []gatewayconfig.RouteFallback
- func DecodeObjectStore(raw []byte) *gatewayconfig.ObjectStoreConfig
- func DecodeRetry(raw []byte) *gatewayconfig.RetryConfig
- func Migrate(ctx context.Context, pool *pgxpool.Pool) error
- func ResetDatabase(ctx context.Context, pool *pgxpool.Pool) error
- type A2AAgent
- type A2AAgents
- func (p *A2AAgents) Delete(ctx context.Context, id string) error
- func (p *A2AAgents) Get(ctx context.Context, id string) (*gatewayconfig.A2AAgent, error)
- func (p *A2AAgents) Insert(ctx context.Context, item gatewayconfig.A2AAgent) error
- func (p *A2AAgents) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.A2AAgent, error)
- func (p *A2AAgents) OrgID(ctx context.Context, id string) (string, error)
- func (p *A2AAgents) Update(ctx context.Context, item gatewayconfig.A2AAgent) (*gatewayconfig.A2AAgent, error)
- type APIKey
- type APIKeys
- func (a *APIKeys) Delete(ctx context.Context, keyID string) error
- func (a *APIKeys) Get(ctx context.Context, keyID string) (*access.APIKey, error)
- func (a *APIKeys) Insert(ctx context.Context, key access.APIKey, keyHash string) error
- func (a *APIKeys) ListByOrg(ctx context.Context, orgID string) ([]access.APIKey, error)
- func (a *APIKeys) ListByProject(ctx context.Context, projectID string) ([]access.APIKey, error)
- func (a *APIKeys) OrgID(ctx context.Context, keyID string) (string, error)
- type AuditEvents
- type Counters
- type Credential
- type CredentialAssignment
- type Credentials
- func (r *Credentials) AssignmentOrgID(ctx context.Context, id string) (string, error)
- func (r *Credentials) Delete(ctx context.Context, id string) error
- func (r *Credentials) DeleteAssignment(ctx context.Context, id string) error
- func (r *Credentials) Get(ctx context.Context, id string) (*credentials.Credential, error)
- func (r *Credentials) HasAssignments(ctx context.Context, credentialID string) (bool, error)
- func (r *Credentials) Insert(ctx context.Context, c credentials.Credential) error
- func (r *Credentials) InsertAssignment(ctx context.Context, a credentials.Assignment) error
- func (r *Credentials) ListAssignmentsByOrg(ctx context.Context, orgID string) ([]credentials.Assignment, error)
- func (r *Credentials) ListByOrg(ctx context.Context, orgID string) ([]credentials.Credential, error)
- func (r *Credentials) OrgID(ctx context.Context, id string) (string, error)
- func (r *Credentials) UpdateMeta(ctx context.Context, id, name, status string) (*credentials.Credential, error)
- func (r *Credentials) UpdateSecret(ctx context.Context, id string, secretRef string, payload []byte, ...) (*credentials.Credential, error)
- func (r *Credentials) UpsertAssignment(ctx context.Context, a credentials.Assignment) (*credentials.Assignment, error)
- type Environments
- func (e *Environments) Delete(ctx context.Context, environmentID string) error
- func (e *Environments) Get(ctx context.Context, environmentID string) (*tenancy.Environment, error)
- func (e *Environments) Insert(ctx context.Context, item tenancy.Environment) error
- func (e *Environments) ListByProject(ctx context.Context, projectID string) ([]tenancy.Environment, error)
- func (e *Environments) OrgID(ctx context.Context, environmentID string) (string, error)
- type ExternalIdentities
- type InviteOutcome
- type InvitePreview
- type Invites
- func (i *Invites) Get(ctx context.Context, inviteID string) (*tenancy.OrgInvite, error)
- func (i *Invites) GetByTokenHash(ctx context.Context, tokenHash string) (*tenancy.OrgInvite, string, error)
- func (i *Invites) GetPendingByOrgEmail(ctx context.Context, orgID, email string) (*tenancy.OrgInvite, error)
- func (i *Invites) Insert(ctx context.Context, inv tenancy.OrgInvite, tokenHash string) error
- func (i *Invites) ListByOrg(ctx context.Context, orgID string) ([]tenancy.OrgInvite, error)
- func (i *Invites) MarkAccepted(ctx context.Context, inviteID string, at time.Time) error
- func (i *Invites) MarkRevoked(ctx context.Context, inviteID string) error
- func (i *Invites) UpdateToken(ctx context.Context, inviteID, tokenHash string, expiresAt time.Time) error
- type LocalDevSeed
- type MCPBackend
- type MCPBackends
- func (p *MCPBackends) Delete(ctx context.Context, id string) error
- func (p *MCPBackends) Get(ctx context.Context, id string) (*gatewayconfig.MCPBackend, error)
- func (p *MCPBackends) Insert(ctx context.Context, item gatewayconfig.MCPBackend) error
- func (p *MCPBackends) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.MCPBackend, error)
- func (p *MCPBackends) OrgID(ctx context.Context, id string) (string, error)
- func (p *MCPBackends) Update(ctx context.Context, item gatewayconfig.MCPBackend) (*gatewayconfig.MCPBackend, error)
- type ModelPrice
- type OrgInvite
- type OrgMember
- type Organization
- type Organizations
- func (o *Organizations) AddMember(ctx context.Context, orgID, userID, role string) error
- func (o *Organizations) ApplyRoleChange(ctx context.Context, orgID, actorUserID, targetUserID, newRole string, ...) error
- func (o *Organizations) Count(ctx context.Context) (int64, error)
- func (o *Organizations) CountOwners(ctx context.Context, orgID string) (int, error)
- func (o *Organizations) CreateWithOwner(ctx context.Context, org tenancy.Organization, ownerUserID string) error
- func (o *Organizations) Get(ctx context.Context, orgID string) (*tenancy.Organization, error)
- func (o *Organizations) GetDefaultRetry(ctx context.Context, orgID string) (*gatewayconfig.RetryConfig, error)
- func (o *Organizations) GetMember(ctx context.Context, orgID, userID string) (*tenancy.OrgMember, error)
- func (o *Organizations) GetMemberRole(ctx context.Context, userID, orgID string) (string, error)
- func (o *Organizations) GetObjectStore(ctx context.Context, orgID string) (*gatewayconfig.ObjectStoreConfig, error)
- func (o *Organizations) ListForUser(ctx context.Context, userID string) ([]tenancy.Organization, error)
- func (o *Organizations) ListMembers(ctx context.Context, orgID string) ([]tenancy.OrgMember, error)
- func (o *Organizations) SetDefaultRetry(ctx context.Context, orgID string, retry *gatewayconfig.RetryConfig) error
- func (o *Organizations) SetMailProvider(ctx context.Context, orgID, provider string) error
- func (o *Organizations) SetObjectStore(ctx context.Context, orgID string, cfg *gatewayconfig.ObjectStoreConfig) error
- type PasswordResets
- func (r *PasswordResets) Consume(ctx context.Context, id string, usedAt time.Time) error
- func (r *PasswordResets) Create(ctx context.Context, token identity.PasswordResetToken) error
- func (r *PasswordResets) DeleteUnusedForUser(ctx context.Context, userID string) error
- func (r *PasswordResets) GetByTokenHash(ctx context.Context, hash string) (*identity.PasswordResetToken, error)
- type PlatformEventOutbox
- type Policies
- func (p *Policies) Delete(ctx context.Context, policyID string) error
- func (p *Policies) Get(ctx context.Context, policyID string) (*gatewayconfig.RequestPolicy, error)
- func (p *Policies) Insert(ctx context.Context, item gatewayconfig.RequestPolicy) error
- func (p *Policies) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.RequestPolicy, error)
- func (p *Policies) OrgID(ctx context.Context, policyID string) (string, error)
- func (p *Policies) Update(ctx context.Context, item gatewayconfig.RequestPolicy) (*gatewayconfig.RequestPolicy, error)
- func (p *Policies) UpdatePriorities(ctx context.Context, orgID string, items []gatewayconfig.PolicyPriorityUpdate) error
- type PriceLookup
- type Project
- type Projects
- func (p *Projects) Insert(ctx context.Context, item tenancy.Project) error
- func (p *Projects) ListByOrg(ctx context.Context, orgID string) ([]tenancy.Project, error)
- func (p *Projects) ListByOrgForUser(ctx context.Context, orgID, userID string) ([]tenancy.Project, error)
- func (p *Projects) OrgID(ctx context.Context, projectID string) (string, error)
- type Provider
- type ProviderHealth
- type Providers
- func (p *Providers) Delete(ctx context.Context, providerID string) error
- func (p *Providers) Insert(ctx context.Context, item gatewayconfig.Provider) error
- func (p *Providers) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.Provider, error)
- func (p *Providers) OrgID(ctx context.Context, providerID string) (string, error)
- func (p *Providers) Update(ctx context.Context, providerID, name, baseURL, apiKeyEnv string, ...) (*gatewayconfig.Provider, error)
- type Quota
- type Quotas
- func (q *Quotas) Delete(ctx context.Context, quotaID string) error
- func (q *Quotas) Insert(ctx context.Context, item gatewayconfig.Quota) error
- func (q *Quotas) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.Quota, error)
- func (q *Quotas) OrgID(ctx context.Context, quotaID string) (string, error)
- func (q *Quotas) UpdateLimit(ctx context.Context, quotaID string, limitValue int64) (*gatewayconfig.Quota, error)
- type RequestPolicy
- type RetryConfig
- type Route
- type RouteFallback
- type Routes
- func (r *Routes) Delete(ctx context.Context, routeID string) error
- func (r *Routes) Insert(ctx context.Context, item gatewayconfig.Route) error
- func (r *Routes) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.Route, error)
- func (r *Routes) OrgID(ctx context.Context, routeID string) (string, error)
- func (r *Routes) Update(ctx context.Context, routeID, model, providerID, targetModel string, ...) (*gatewayconfig.Route, error)
- type SeedWriter
- func (w *SeedWriter) EnsureAudioRoutes(ctx context.Context, orgID, providerID string, now time.Time) (changed bool, err error)
- func (w *SeedWriter) EnsureElevenLabs(ctx context.Context, orgID string, now time.Time) error
- func (w *SeedWriter) OrgExists(ctx context.Context, orgID string) (bool, error)
- func (w *SeedWriter) ProviderExists(ctx context.Context, providerID string) (bool, error)
- func (w *SeedWriter) SeedLocalDev(ctx context.Context, s LocalDevSeed) error
- func (w *SeedWriter) UpsertEchoExtension(ctx context.Context, orgID string, now time.Time) error
- type Seeder
- func (s *Seeder) EnsureEchoExtension(ctx context.Context) error
- func (s *Seeder) EnsureElevenLabs(ctx context.Context) error
- func (s *Seeder) EnsureLocalAudioRoutes(ctx context.Context) error
- func (s *Seeder) PublishSnapshot(ctx context.Context) error
- func (s *Seeder) Seed(ctx context.Context) error
- func (s *Seeder) SeedIfEmpty(ctx context.Context) error
- type SnapshotSourceLoader
- type SnapshotStore
- type Store
- func (s *Store) APIKeyBelongsToOrg(ctx context.Context, keyID, orgID string) error
- func (s *Store) AcceptOrgInvite(ctx context.Context, rawToken, name, passwordHash string) (*OrgMember, *User, error)
- func (s *Store) AddOrgMemberByEmail(ctx context.Context, orgID, email string) (*OrgMember, error)
- func (s *Store) AddTeamMember(ctx context.Context, teamID, userID string) (*TeamMember, error)
- func (s *Store) AssignCredential(ctx context.Context, credentialID, scopeType, scopeID, createdBy string) (*CredentialAssignment, error)
- func (s *Store) CanAccessTeam(ctx context.Context, teamID, userID string) (bool, error)
- func (s *Store) CanChangeTeamRoles(ctx context.Context, teamID, userID string) (bool, error)
- func (s *Store) CanManageTeam(ctx context.Context, teamID, userID string) (bool, error)
- func (s *Store) CountOrgs(ctx context.Context) (int64, error)
- func (s *Store) CreateA2AAgent(ctx context.Context, ...) (*A2AAgent, error)
- func (s *Store) CreateAPIKey(ctx context.Context, ...) (*APIKey, error)
- func (s *Store) CreateCredential(ctx context.Context, ...) (*Credential, error)
- func (s *Store) CreateEnvironment(ctx context.Context, orgID, projectID, name, slug string) (*tenancy.Environment, error)
- func (s *Store) CreateMCPBackend(ctx context.Context, orgID, alias, name, baseURL, apiKeyEnv string, ...) (*MCPBackend, error)
- func (s *Store) CreateOrganization(ctx context.Context, name, creatorUserID string) (*Organization, error)
- func (s *Store) CreatePolicy(ctx context.Context, orgID, name, expression string, ...) (*RequestPolicy, error)
- func (s *Store) CreateProject(ctx context.Context, orgID, teamID, name string) (*Project, error)
- func (s *Store) CreateProvider(ctx context.Context, orgID, name, typ, baseURL, apiKeyEnv string, ...) (*Provider, error)
- func (s *Store) CreateQuota(ctx context.Context, orgID, scopeType, scopeID, metric string, ...) (*Quota, error)
- func (s *Store) CreateRoute(ctx context.Context, orgID, model, providerID, targetModel string, ...) (*Route, error)
- func (s *Store) CreateTeam(ctx context.Context, orgID, name, creatorUserID string) (*Team, error)
- func (s *Store) CreateUser(ctx context.Context, id, email, name, passwordHash string) (*User, error)
- func (s *Store) CreateWasmHook(ctx context.Context, orgID, name, phase, moduleURI, digest string, ...) (*WasmHook, error)
- func (s *Store) DeleteA2AAgent(ctx context.Context, id string) error
- func (s *Store) DeleteAPIKey(ctx context.Context, keyID string) error
- func (s *Store) DeleteCredential(ctx context.Context, credentialID string) error
- func (s *Store) DeleteCredentialAssignment(ctx context.Context, assignmentID string) error
- func (s *Store) DeleteEnvironment(ctx context.Context, environmentID string) error
- func (s *Store) DeleteMCPBackend(ctx context.Context, id string) error
- func (s *Store) DeletePolicy(ctx context.Context, policyID string) error
- func (s *Store) DeleteProvider(ctx context.Context, providerID string) error
- func (s *Store) DeleteQuota(ctx context.Context, quotaID string) error
- func (s *Store) DeleteRoute(ctx context.Context, routeID string) error
- func (s *Store) DeleteWasmHook(ctx context.Context, id string) error
- func (s *Store) EnqueueUsage(ctx context.Context, payload []byte) error
- func (s *Store) EnvironmentBelongsToProject(ctx context.Context, environmentID, projectID, orgID string) error
- func (s *Store) FindByEmail(ctx context.Context, email string) (userID, name, userEmail string, err error)
- func (s *Store) GetA2AAgentOrgID(ctx context.Context, id string) (string, error)
- func (s *Store) GetAPIKey(ctx context.Context, keyID string) (*APIKey, error)
- func (s *Store) GetAPIKeyOrgID(ctx context.Context, keyID string) (string, error)
- func (s *Store) GetCounter(ctx context.Context, scopeType, scopeID, metric, window string) (int64, error)
- func (s *Store) GetCredential(ctx context.Context, credentialID string) (*Credential, error)
- func (s *Store) GetCredentialAssignmentOrgID(ctx context.Context, assignmentID string) (string, error)
- func (s *Store) GetCredentialOrgID(ctx context.Context, credentialID string) (string, error)
- func (s *Store) GetEnvironment(ctx context.Context, environmentID string) (*tenancy.Environment, error)
- func (s *Store) GetEnvironmentOrgID(ctx context.Context, environmentID string) (string, error)
- func (s *Store) GetMCPBackendOrgID(ctx context.Context, id string) (string, error)
- func (s *Store) GetOrgDefaultRetry(ctx context.Context, orgID string) (*RetryConfig, error)
- func (s *Store) GetOrgMemberRole(ctx context.Context, userID, orgID string) (string, error)
- func (s *Store) GetOrgObjectStore(ctx context.Context, orgID string) (*gatewayconfig.ObjectStoreConfig, error)
- func (s *Store) GetOrganization(ctx context.Context, orgID string) (*Organization, error)
- func (s *Store) GetPolicyOrgID(ctx context.Context, policyID string) (string, error)
- func (s *Store) GetProjectOrgID(ctx context.Context, projectID string) (string, error)
- func (s *Store) GetProviderOrgID(ctx context.Context, providerID string) (string, error)
- func (s *Store) GetQuotaOrgID(ctx context.Context, quotaID string) (string, error)
- func (s *Store) GetRouteOrgID(ctx context.Context, routeID string) (string, error)
- func (s *Store) GetTeam(ctx context.Context, teamID string) (*Team, error)
- func (s *Store) GetTeamOrgID(ctx context.Context, teamID string) (string, error)
- func (s *Store) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (s *Store) GetUserByID(ctx context.Context, id string) (*User, error)
- func (s *Store) GetWasmHookOrgID(ctx context.Context, id string) (string, error)
- func (s *Store) IncrCounter(ctx context.Context, scopeType, scopeID, metric, window string, delta int64) (int64, error)
- func (s *Store) InsertUsage(ctx context.Context, e UsageEvent) error
- func (s *Store) InviteOrgMember(ctx context.Context, orgID, email, invitedByUserID string) (*InviteOutcome, string, error)
- func (s *Store) IsOrgAdmin(ctx context.Context, userID, orgID string) (bool, error)
- func (s *Store) IsOrgMember(ctx context.Context, userID, orgID string) (bool, error)
- func (s *Store) IsOrgOwner(ctx context.Context, userID, orgID string) (bool, error)
- func (s *Store) ListA2AAgents(ctx context.Context, orgID string) ([]A2AAgent, error)
- func (s *Store) ListAPIKeys(ctx context.Context, projectID string) ([]APIKey, error)
- func (s *Store) ListAudit(ctx context.Context, orgID string, f audit.Filter) ([]audit.Record, error)
- func (s *Store) ListCredentialAssignments(ctx context.Context, orgID string) ([]CredentialAssignment, error)
- func (s *Store) ListCredentials(ctx context.Context, orgID string) ([]Credential, error)
- func (s *Store) ListEnvironments(ctx context.Context, projectID string) ([]tenancy.Environment, error)
- func (s *Store) ListMCPBackends(ctx context.Context, orgID string) ([]MCPBackend, error)
- func (s *Store) ListOrgAPIKeys(ctx context.Context, orgID string) ([]APIKey, error)
- func (s *Store) ListOrgInvites(ctx context.Context, orgID string) ([]OrgInvite, error)
- func (s *Store) ListOrgMembers(ctx context.Context, orgID string) ([]OrgMember, error)
- func (s *Store) ListOrganizationsForUser(ctx context.Context, userID string) ([]Organization, error)
- func (s *Store) ListPolicies(ctx context.Context, orgID string) ([]RequestPolicy, error)
- func (s *Store) ListProjects(ctx context.Context, orgID, userID string) ([]Project, error)
- func (s *Store) ListProviderHealth(ctx context.Context, orgID string, from, to time.Time) ([]ProviderHealth, error)
- func (s *Store) ListProviders(ctx context.Context, orgID string) ([]Provider, error)
- func (s *Store) ListQuotas(ctx context.Context, orgID string) ([]Quota, error)
- func (s *Store) ListRoutes(ctx context.Context, orgID string) ([]Route, error)
- func (s *Store) ListTeamMembers(ctx context.Context, teamID string) ([]TeamMember, error)
- func (s *Store) ListTeams(ctx context.Context, orgID, userID string) ([]Team, error)
- func (s *Store) ListUsage(ctx context.Context, orgID string, f UsageFilter) ([]UsageEvent, error)
- func (s *Store) ListWasmHooks(ctx context.Context, orgID string) ([]WasmHook, error)
- func (s *Store) LoadSnapshotSource(ctx context.Context) (snapshot.Source, error)
- func (s *Store) LookupModelPrice(ctx context.Context, providerType, model string) (ModelPrice, bool, error)
- func (s *Store) PreviewOrgInvite(ctx context.Context, rawToken string) (*InvitePreview, error)
- func (s *Store) ProjectBelongsToOrg(ctx context.Context, projectID, orgID string) error
- func (s *Store) RemoveTeamMember(ctx context.Context, teamID, userID string) error
- func (s *Store) ReorderPolicies(ctx context.Context, orgID string, items []gatewayconfig.PolicyPriorityUpdate) error
- func (s *Store) ResendOrgInvite(ctx context.Context, orgID, inviteID string) (*OrgInvite, string, error)
- func (s *Store) RevokeOrgInvite(ctx context.Context, orgID, inviteID string) error
- func (s *Store) RotateCredential(ctx context.Context, credentialID, secretRef, secretValue string) (*Credential, error)
- func (s *Store) SetCredentialsMasterKey(raw string) error
- func (s *Store) SetOrgDefaultRetry(ctx context.Context, orgID string, retry *RetryConfig) error
- func (s *Store) SetOrgMailProvider(ctx context.Context, orgID, provider string) (*Organization, error)
- func (s *Store) SetOrgObjectStore(ctx context.Context, orgID string, cfg *gatewayconfig.ObjectStoreConfig) error
- func (s *Store) SummarizeUsage(ctx context.Context, orgID string, f UsageFilter) ([]UsageSummaryBucket, error)
- func (s *Store) TeamBelongsToOrg(ctx context.Context, teamID, orgID string) error
- func (s *Store) UpdateA2AAgent(ctx context.Context, id string, ...) (*A2AAgent, error)
- func (s *Store) UpdateCredential(ctx context.Context, credentialID, name, status string) (*Credential, error)
- func (s *Store) UpdateMCPBackend(ctx context.Context, id string, alias, name, baseURL, apiKeyEnv *string, ...) (*MCPBackend, error)
- func (s *Store) UpdateOrgMemberRole(ctx context.Context, orgID, actorUserID, targetUserID, role string) (*OrgMember, error)
- func (s *Store) UpdatePolicy(ctx context.Context, policyID string, name, expression *string, ...) (*RequestPolicy, error)
- func (s *Store) UpdateProvider(ctx context.Context, providerID, name, baseURL, apiKeyEnv string, ...) (*Provider, error)
- func (s *Store) UpdateQuota(ctx context.Context, quotaID string, limitValue int64) (*Quota, error)
- func (s *Store) UpdateRoute(ctx context.Context, routeID, model, providerID, targetModel string, ...) (*Route, error)
- func (s *Store) UpdateTeamMemberRole(ctx context.Context, teamID, actorUserID, targetUserID, role string) (*TeamMember, error)
- func (s *Store) UpdateWasmHook(ctx context.Context, id string, name, phase, moduleURI, digest *string, ...) (*WasmHook, error)
- func (s *Store) UserIsOrgMember(ctx context.Context, userID, orgID string) error
- type Team
- type TeamMember
- type Teams
- func (t *Teams) AddMember(ctx context.Context, teamID, userID, role string) error
- func (t *Teams) CountOwners(ctx context.Context, teamID string) (int, error)
- func (t *Teams) CreateWithOwner(ctx context.Context, team tenancy.Team, ownerUserID string) error
- func (t *Teams) Get(ctx context.Context, teamID string) (*tenancy.Team, error)
- func (t *Teams) GetMember(ctx context.Context, teamID, userID string) (*tenancy.TeamMember, error)
- func (t *Teams) GetMemberRole(ctx context.Context, teamID, userID string) (string, error)
- func (t *Teams) ListByOrg(ctx context.Context, orgID string) ([]tenancy.Team, error)
- func (t *Teams) ListByOrgForUser(ctx context.Context, orgID, userID string) ([]tenancy.Team, error)
- func (t *Teams) ListMembers(ctx context.Context, teamID string) ([]tenancy.TeamMember, error)
- func (t *Teams) OrgID(ctx context.Context, teamID string) (string, error)
- func (t *Teams) RemoveMember(ctx context.Context, teamID, userID string) error
- func (t *Teams) SetMemberRole(ctx context.Context, teamID, userID, role string) error
- type UsageEvent
- type UsageFilter
- type UsageOutbox
- type UsageQueries
- func (q *UsageQueries) InsertRecord(ctx context.Context, e usage.Record) error
- func (q *UsageQueries) List(ctx context.Context, orgID string, f usage.Filter) ([]usage.Record, error)
- func (q *UsageQueries) ListProviderHealth(ctx context.Context, orgID string, from, to time.Time) ([]usage.ProviderHealth, error)
- func (q *UsageQueries) LookupModelPrice(ctx context.Context, providerType, model string) (usage.ModelPrice, bool, error)
- func (q *UsageQueries) Summarize(ctx context.Context, orgID string, f usage.Filter) ([]usage.SummaryBucket, error)
- type UsageSink
- type UsageSummaryBucket
- type User
- type Users
- func (u *Users) Create(ctx context.Context, user identity.User) error
- func (u *Users) GetByEmail(ctx context.Context, email string) (*identity.User, error)
- func (u *Users) GetByID(ctx context.Context, id string) (*identity.User, error)
- func (u *Users) UpdatePassword(ctx context.Context, userID, passwordHash string) error
- type WasmHook
- type WasmHooks
- func (p *WasmHooks) Delete(ctx context.Context, id string) error
- func (p *WasmHooks) Get(ctx context.Context, id string) (*gatewayconfig.WasmHook, error)
- func (p *WasmHooks) Insert(ctx context.Context, item gatewayconfig.WasmHook) error
- func (p *WasmHooks) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.WasmHook, error)
- func (p *WasmHooks) OrgID(ctx context.Context, id string) (string, error)
- func (p *WasmHooks) Update(ctx context.Context, item gatewayconfig.WasmHook) (*gatewayconfig.WasmHook, error)
Constants ¶
const ( OrgRoleOwner = tenancy.OrgRoleOwner OrgRoleAdmin = tenancy.OrgRoleAdmin OrgRoleMember = tenancy.OrgRoleMember TeamRoleOwner = tenancy.TeamRoleOwner TeamRoleAdmin = tenancy.TeamRoleAdmin TeamRoleMember = tenancy.TeamRoleMember InviteStatusPending = tenancy.InviteStatusPending )
Variables ¶
This section is empty.
Functions ¶
func DecodeCapabilities ¶
func DecodeCapabilities(typ string, raw []byte) snapshot.ProviderCapabilities
func DecodeFallbacks ¶
func DecodeFallbacks(raw []byte) []gatewayconfig.RouteFallback
func DecodeObjectStore ¶
func DecodeObjectStore(raw []byte) *gatewayconfig.ObjectStoreConfig
func DecodeRetry ¶
func DecodeRetry(raw []byte) *gatewayconfig.RetryConfig
Types ¶
type A2AAgent ¶
type A2AAgent = gatewayconfig.A2AAgent
A2AAgent is the platform write-model A2A upstream agent.
type A2AAgents ¶
A2AAgents implements gatewayconfig.A2AAgentRepository.
func NewA2AAgents ¶
func (*A2AAgents) Update ¶
func (p *A2AAgents) Update(ctx context.Context, item gatewayconfig.A2AAgent) (*gatewayconfig.A2AAgent, error)
type APIKeys ¶
APIKeys implements access.APIKeyRepository.
func NewAPIKeys ¶
func (*APIKeys) ListByProject ¶
type AuditEvents ¶
AuditEvents implements audit.Store with Postgres.
type Counters ¶
Counters implements dataplane.CounterStore for lifetime (total) quota windows.
type Credential ¶
type Credential = credentials.Credential
Credential / Assignment are org-owned upstream secrets (canonical in credentials).
type CredentialAssignment ¶
type CredentialAssignment = credentials.Assignment
type Credentials ¶
Credentials implements credentials.Repository.
func NewCredentials ¶
func NewCredentials(pool *pgxpool.Pool) *Credentials
func (*Credentials) AssignmentOrgID ¶
func (*Credentials) DeleteAssignment ¶
func (r *Credentials) DeleteAssignment(ctx context.Context, id string) error
func (*Credentials) Get ¶
func (r *Credentials) Get(ctx context.Context, id string) (*credentials.Credential, error)
func (*Credentials) HasAssignments ¶
func (*Credentials) Insert ¶
func (r *Credentials) Insert(ctx context.Context, c credentials.Credential) error
func (*Credentials) InsertAssignment ¶
func (r *Credentials) InsertAssignment(ctx context.Context, a credentials.Assignment) error
func (*Credentials) ListAssignmentsByOrg ¶
func (r *Credentials) ListAssignmentsByOrg(ctx context.Context, orgID string) ([]credentials.Assignment, error)
func (*Credentials) ListByOrg ¶
func (r *Credentials) ListByOrg(ctx context.Context, orgID string) ([]credentials.Credential, error)
func (*Credentials) UpdateMeta ¶
func (r *Credentials) UpdateMeta(ctx context.Context, id, name, status string) (*credentials.Credential, error)
func (*Credentials) UpdateSecret ¶
func (r *Credentials) UpdateSecret(ctx context.Context, id string, secretRef string, payload []byte, keyVersion int) (*credentials.Credential, error)
func (*Credentials) UpsertAssignment ¶
func (r *Credentials) UpsertAssignment(ctx context.Context, a credentials.Assignment) (*credentials.Assignment, error)
type Environments ¶
Environments implements tenancy.EnvironmentRepository.
func NewEnvironments ¶
func NewEnvironments(pool *pgxpool.Pool) *Environments
func (*Environments) Delete ¶
func (e *Environments) Delete(ctx context.Context, environmentID string) error
func (*Environments) Get ¶
func (e *Environments) Get(ctx context.Context, environmentID string) (*tenancy.Environment, error)
func (*Environments) Insert ¶
func (e *Environments) Insert(ctx context.Context, item tenancy.Environment) error
func (*Environments) ListByProject ¶
func (e *Environments) ListByProject(ctx context.Context, projectID string) ([]tenancy.Environment, error)
type ExternalIdentities ¶
ExternalIdentities implements identity.ExternalIdentityRepository.
func NewExternalIdentities ¶
func NewExternalIdentities(pool *pgxpool.Pool) *ExternalIdentities
func (*ExternalIdentities) Create ¶
func (r *ExternalIdentities) Create(ctx context.Context, item identity.ExternalIdentity) error
func (*ExternalIdentities) GetByProviderSubject ¶
func (r *ExternalIdentities) GetByProviderSubject(ctx context.Context, provider, subject string) (*identity.ExternalIdentity, error)
type InviteOutcome ¶
type InviteOutcome = tenancy.InviteOutcome
type InvitePreview ¶
type InvitePreview = tenancy.InvitePreview
type Invites ¶
Invites implements tenancy.InviteRepository.
func NewInvites ¶
func (*Invites) GetByTokenHash ¶
func (*Invites) GetPendingByOrgEmail ¶
func (*Invites) MarkAccepted ¶
func (*Invites) MarkRevoked ¶
type LocalDevSeed ¶
type LocalDevSeed struct {
OrgID string
TeamID string
ProjectID string
ProviderID string
UserID string
RouteID string
KeyID string
AdminEmail string
AdminName string
PasswordHash string
OpenAIBaseURL string
OpenAIAPIKeyEnv string
DefaultModel string
APIKeyHash string
APIKeyPrefix string
Now time.Time
}
LocalDevSeed holds values for the standard local-dev dataset.
type MCPBackend ¶
type MCPBackend = gatewayconfig.MCPBackend
MCPBackend is the platform write-model MCP Streamable HTTP upstream.
type MCPBackends ¶
MCPBackends implements gatewayconfig.MCPBackendRepository.
func NewMCPBackends ¶
func NewMCPBackends(pool *pgxpool.Pool) *MCPBackends
func (*MCPBackends) Get ¶
func (p *MCPBackends) Get(ctx context.Context, id string) (*gatewayconfig.MCPBackend, error)
func (*MCPBackends) Insert ¶
func (p *MCPBackends) Insert(ctx context.Context, item gatewayconfig.MCPBackend) error
func (*MCPBackends) ListByOrg ¶
func (p *MCPBackends) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.MCPBackend, error)
func (*MCPBackends) Update ¶
func (p *MCPBackends) Update(ctx context.Context, item gatewayconfig.MCPBackend) (*gatewayconfig.MCPBackend, error)
type ModelPrice ¶
type ModelPrice = usage.ModelPrice
type Organization ¶
type Organization = tenancy.Organization
type Organizations ¶
Organizations implements tenancy.OrganizationRepository.
func NewOrganizations ¶
func NewOrganizations(pool *pgxpool.Pool) *Organizations
func (*Organizations) AddMember ¶
func (o *Organizations) AddMember(ctx context.Context, orgID, userID, role string) error
func (*Organizations) ApplyRoleChange ¶
func (*Organizations) CountOwners ¶
func (*Organizations) CreateWithOwner ¶
func (o *Organizations) CreateWithOwner(ctx context.Context, org tenancy.Organization, ownerUserID string) error
func (*Organizations) Get ¶
func (o *Organizations) Get(ctx context.Context, orgID string) (*tenancy.Organization, error)
func (*Organizations) GetDefaultRetry ¶
func (o *Organizations) GetDefaultRetry(ctx context.Context, orgID string) (*gatewayconfig.RetryConfig, error)
func (*Organizations) GetMemberRole ¶
func (*Organizations) GetObjectStore ¶
func (o *Organizations) GetObjectStore(ctx context.Context, orgID string) (*gatewayconfig.ObjectStoreConfig, error)
func (*Organizations) ListForUser ¶
func (o *Organizations) ListForUser(ctx context.Context, userID string) ([]tenancy.Organization, error)
func (*Organizations) ListMembers ¶
func (*Organizations) SetDefaultRetry ¶
func (o *Organizations) SetDefaultRetry(ctx context.Context, orgID string, retry *gatewayconfig.RetryConfig) error
func (*Organizations) SetMailProvider ¶
func (o *Organizations) SetMailProvider(ctx context.Context, orgID, provider string) error
func (*Organizations) SetObjectStore ¶
func (o *Organizations) SetObjectStore(ctx context.Context, orgID string, cfg *gatewayconfig.ObjectStoreConfig) error
type PasswordResets ¶
PasswordResets implements identity.PasswordResetRepository.
func NewPasswordResets ¶
func NewPasswordResets(pool *pgxpool.Pool) *PasswordResets
func (*PasswordResets) Create ¶
func (r *PasswordResets) Create(ctx context.Context, token identity.PasswordResetToken) error
func (*PasswordResets) DeleteUnusedForUser ¶
func (r *PasswordResets) DeleteUnusedForUser(ctx context.Context, userID string) error
func (*PasswordResets) GetByTokenHash ¶
func (r *PasswordResets) GetByTokenHash(ctx context.Context, hash string) (*identity.PasswordResetToken, error)
type PlatformEventOutbox ¶
PlatformEventOutbox writes and drains the platform_event_outbox table.
func NewPlatformEventOutbox ¶
func NewPlatformEventOutbox(pool *pgxpool.Pool) *PlatformEventOutbox
func (*PlatformEventOutbox) ClaimBatch ¶
func (*PlatformEventOutbox) Enqueue ¶
func (o *PlatformEventOutbox) Enqueue(ctx context.Context, payload []byte) error
func (*PlatformEventOutbox) MarkProcessed ¶
func (o *PlatformEventOutbox) MarkProcessed(ctx context.Context, id int64) error
type Policies ¶
Policies implements gatewayconfig.PolicyRepository.
func NewPolicies ¶
func (*Policies) Get ¶
func (p *Policies) Get(ctx context.Context, policyID string) (*gatewayconfig.RequestPolicy, error)
func (*Policies) Insert ¶
func (p *Policies) Insert(ctx context.Context, item gatewayconfig.RequestPolicy) error
func (*Policies) ListByOrg ¶
func (p *Policies) ListByOrg(ctx context.Context, orgID string) ([]gatewayconfig.RequestPolicy, error)
func (*Policies) Update ¶
func (p *Policies) Update(ctx context.Context, item gatewayconfig.RequestPolicy) (*gatewayconfig.RequestPolicy, error)
func (*Policies) UpdatePriorities ¶
func (p *Policies) UpdatePriorities(ctx context.Context, orgID string, items []gatewayconfig.PolicyPriorityUpdate) error
type PriceLookup ¶
PriceLookup reads model_prices for cost computation.
func (*PriceLookup) LookupModelPrice ¶
type Projects ¶
Projects implements tenancy.ProjectRepository.
func NewProjects ¶
func (*Projects) ListByOrgForUser ¶
type Provider ¶
type Provider = gatewayconfig.Provider
Provider / Route are platform write-model config (canonical in gatewayconfig).
type ProviderHealth ¶
type ProviderHealth = usage.ProviderHealth
type Providers ¶
Providers implements gatewayconfig.ProviderRepository.
func NewProviders ¶
type Quota ¶
type Quota = gatewayconfig.Quota
Quota is the platform write-model quota (canonical type in gatewayconfig).
type Quotas ¶
Quotas implements gatewayconfig.QuotaRepository.
func (*Quotas) UpdateLimit ¶
type RequestPolicy ¶
type RequestPolicy = gatewayconfig.RequestPolicy
RequestPolicy is the platform write-model CEL policy (canonical in gatewayconfig).
type RetryConfig ¶
type RetryConfig = gatewayconfig.RetryConfig
type Route ¶
type Route = gatewayconfig.Route
type RouteFallback ¶
type RouteFallback = gatewayconfig.RouteFallback
type Routes ¶
Routes implements gatewayconfig.RouteRepository.
func (*Routes) Update ¶
func (r *Routes) Update(ctx context.Context, routeID, model, providerID, targetModel string, fallbacks []gatewayconfig.RouteFallback, retry *gatewayconfig.RetryConfig, strategy string, weight int) (*gatewayconfig.Route, error)
type SeedWriter ¶
SeedWriter persists local-dev bootstrap data.
func NewSeedWriter ¶
func NewSeedWriter(pool *pgxpool.Pool) *SeedWriter
func (*SeedWriter) EnsureAudioRoutes ¶
func (w *SeedWriter) EnsureAudioRoutes(ctx context.Context, orgID, providerID string, now time.Time) (changed bool, err error)
EnsureAudioRoutes upserts tts-1 / whisper-1 routes. changed is true when a route was newly created.
func (*SeedWriter) EnsureElevenLabs ¶
EnsureElevenLabs upserts the ElevenLabs provider and curated TTS/STT routes.
func (*SeedWriter) ProviderExists ¶
func (*SeedWriter) SeedLocalDev ¶
func (w *SeedWriter) SeedLocalDev(ctx context.Context, s LocalDevSeed) error
SeedLocalDev upserts the standard local-dev dataset in a transaction.
func (*SeedWriter) UpsertEchoExtension ¶
UpsertEchoExtension upserts the echo provider + echo-demo route for an org.
type Seeder ¶
type Seeder struct {
// contains filtered or unexported fields
}
func (*Seeder) EnsureEchoExtension ¶
EnsureEchoExtension upserts prov_echo + echo-demo route for org_local and republishes.
func (*Seeder) EnsureElevenLabs ¶
EnsureElevenLabs upserts prov_elevenlabs + curated TTS/STT routes for org_local.
func (*Seeder) EnsureLocalAudioRoutes ¶
EnsureLocalAudioRoutes upserts tts-1 / whisper-1 → prov_openai for org_local and republishes.
type SnapshotSourceLoader ¶
SnapshotSourceLoader loads compile inputs from platform tables.
func NewSnapshotSourceLoader ¶
func NewSnapshotSourceLoader(pool *pgxpool.Pool) *SnapshotSourceLoader
type SnapshotStore ¶
SnapshotStore persists compiled gateway snapshots in Postgres.
func NewSnapshotStore ¶
func NewSnapshotStore(pool *pgxpool.Pool) *SnapshotStore
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) APIKeyBelongsToOrg ¶
func (*Store) AcceptOrgInvite ¶
func (*Store) AddOrgMemberByEmail ¶
func (*Store) AddTeamMember ¶
func (*Store) AssignCredential ¶
func (*Store) CanAccessTeam ¶
func (*Store) CanChangeTeamRoles ¶
func (*Store) CanManageTeam ¶
func (*Store) CreateA2AAgent ¶
func (*Store) CreateAPIKey ¶
func (s *Store) CreateAPIKey(ctx context.Context, orgID, kind, ownerUserID, projectID, environmentID, name, rawKey string) (*APIKey, error)
CreateAPIKey inserts a key. kind must be personal or service_account. Personal: ownerUserID required, projectID must be empty. Service account: ownerUserID empty, projectID optional (empty = org-wide).
func (*Store) CreateCredential ¶
func (*Store) CreateEnvironment ¶
func (*Store) CreateMCPBackend ¶
func (*Store) CreateOrganization ¶
func (*Store) CreatePolicy ¶
func (s *Store) CreatePolicy(ctx context.Context, orgID, name, expression string, actions []gatewayconfig.PolicyAction, enabled bool, priority int) (*RequestPolicy, error)
func (*Store) CreateProject ¶
func (*Store) CreateProvider ¶
func (s *Store) CreateProvider(ctx context.Context, orgID, name, typ, baseURL, apiKeyEnv string, caps snapshot.ProviderCapabilities, config json.RawMessage) (*Provider, error)
func (*Store) CreateQuota ¶
func (*Store) CreateRoute ¶
func (s *Store) CreateRoute(ctx context.Context, orgID, model, providerID, targetModel string, fallbacks []RouteFallback, retry *RetryConfig, strategy string, weight int) (*Route, error)
func (*Store) CreateTeam ¶
func (*Store) CreateUser ¶
func (*Store) CreateWasmHook ¶
func (*Store) DeleteCredential ¶
func (*Store) DeleteCredentialAssignment ¶
func (*Store) DeleteEnvironment ¶
func (*Store) DeleteMCPBackend ¶
func (*Store) DeletePolicy ¶
func (*Store) DeleteProvider ¶
func (*Store) EnqueueUsage ¶
func (*Store) EnvironmentBelongsToProject ¶
func (*Store) FindByEmail ¶
func (*Store) GetA2AAgentOrgID ¶
func (*Store) GetAPIKeyOrgID ¶
func (*Store) GetCounter ¶
func (s *Store) GetCounter(ctx context.Context, scopeType, scopeID, metric, window string) (int64, error)
GetCounter / IncrCounter / EnqueueUsage remain for transitional callers. Prefer internal/adapters/postgres for new gateway/worker wiring.
func (*Store) GetCredential ¶
func (*Store) GetCredentialAssignmentOrgID ¶
func (*Store) GetCredentialOrgID ¶
func (*Store) GetEnvironment ¶
func (*Store) GetEnvironmentOrgID ¶
func (*Store) GetMCPBackendOrgID ¶
func (*Store) GetOrgDefaultRetry ¶
func (*Store) GetOrgMemberRole ¶
func (*Store) GetOrgObjectStore ¶
func (s *Store) GetOrgObjectStore(ctx context.Context, orgID string) (*gatewayconfig.ObjectStoreConfig, error)
func (*Store) GetOrganization ¶
func (*Store) GetPolicyOrgID ¶
func (*Store) GetProjectOrgID ¶
func (*Store) GetProviderOrgID ¶
func (*Store) GetQuotaOrgID ¶
func (*Store) GetRouteOrgID ¶
func (*Store) GetTeamOrgID ¶
func (*Store) GetUserByEmail ¶
func (*Store) GetUserByID ¶
func (*Store) GetWasmHookOrgID ¶
func (*Store) IncrCounter ¶
func (*Store) InsertUsage ¶
func (s *Store) InsertUsage(ctx context.Context, e UsageEvent) error
func (*Store) InviteOrgMember ¶
func (*Store) IsOrgAdmin ¶
func (*Store) IsOrgMember ¶
func (*Store) IsOrgOwner ¶
func (*Store) ListA2AAgents ¶
func (*Store) ListAPIKeys ¶
func (*Store) ListCredentialAssignments ¶
func (*Store) ListCredentials ¶
func (*Store) ListEnvironments ¶
func (*Store) ListMCPBackends ¶
func (*Store) ListOrgAPIKeys ¶
func (*Store) ListOrgInvites ¶
func (*Store) ListOrgMembers ¶
func (*Store) ListOrganizationsForUser ¶
func (*Store) ListPolicies ¶
func (*Store) ListProjects ¶
func (*Store) ListProviderHealth ¶
func (s *Store) ListProviderHealth(ctx context.Context, orgID string, from, to time.Time) ([]ProviderHealth, error)
ListProviderHealth aggregates usage_events for models routed to each org provider.
func (*Store) ListProviders ¶
func (*Store) ListQuotas ¶
func (*Store) ListRoutes ¶
func (*Store) ListTeamMembers ¶
func (*Store) ListUsage ¶
func (s *Store) ListUsage(ctx context.Context, orgID string, f UsageFilter) ([]UsageEvent, error)
func (*Store) ListWasmHooks ¶
func (*Store) LoadSnapshotSource ¶
func (*Store) LookupModelPrice ¶
func (*Store) PreviewOrgInvite ¶
func (*Store) ProjectBelongsToOrg ¶
func (*Store) RemoveTeamMember ¶
func (*Store) ReorderPolicies ¶
func (s *Store) ReorderPolicies(ctx context.Context, orgID string, items []gatewayconfig.PolicyPriorityUpdate) error
func (*Store) ResendOrgInvite ¶
func (*Store) RevokeOrgInvite ¶
func (*Store) RotateCredential ¶
func (*Store) SetCredentialsMasterKey ¶
SetCredentialsMasterKey configures encryption for encrypted_db credentials. Empty raw leaves encrypted_db creates disabled.
func (*Store) SetOrgDefaultRetry ¶
func (*Store) SetOrgMailProvider ¶
func (*Store) SetOrgObjectStore ¶
func (s *Store) SetOrgObjectStore(ctx context.Context, orgID string, cfg *gatewayconfig.ObjectStoreConfig) error
func (*Store) SummarizeUsage ¶
func (s *Store) SummarizeUsage(ctx context.Context, orgID string, f UsageFilter) ([]UsageSummaryBucket, error)
func (*Store) TeamBelongsToOrg ¶
func (*Store) UpdateA2AAgent ¶
func (*Store) UpdateCredential ¶
func (*Store) UpdateMCPBackend ¶
func (*Store) UpdateOrgMemberRole ¶
func (s *Store) UpdateOrgMemberRole(ctx context.Context, orgID, actorUserID, targetUserID, role string) (*OrgMember, error)
UpdateOrgMemberRole changes a member's role. Only the org owner may call this. Promoting to owner transfers ownership (actor becomes admin). Cannot demote the sole owner.
func (*Store) UpdatePolicy ¶
func (s *Store) UpdatePolicy(ctx context.Context, policyID string, name, expression *string, actions []gatewayconfig.PolicyAction, enabled *bool, priority *int) (*RequestPolicy, error)
func (*Store) UpdateProvider ¶
func (*Store) UpdateQuota ¶
func (*Store) UpdateRoute ¶
func (s *Store) UpdateRoute(ctx context.Context, routeID, model, providerID, targetModel string, fallbacks []RouteFallback, retry *RetryConfig, strategy string, weight int) (*Route, error)
func (*Store) UpdateTeamMemberRole ¶
func (*Store) UpdateWasmHook ¶
type TeamMember ¶
type TeamMember = tenancy.TeamMember
type Teams ¶
Teams implements tenancy.TeamRepository.
func (*Teams) CountOwners ¶
func (*Teams) CreateWithOwner ¶
func (*Teams) GetMemberRole ¶
func (*Teams) ListByOrgForUser ¶
func (*Teams) ListMembers ¶
func (*Teams) RemoveMember ¶
type UsageEvent ¶
UsageEvent is the control-plane read model (persisted row + joins). Emit/outbox use the canonical usage.Event.
type UsageFilter ¶
type UsageOutbox ¶
UsageOutbox writes and drains the usage_outbox table.
func (*UsageOutbox) ClaimBatch ¶
func (*UsageOutbox) Enqueue ¶
func (o *UsageOutbox) Enqueue(ctx context.Context, payload []byte) error
Enqueue implements a write-side port for the gateway request path.
func (*UsageOutbox) MarkProcessed ¶
func (o *UsageOutbox) MarkProcessed(ctx context.Context, id int64) error
type UsageQueries ¶
UsageQueries reads and writes usage_events for the control plane.
func NewUsageQueries ¶
func NewUsageQueries(pool *pgxpool.Pool) *UsageQueries
func (*UsageQueries) InsertRecord ¶
func (*UsageQueries) ListProviderHealth ¶
func (q *UsageQueries) ListProviderHealth(ctx context.Context, orgID string, from, to time.Time) ([]usage.ProviderHealth, error)
func (*UsageQueries) LookupModelPrice ¶
func (q *UsageQueries) LookupModelPrice(ctx context.Context, providerType, model string) (usage.ModelPrice, bool, error)
type UsageSummaryBucket ¶
type UsageSummaryBucket = usage.SummaryBucket
type Users ¶
Users implements identity.UserRepository.
func (*Users) GetByEmail ¶
type WasmHook ¶
type WasmHook = gatewayconfig.WasmHook
WasmHook is the platform write-model WASM lifecycle binding.
type WasmHooks ¶
WasmHooks implements gatewayconfig.WasmHookRepository.
func NewWasmHooks ¶
func (*WasmHooks) Update ¶
func (p *WasmHooks) Update(ctx context.Context, item gatewayconfig.WasmHook) (*gatewayconfig.WasmHook, error)
Source Files
¶
- a2a_agents.go
- apikeys.go
- audit.go
- counters.go
- credentials.go
- environments.go
- external_identities.go
- invites.go
- mcp_backends.go
- migrate.go
- migrate_policy.go
- outbox.go
- platform_events.go
- platform_seeder.go
- platform_store.go
- policies.go
- providers_routes.go
- quotas.go
- seed.go
- snapshot.go
- snapshot_source.go
- tenancy.go
- usage.go
- wasm_hooks.go