Documentation
¶
Index ¶
- Constants
- type GitHubWebhookCredentialIntegrations
- type Option
- func WithAPIRateLimit(client *redistore.Client, readsPerHour, writesPerHour, burst int) Option
- func WithAgentConfigOptions(opts agentconfig.CompileOptions) Option
- func WithAgentEventWakeupSubscriber(subscriber notifications.AgentEventWakeupSubscriber) Option
- func WithAgentStreamDeltaSubscriber(subscriber notifications.AgentStreamDeltaSubscriber) Option
- func WithAgentStreamRecorder(recorder *metrics.AgentStreamRecorder) Option
- func WithAgentToolCallUpdateSubscriber(subscriber notifications.AgentToolCallUpdateSubscriber) Option
- func WithAllowInsecureLocalHostBypass() Option
- func WithAllowInsecureModelProviderEndpoints() Option
- func WithAuthClientRateLimits(limits authn.ClientRateLimits) Option
- func WithAuthHTTPClient(client *http.Client) Option
- func WithAuthRateLimiter(limiter httpauth.RateLimiter) Option
- func WithBillingURL(billingURL string) Option
- func WithDaemonNotifications(subscriber notifications.DaemonWakeupSubscriber, ...) Option
- func WithDaemonRecorder(recorder *metrics.DaemonRecorder) Option
- func WithDaemonReleaseURL(releaseURL string) Option
- func WithDaemonReplyPublisher(publisher replyChannelPublisher) Option
- func WithDaemonSocketFallbackDrainTiming(interval time.Duration, jitter time.Duration) Option
- func WithDefaultMachinePools(defaultPoolTemplates []executionstore.DefaultMachinePoolTemplate) Option
- func WithDefaultModelProvider(template *modelstore.DefaultModelProviderTemplate) Option
- func WithEmailSender(sender httpauth.EmailSender) Option
- func WithEndpointAllowlist(endpointAllowlist *ssrf.Allowlist) Option
- func WithHTTPRecorder(recorder *metrics.HTTPRecorder) Option
- func WithHostedCredentialProvisioner(provisioner modelprovider.HostedCredentialProvisioner) Option
- func WithIntegrationHTTPClient(client *http.Client) Option
- func WithIntegrationInboxIntakeRecorder(recorder *metrics.IntegrationInboxIntakeRecorder) Option
- func WithMCPRegistry(registry *mcpregistry.Registry) Option
- func WithMachinePoolManager(manager *machinepool.Manager) Option
- func WithModelDiscoverer(discoverer modelprovider.DiscoverFunc) Option
- func WithModelLimitsCatalog(catalog *modelprovider.LimitsCatalog) Option
- func WithOAuthClientMetadataHTTPClient(client *http.Client) Option
- func WithOAuthStateStore(store httpauth.OAuthStateStore) Option
- func WithPasswordAuthEnabled(signupEnabled, resetEnabled bool) Option
- func WithPublicAPIURL(publicAPIURL string) Option
- func WithPublicURL(publicURL string) Option
- func WithRedisBackedAuth(client *redistore.Client) Option
- func WithSecretKeyWrapper(keyWrapper secrets.KeyWrapper) Option
- func WithSkillDownloadSigningKey(key []byte) Option
- func WithSlackOAuth(config SlackOAuthConfig) Option
- func WithTrustedProxyCIDRs(cidrs []string) Option
- func WithWebAssets(assets fs.FS) Option
- type Server
- type SlackOAuthConfig
Constants ¶
View Source
const GitHubEventsPath = "/api/integrations/github/events"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubWebhookCredentialIntegrations ¶
type GitHubWebhookCredentialIntegrations func( context.Context, string, int, ) ([]integrationstore.IntegrationRecord, error)
type Option ¶
type Option func(*Server)
func WithAPIRateLimit ¶
func WithAgentConfigOptions ¶
func WithAgentConfigOptions(opts agentconfig.CompileOptions) Option
func WithAgentEventWakeupSubscriber ¶
func WithAgentEventWakeupSubscriber(subscriber notifications.AgentEventWakeupSubscriber) Option
func WithAgentStreamDeltaSubscriber ¶
func WithAgentStreamDeltaSubscriber(subscriber notifications.AgentStreamDeltaSubscriber) Option
func WithAgentStreamRecorder ¶
func WithAgentStreamRecorder(recorder *metrics.AgentStreamRecorder) Option
func WithAgentToolCallUpdateSubscriber ¶
func WithAgentToolCallUpdateSubscriber(subscriber notifications.AgentToolCallUpdateSubscriber) Option
func WithAllowInsecureLocalHostBypass ¶
func WithAllowInsecureLocalHostBypass() Option
WithAllowInsecureLocalHostBypass exempts loopback and Docker's host.docker.internal alias from the public-host guard, so local daemons/containers can reach the API without a matching Host header. Only wire this when OMNARA_ALLOW_INSECURE_DEV_DEFAULTS is set.
func WithAllowInsecureModelProviderEndpoints ¶
func WithAllowInsecureModelProviderEndpoints() Option
func WithAuthClientRateLimits ¶
func WithAuthClientRateLimits(limits authn.ClientRateLimits) Option
func WithAuthHTTPClient ¶
func WithAuthRateLimiter ¶
func WithAuthRateLimiter(limiter httpauth.RateLimiter) Option
func WithBillingURL ¶
func WithDaemonNotifications ¶
func WithDaemonNotifications( subscriber notifications.DaemonWakeupSubscriber, presence notifications.DaemonPresenceStore, replicaID uuid.UUID, ) Option
func WithDaemonRecorder ¶
func WithDaemonRecorder(recorder *metrics.DaemonRecorder) Option
func WithDaemonReleaseURL ¶
func WithDaemonReplyPublisher ¶
func WithDaemonReplyPublisher(publisher replyChannelPublisher) Option
func WithDefaultMachinePools ¶
func WithDefaultMachinePools(defaultPoolTemplates []executionstore.DefaultMachinePoolTemplate) Option
func WithDefaultModelProvider ¶
func WithDefaultModelProvider(template *modelstore.DefaultModelProviderTemplate) Option
func WithEmailSender ¶
func WithEmailSender(sender httpauth.EmailSender) Option
func WithEndpointAllowlist ¶
func WithHTTPRecorder ¶
func WithHTTPRecorder(recorder *metrics.HTTPRecorder) Option
func WithHostedCredentialProvisioner ¶
func WithHostedCredentialProvisioner(provisioner modelprovider.HostedCredentialProvisioner) Option
func WithIntegrationInboxIntakeRecorder ¶
func WithIntegrationInboxIntakeRecorder(recorder *metrics.IntegrationInboxIntakeRecorder) Option
func WithMCPRegistry ¶
func WithMCPRegistry(registry *mcpregistry.Registry) Option
func WithMachinePoolManager ¶
func WithMachinePoolManager(manager *machinepool.Manager) Option
func WithModelDiscoverer ¶
func WithModelDiscoverer(discoverer modelprovider.DiscoverFunc) Option
func WithModelLimitsCatalog ¶
func WithModelLimitsCatalog(catalog *modelprovider.LimitsCatalog) Option
func WithOAuthStateStore ¶
func WithOAuthStateStore(store httpauth.OAuthStateStore) Option
func WithPasswordAuthEnabled ¶
func WithPublicAPIURL ¶
func WithPublicURL ¶
func WithRedisBackedAuth ¶
func WithSecretKeyWrapper ¶
func WithSecretKeyWrapper(keyWrapper secrets.KeyWrapper) Option
func WithSlackOAuth ¶
func WithSlackOAuth(config SlackOAuthConfig) Option
func WithTrustedProxyCIDRs ¶
func WithWebAssets ¶
WithWebAssets configures embedded SPA assets.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GitHubEventsHandler ¶
type SlackOAuthConfig ¶
type SlackOAuthConfig = slack.OAuthConfig
Source Files
¶
- actor_routes.go
- agent_config_tools_routes.go
- agent_event_reconciler.go
- agent_event_stream_subagents.go
- agent_interaction_routes.go
- agent_launch_integrations.go
- agent_routes.go
- agent_runtime_routes.go
- agent_tool_call_routes.go
- api_mcp.go
- api_rate_limit.go
- artifact_routes.go
- compiled_config.go
- cron_trigger_routes.go
- daemon_file_routes.go
- daemon_git_credentials_routes.go
- daemon_routes.go
- daemon_socket.go
- daemon_socket_hub.go
- daemon_socket_protocol.go
- daemon_socket_reports.go
- daemon_socket_route.go
- discord_interaction_routes.go
- event_webhook_routes.go
- github_app_setup_callback.go
- github_app_setup_installations.go
- github_app_setup_routes.go
- github_event_routes.go
- host_guard.go
- ids.go
- integration_callbacks.go
- integration_catalog_routes.go
- integration_credential_errors.go
- integration_event_routes_fanout.go
- integration_github_repositories_routes.go
- integration_oauth_providers.go
- integration_oauth_routes.go
- integration_oauth_setup.go
- integration_profile_choice_routes.go
- integration_routes.go
- integration_setup_identity.go
- integration_setup_routes.go
- integration_subscription_routes.go
- json.go
- machine_daemon_routes.go
- machine_pool_routes.go
- machine_routes.go
- mcp_oauth_routes.go
- mcp_registry_routes.go
- mcp_resource_metadata.go
- mcp_server_tools_routes.go
- me_routes.go
- media_ingest.go
- memory_file_routes.go
- memory_routes.go
- middleware.go
- model_provider_config_routes.go
- oauth_helpers.go
- omnarad_install.go
- openapi_helpers.go
- openapi_policies.go
- openapi_request_validator.go
- openapi_strict.go
- org_agent_routes.go
- org_api_key_routes.go
- org_invitation_routes.go
- org_members_routes.go
- org_overview_routes.go
- org_routes.go
- pagination.go
- personal_access_token_routes.go
- project_machine_grant_routes.go
- project_machine_pool_grant_routes.go
- project_routes.go
- public_projection.go
- resource_list.go
- routes.go
- scoped_routes.go
- secret_routes.go
- server.go
- skill_routes.go
- slack_action_routes.go
- slack_event_routes.go
- slack_setup_icon.go
- spa.go
- tool_catalog_routes.go
- usage_routes.go
- usage_timeseries_routes.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package openapi provides primitives to interact with the openapi HTTP API.
|
Package openapi provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.