MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 90 callersFunctionGetGlobalDir
()
pkg/config/paths.go:156
↓ 89 callersMethodGet
Get retrieves a secret including its value.
pkg/secret/secret.go:112
↓ 85 callersFunctionForbidden
Forbidden writes a 403 Forbidden response.
pkg/hub/errors.go:190
↓ 85 callersFunctionNewHTTPAgentDispatcherWithClient
NewHTTPAgentDispatcherWithClient creates a new HTTP-based agent dispatcher with a custom client.
pkg/hub/httpdispatcher.go:168
↓ 84 callersMethodAll
All executes the query and returns a list of Users.
pkg/ent/user_query.go:238
↓ 81 callersFunctiontextResponse
textResponse creates a synchronous EventResponse containing a text message.
extras/scion-chat-app/internal/chatapp/commands.go:1268
↓ 80 callersMethodMutate
Mutate implements the ent.Mutator interface.
pkg/ent/client.go:446
↓ 80 callersMethodProjectID
()
pkg/hub/identity.go:41
↓ 80 callersFunctionstatusf
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 callersMethodCreatedBy
CreatedBy returns the value of the "created_by" field in the mutation.
pkg/ent/mutation.go:1859
↓ 79 callersMethodOp
Op returns the operation name.
pkg/ent/mutation.go:39375
↓ 78 callersFunctionscanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
pkg/ent/ent.go:649
↓ 77 callersMethodRemove
(ctx context.Context, email string)
pkg/hubclient/allow_list.go:29
↓ 75 callersMethodEmail
()
pkg/hub/identity.go:33
↓ 74 callersMethodBool
Bool returns a single bool from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:542
↓ 72 callersFunctionGetIdentityFromContext
GetIdentityFromContext returns the authenticated identity (user or agent).
pkg/hub/identity.go:151
↓ 70 callersFunctionGetResolvedProjectDir
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 callersMethodOnly
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 callersMethodSet
Set creates or updates a secret. Returns whether a new secret was created.
pkg/secret/secret.go:115
↓ 69 callersMethodaddEventListener
( type: string, listener: EventListenerOrEventListenerObject | ((ev: CustomEvent) => void), option
web/src/client/sse-client.ts:215
↓ 68 callersFunctionSlugify
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 callersFunctionwrapHubError
wrapHubError wraps a Hub error with guidance to disable Hub integration.
cmd/common.go:310
↓ 67 callersFunctionsetupCreateAgentServer
setupCreateAgentServer creates a test server with a dispatcher and a project+broker ready for agent creation.
pkg/hub/handlers_agent_test.go:844
↓ 66 callersFunctionNewChannelEventPublisher
NewChannelEventPublisher creates a new ChannelEventPublisher.
pkg/hub/events.go:250
↓ 65 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TemplateCreate.OnConflict documentation for more info.
pkg/ent/template_create.go:1091
↓ 65 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TemplateCreateBulk.OnConflict documentation for more info.
pkg/ent/template_create.go:1764
↓ 65 callersMethodpost
post performs an HTTP POST request with fallback.
pkg/hubclient/client.go:299
↓ 64 callersMethodMode
Mode returns the value of the "mode" field in the mutation.
pkg/ent/mutation.go:27939
↓ 64 callersMethodWriteHeader
(code int)
extras/scion-a2a-bridge/internal/bridge/metrics.go:90
↓ 64 callersFunctioncreateTestStore
createTestStore creates an in-memory SQLite store for testing.
pkg/hub/httpdispatcher_test.go:37
↓ 63 callersMethodGetStorage
GetStorage returns the current storage backend.
pkg/hub/server.go:1508
↓ 62 callersMethodSubscribe
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 callersMethodbuildPod
(namespace string, config RunConfig)
pkg/runtime/k8s_runtime.go:880
↓ 62 callersFunctiondebugf
debugf prints a debug message if debug mode is enabled.
pkg/hubsync/sync.go:40
↓ 62 callersFunctionnewFakeTGServerV2
(t *testing.T)
extras/scion-telegram/internal/telegram/broker_v2_test.go:89
↓ 61 callersFunctionUpdateSetting
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 callersFunctioncan
(capabilities: Capabilities | undefined, action: string)
web/src/shared/types.ts:694
↓ 60 callersMethodWait
(_ context.Context)
pkg/plugin/manager.go:343
↓ 59 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the RuntimeBrokerCreate.OnConflict documentation for more info.
pkg/ent/runtimebroker_create.go:1033
↓ 59 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the RuntimeBrokerCreateBulk.OnConflict documentation for more info.
pkg/ent/runtimebroker_create.go:1664
↓ 58 callersMethodConfigure
Configure sends configuration to the remote broker.
pkg/plugin/config.go:140
↓ 58 callersMethodFields
Fields of the User.
pkg/ent/schema/user.go:33
↓ 58 callersFunctionResolveProjectPath
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 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the HarnessConfigCreate.OnConflict documentation for more info.
pkg/ent/harnessconfig_create.go:1030
↓ 58 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the HarnessConfigCreateBulk.OnConflict documentation for more info.
pkg/ent/harnessconfig_create.go:1654
↓ 58 callersFunctionnewTestK8sRuntime
()
pkg/runtime/k8s_secrets_test.go:33
↓ 57 callersFunctionNewClient
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 callersMethodSetName
SetName sets the "name" field.
pkg/ent/mutation.go:1697
↓ 57 callersFunctionnewTestGroupStore
(t *testing.T)
pkg/store/entadapter/group_store_test.go:30
↓ 57 callersFunctiontestTemplateBootstrapServer
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 callersFunctiontid
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 callersMethodProjects
Projects returns the project operations interface.
pkg/hubclient/client.go:40
↓ 56 callersMethodPublish
Publish sends a structured message to a topic.
pkg/eventbus/eventbus.go:42
↓ 55 callersMethodClose
Close marks the publisher as closed and closes all subscriber channels.
pkg/hub/events.go:324
↓ 55 callersMethodCopy
Copy copies an object from src to dst within the same bucket.
pkg/storage/storage.go:173
↓ 55 callersFunctionMergeScionConfig
(base, override *api.ScionConfig)
pkg/config/templates.go:665
↓ 54 callersFunctionError
Error logs an error message.
pkg/sciontool/log/log.go:96
↓ 54 callersMethodGetRuntimeBroker
GetRuntimeBroker retrieves a runtime broker by ID. Returns ErrNotFound if the broker doesn't exist.
pkg/store/store.go:301
↓ 54 callersMethodList
(ctx context.Context, labelFilter map[string]string)
pkg/runtime/interface.go:111
↓ 54 callersFunctionNewManager
(rt runtime.Runtime)
pkg/agent/manager.go:77
↓ 54 callersFunctionnewFakeTelegramServer
(t *testing.T)
extras/scion-telegram/internal/telegram/telegram_test.go:44
↓ 53 callersMethodCreatePolicy
CreatePolicy creates a new policy record.
pkg/store/store.go:768
↓ 53 callersMethodSaveGroupLink
GroupLink CRUD
extras/scion-telegram/internal/telegram/store.go:30
↓ 53 callersMethodUpdateAgentStatus
UpdateAgentStatus updates only status-related fields. This is a partial update that doesn't require version checking.
pkg/store/store.go:154
↓ 53 callersMethoddispatchEvent
dispatchEvent calls all registered handlers for an event.
pkg/sciontool/hooks/harness.go:98
↓ 52 callersFunctionDebug
Debug logs a debug message if SCION_DEBUG is set.
pkg/sciontool/log/log.go:101
↓ 52 callersMethodSetID
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 callersMethodUpdate
Update updates a user.
pkg/hubclient/users.go:32
↓ 52 callersFunctionnewTestStore
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 callersMethodAddGroupMember
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 callersMethodSetStatus
SetStatus sets the "status" field.
pkg/ent/mutation.go:38979
↓ 50 callersMethodSlug
Slug returns the value of the "slug" field in the mutation.
pkg/ent/mutation.go:1666
↓ 50 callersMethodgetSentMessages
()
extras/scion-telegram/internal/telegram/broker_v2_test.go:226
↓ 50 callersFunctionnewTestWebServer
(t *testing.T, cfg WebServerConfig)
pkg/hub/web_test.go:96
↓ 49 callersMethodKind
()
pkg/hub/resource_source.go:37
↓ 49 callersMethodMigrate
Migrate applies any pending database migrations.
pkg/store/store.go:41
↓ 49 callersMethodRole
()
pkg/hub/identity.go:35
↓ 48 callersMethodNext
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 callersFunctionProvisionAgent
(ctx context.Context, agentName string, templateName string, agentImage string, harnessConfig string, projectP
pkg/agent/provision.go:400
↓ 48 callersMethodfollowup
followup sends a follow-up message to the interaction.
extras/scion-discord/internal/discord/commands.go:970
↓ 48 callersFunctionpostEphemeral
(client *slackapi.Client, channelID, userID, text string)
extras/scion-slack/internal/slack/commands.go:762
↓ 47 callersFunctionNewLocalBackend
NewLocalBackend creates a LocalBackend wrapping the given SecretStore.
pkg/secret/localbackend.go:32
↓ 47 callersMethodSetDispatcher
SetDispatcher sets the agent dispatcher for co-located runtime broker operations.
pkg/hub/server.go:1360
↓ 47 callersMethodString
()
extras/fs-watcher-tool/main.go:35
↓ 46 callersMethodScope
()
pkg/hub/resource_source.go:39
↓ 46 callersFunctionnewTestStore
(t *testing.T)
extras/scion-telegram/internal/telegram/store_test.go:27
↓ 45 callersMethodSetSlug
SetSlug sets the "slug" field.
pkg/ent/mutation.go:1661
↓ 44 callersMethodName
()
pkg/runtime/interface.go:107
↓ 44 callersMethodPublishAgentStatus
(ctx context.Context, agent *store.Agent)
pkg/hub/events.go:30
↓ 44 callersMethodResolve
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 callersMethodUpdateOneID
UpdateOneID returns an update builder for the given id.
pkg/ent/client.go:5785
↓ 44 callersFunctiongetString
getString safely extracts a string value from a map.
pkg/sciontool/hooks/dialects/common.go:10
↓ 43 callersMethodCreateAgent
CreateAgent creates a new agent record. Returns ErrAlreadyExists if an agent with the same ID exists.
pkg/store/store.go:129
↓ 43 callersMethodOrder
Order specifies how the records should be ordered.
pkg/ent/user_query.go:66
↓ 43 callersMethodSendMessage
(ctx context.Context, req SendMessageRequest)
extras/scion-chat-app/internal/chatapp/messenger.go:21
↓ 43 callersMethodShutdown
Shutdown gracefully shuts down the server.
pkg/hub/server.go:2485
↓ 43 callersMethodWrite
Write serialises a single event as one NDJSON line.
extras/fs-watcher-tool/pkg/fswatcher/logger.go:35
↓ 43 callersFunctioncreateTestHubManagedProject
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 callersFunctionCheckResponse
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 callersFunctionPrintUsingHub
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
← previousnext →101–200 of 37,088, ranked by callers