Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/scion
/ functions
Functions
37,088 in github.com/GoogleCloudPlatform/scion
⨍
Functions
37,088
◇
Types & classes
3,520
↓ 90 callers
Function
GetGlobalDir
()
pkg/config/paths.go:156
↓ 89 callers
Method
Get
Get retrieves a secret including its value.
pkg/secret/secret.go:112
↓ 85 callers
Function
Forbidden
Forbidden writes a 403 Forbidden response.
pkg/hub/errors.go:190
↓ 85 callers
Function
NewHTTPAgentDispatcherWithClient
NewHTTPAgentDispatcherWithClient creates a new HTTP-based agent dispatcher with a custom client.
pkg/hub/httpdispatcher.go:168
↓ 84 callers
Method
All
All executes the query and returns a list of Users.
pkg/ent/user_query.go:238
↓ 81 callers
Function
textResponse
textResponse creates a synchronous EventResponse containing a text message.
extras/scion-chat-app/internal/chatapp/commands.go:1268
↓ 80 callers
Method
Mutate
Mutate implements the ent.Mutator interface.
pkg/ent/client.go:446
↓ 80 callers
Method
ProjectID
()
pkg/hub/identity.go:41
↓ 80 callers
Function
statusf
statusf prints an informational/progress message to stderr. This keeps stdout clean for structured output (JSON, tabwriter, etc.) while still showing
cmd/output.go:32
↓ 79 callers
Method
CreatedBy
CreatedBy returns the value of the "created_by" field in the mutation.
pkg/ent/mutation.go:1859
↓ 79 callers
Method
Op
Op returns the operation name.
pkg/ent/mutation.go:39375
↓ 78 callers
Function
scanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
pkg/ent/ent.go:649
↓ 77 callers
Method
Remove
(ctx context.Context, email string)
pkg/hubclient/allow_list.go:29
↓ 75 callers
Method
Email
()
pkg/hub/identity.go:33
↓ 74 callers
Method
Bool
Bool returns a single bool from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:542
↓ 72 callers
Function
GetIdentityFromContext
GetIdentityFromContext returns the authenticated identity (user or agent).
pkg/hub/identity.go:151
↓ 70 callers
Function
GetResolvedProjectDir
GetResolvedProjectDir returns the active .scion directory based on precedence. This is a convenience wrapper around ResolveProjectPath that discards t
pkg/config/paths.go:97
↓ 70 callers
Method
Only
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is foun
pkg/ent/user_query.go:185
↓ 69 callers
Method
Set
Set creates or updates a secret. Returns whether a new secret was created.
pkg/secret/secret.go:115
↓ 69 callers
Method
addEventListener
( type: string, listener: EventListenerOrEventListenerObject | ((ev: CustomEvent) => void), option
web/src/client/sse-client.ts:215
↓ 68 callers
Function
Slugify
Slugify converts a string to a URL-safe slug. It normalizes unicode, converts to lowercase, replaces non-alphanumeric characters with dashes, and enfo
pkg/api/slug.go:45
↓ 68 callers
Function
wrapHubError
wrapHubError wraps a Hub error with guidance to disable Hub integration.
cmd/common.go:310
↓ 67 callers
Function
setupCreateAgentServer
setupCreateAgentServer creates a test server with a dispatcher and a project+broker ready for agent creation.
pkg/hub/handlers_agent_test.go:844
↓ 66 callers
Function
NewChannelEventPublisher
NewChannelEventPublisher creates a new ChannelEventPublisher.
pkg/hub/events.go:250
↓ 65 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TemplateCreate.OnConflict documentation for more info.
pkg/ent/template_create.go:1091
↓ 65 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TemplateCreateBulk.OnConflict documentation for more info.
pkg/ent/template_create.go:1764
↓ 65 callers
Method
post
post performs an HTTP POST request with fallback.
pkg/hubclient/client.go:299
↓ 64 callers
Method
Mode
Mode returns the value of the "mode" field in the mutation.
pkg/ent/mutation.go:27939
↓ 64 callers
Method
WriteHeader
(code int)
extras/scion-a2a-bridge/internal/bridge/metrics.go:90
↓ 64 callers
Function
createTestStore
createTestStore creates an in-memory SQLite store for testing.
pkg/hub/httpdispatcher_test.go:37
↓ 63 callers
Method
GetStorage
GetStorage returns the current storage backend.
pkg/hub/server.go:1508
↓ 62 callers
Method
Subscribe
Subscribe returns a channel that receives events matching the given subject patterns, along with an unsubscribe function. Patterns use NATS-style wild
pkg/hub/events.go:52
↓ 62 callers
Method
buildPod
(namespace string, config RunConfig)
pkg/runtime/k8s_runtime.go:880
↓ 62 callers
Function
debugf
debugf prints a debug message if debug mode is enabled.
pkg/hubsync/sync.go:40
↓ 62 callers
Function
newFakeTGServerV2
(t *testing.T)
extras/scion-telegram/internal/telegram/broker_v2_test.go:89
↓ 61 callers
Function
UpdateSetting
UpdateSetting updates a specific setting key in the specified scope (global or local). It reads from existing settings file (YAML or JSON) and writes
pkg/config/settings.go:536
↓ 61 callers
Function
can
(capabilities: Capabilities | undefined, action: string)
web/src/shared/types.ts:694
↓ 60 callers
Method
Wait
(_ context.Context)
pkg/plugin/manager.go:343
↓ 59 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the RuntimeBrokerCreate.OnConflict documentation for more info.
pkg/ent/runtimebroker_create.go:1033
↓ 59 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the RuntimeBrokerCreateBulk.OnConflict documentation for more info.
pkg/ent/runtimebroker_create.go:1664
↓ 58 callers
Method
Configure
Configure sends configuration to the remote broker.
pkg/plugin/config.go:140
↓ 58 callers
Method
Fields
Fields of the User.
pkg/ent/schema/user.go:33
↓ 58 callers
Function
ResolveProjectPath
ResolveProjectPath resolves a project path to an absolute path and indicates if it's the global project. If path is empty, it attempts to find the pro
pkg/config/paths.go:219
↓ 58 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the HarnessConfigCreate.OnConflict documentation for more info.
pkg/ent/harnessconfig_create.go:1030
↓ 58 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the HarnessConfigCreateBulk.OnConflict documentation for more info.
pkg/ent/harnessconfig_create.go:1654
↓ 58 callers
Function
newTestK8sRuntime
()
pkg/runtime/k8s_secrets_test.go:33
↓ 57 callers
Function
NewClient
NewClient returns a fresh, migrated Ent client for the active backend with cleanup registered on t. See the package doc for backend selection.
pkg/store/enttest/enttest.go:44
↓ 57 callers
Method
SetName
SetName sets the "name" field.
pkg/ent/mutation.go:1697
↓ 57 callers
Function
newTestGroupStore
(t *testing.T)
pkg/store/entadapter/group_store_test.go:30
↓ 57 callers
Function
testTemplateBootstrapServer
testTemplateBootstrapServer creates a hub Server backed by an in-memory SQLite store and a mock storage, suitable for template bootstrap tests.
pkg/hub/template_bootstrap_test.go:39
↓ 57 callers
Function
tid
tid deterministically maps a human-readable test identifier to a stable UUID string, so fixtures stay readable while satisfying the UUID-PK Ent store.
cmd/tid_test.go:21
↓ 56 callers
Method
Projects
Projects returns the project operations interface.
pkg/hubclient/client.go:40
↓ 56 callers
Method
Publish
Publish sends a structured message to a topic.
pkg/eventbus/eventbus.go:42
↓ 55 callers
Method
Close
Close marks the publisher as closed and closes all subscriber channels.
pkg/hub/events.go:324
↓ 55 callers
Method
Copy
Copy copies an object from src to dst within the same bucket.
pkg/storage/storage.go:173
↓ 55 callers
Function
MergeScionConfig
(base, override *api.ScionConfig)
pkg/config/templates.go:665
↓ 54 callers
Function
Error
Error logs an error message.
pkg/sciontool/log/log.go:96
↓ 54 callers
Method
GetRuntimeBroker
GetRuntimeBroker retrieves a runtime broker by ID. Returns ErrNotFound if the broker doesn't exist.
pkg/store/store.go:301
↓ 54 callers
Method
List
(ctx context.Context, labelFilter map[string]string)
pkg/runtime/interface.go:111
↓ 54 callers
Function
NewManager
(rt runtime.Runtime)
pkg/agent/manager.go:77
↓ 54 callers
Function
newFakeTelegramServer
(t *testing.T)
extras/scion-telegram/internal/telegram/telegram_test.go:44
↓ 53 callers
Method
CreatePolicy
CreatePolicy creates a new policy record.
pkg/store/store.go:768
↓ 53 callers
Method
SaveGroupLink
GroupLink CRUD
extras/scion-telegram/internal/telegram/store.go:30
↓ 53 callers
Method
UpdateAgentStatus
UpdateAgentStatus updates only status-related fields. This is a partial update that doesn't require version checking.
pkg/store/store.go:154
↓ 53 callers
Method
dispatchEvent
dispatchEvent calls all registered handlers for an event.
pkg/sciontool/hooks/harness.go:98
↓ 52 callers
Function
Debug
Debug logs a debug message if SCION_DEBUG is set.
pkg/sciontool/log/log.go:101
↓ 52 callers
Method
SetID
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
pkg/ent/mutation.go:38789
↓ 52 callers
Method
Update
Update updates a user.
pkg/hubclient/users.go:32
↓ 52 callers
Function
newTestStore
newTestStore opens a fresh Ent-backed store for tests, mirroring the production single-database layout (see cmd/server_foreground.go:initStore). It is
pkg/hub/teststore_test.go:39
↓ 50 callers
Method
AddGroupMember
AddGroupMember adds a user or group as a member of a group. Returns ErrAlreadyExists if the membership already exists.
pkg/store/store.go:701
↓ 50 callers
Method
SetStatus
SetStatus sets the "status" field.
pkg/ent/mutation.go:38979
↓ 50 callers
Method
Slug
Slug returns the value of the "slug" field in the mutation.
pkg/ent/mutation.go:1666
↓ 50 callers
Method
getSentMessages
()
extras/scion-telegram/internal/telegram/broker_v2_test.go:226
↓ 50 callers
Function
newTestWebServer
(t *testing.T, cfg WebServerConfig)
pkg/hub/web_test.go:96
↓ 49 callers
Method
Kind
()
pkg/hub/resource_source.go:37
↓ 49 callers
Method
Migrate
Migrate applies any pending database migrations.
pkg/store/store.go:41
↓ 49 callers
Method
Role
()
pkg/hub/identity.go:35
↓ 48 callers
Method
Next
Next reads the next SSE event from the stream. Returns io.EOF when the stream ends or a "done" event is received.
pkg/managedagent/google/sse.go:78
↓ 48 callers
Function
ProvisionAgent
(ctx context.Context, agentName string, templateName string, agentImage string, harnessConfig string, projectP
pkg/agent/provision.go:400
↓ 48 callers
Method
followup
followup sends a follow-up message to the interaction.
extras/scion-discord/internal/discord/commands.go:970
↓ 48 callers
Function
postEphemeral
(client *slackapi.Client, channelID, userID, text string)
extras/scion-slack/internal/slack/commands.go:762
↓ 47 callers
Function
NewLocalBackend
NewLocalBackend creates a LocalBackend wrapping the given SecretStore.
pkg/secret/localbackend.go:32
↓ 47 callers
Method
SetDispatcher
SetDispatcher sets the agent dispatcher for co-located runtime broker operations.
pkg/hub/server.go:1360
↓ 47 callers
Method
String
()
extras/fs-watcher-tool/main.go:35
↓ 46 callers
Method
Scope
()
pkg/hub/resource_source.go:39
↓ 46 callers
Function
newTestStore
(t *testing.T)
extras/scion-telegram/internal/telegram/store_test.go:27
↓ 45 callers
Method
SetSlug
SetSlug sets the "slug" field.
pkg/ent/mutation.go:1661
↓ 44 callers
Method
Name
()
pkg/runtime/interface.go:107
↓ 44 callers
Method
PublishAgentStatus
(ctx context.Context, agent *store.Agent)
pkg/hub/events.go:30
↓ 44 callers
Method
Resolve
Resolve computes workspace and shared-dir paths deterministically from project/agent IDs and the sharing mode. No DB lookup, no I/O — any replica call
pkg/runtime/workspace_backend.go:52
↓ 44 callers
Method
UpdateOneID
UpdateOneID returns an update builder for the given id.
pkg/ent/client.go:5785
↓ 44 callers
Function
getString
getString safely extracts a string value from a map.
pkg/sciontool/hooks/dialects/common.go:10
↓ 43 callers
Method
CreateAgent
CreateAgent creates a new agent record. Returns ErrAlreadyExists if an agent with the same ID exists.
pkg/store/store.go:129
↓ 43 callers
Method
Order
Order specifies how the records should be ordered.
pkg/ent/user_query.go:66
↓ 43 callers
Method
SendMessage
(ctx context.Context, req SendMessageRequest)
extras/scion-chat-app/internal/chatapp/messenger.go:21
↓ 43 callers
Method
Shutdown
Shutdown gracefully shuts down the server.
pkg/hub/server.go:2485
↓ 43 callers
Method
Write
Write serialises a single event as one NDJSON line.
extras/fs-watcher-tool/pkg/fswatcher/logger.go:35
↓ 43 callers
Function
createTestHubManagedProject
createTestHubManagedProject creates a hub-managed project (no git remote) via the API and returns the project and its workspace path. Cleans up the wo
pkg/hub/project_workspace_handlers_test.go:69
↓ 42 callers
Function
CheckResponse
CheckResponse checks if a response indicates an error. Returns nil on success (2xx status codes), otherwise returns an APIError.
pkg/apiclient/transport.go:301
↓ 42 callers
Function
PrintUsingHub
PrintUsingHub prints the informational message about using the Hub to stderr. It is suppressed entirely in JSON output mode to keep stdout clean.
cmd/common.go:302
← previous
next →
101–200 of 37,088, ranked by callers