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
↓ 30 callers
Method
Name
Name returns the dialect name (e.g., "claude", "gemini")
pkg/sciontool/hooks/types.go:110
↓ 30 callers
Method
Provider
Provider returns the storage provider type.
pkg/storage/storage.go:144
↓ 30 callers
Method
SetCreatedBy
SetCreatedBy sets the "created_by" field.
pkg/ent/mutation.go:1854
↓ 30 callers
Method
SetUpdated
SetUpdated sets the "updated" field.
pkg/ent/mutation.go:3044
↓ 30 callers
Function
Unauthorized
Unauthorized writes a 401 Unauthorized response.
pkg/hub/errors.go:184
↓ 30 callers
Method
add
(category: DebugCategory, label: string, subject?: string, data?: unknown, direction?: DebugDirection)
web/src/client/debug-log.ts:60
↓ 30 callers
Function
newTestServer
(t *testing.T)
pkg/runtimebroker/handlers_test.go:99
↓ 29 callers
Function
ConfirmAction
ConfirmAction prompts user for Y/n confirmation. Returns true if confirmed, false otherwise. If autoConfirm is true, always confirms Yes (proceeds wit
pkg/hubsync/prompt.go:30
↓ 29 callers
Method
DB
DB returns the underlying *sql.DB, or nil if the client is not backed by a database/sql driver. It is an escape hatch for diagnostics and tests that n
pkg/store/entadapter/composite.go:180
↓ 29 callers
Method
Delete
Delete deletes the object at the specified path.
pkg/storage/storage.go:158
↓ 29 callers
Function
GetAgentIdentityFromContext
GetAgentIdentityFromContext returns the agent identity if present.
pkg/hub/identity.go:179
↓ 29 callers
Function
Info
Info logs an informational message.
pkg/sciontool/log/log.go:86
↓ 29 callers
Method
Int
Int returns a single int from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:448
↓ 29 callers
Method
Mkdir
(ctx context.Context, name string, perm os.FileMode)
pkg/hub/project_webdav.go:238
↓ 29 callers
Function
NewCompositeStore
NewCompositeStore creates a store.Store backed entirely by the given Ent client. Each domain sub-store shares the same client and therefore the same u
pkg/store/entadapter/composite.go:70
↓ 29 callers
Function
NewNotification
NewNotification creates a new notification message (state-change or input-needed).
pkg/messages/types.go:189
↓ 29 callers
Method
Rename
(ctx context.Context, oldName, newName string)
pkg/hub/project_webdav.go:271
↓ 29 callers
Method
WriteHeader
(code int)
pkg/runtimebroker/server.go:1699
↓ 29 callers
Method
log
()
web/src/client/debug-log.ts:48
↓ 29 callers
Function
makeAgent
makeAgent builds a minimal valid agent for the seeded project.
pkg/store/entadapter/agent_store_test.go:51
↓ 29 callers
Function
newTestStore
(t *testing.T)
extras/scion-discord/internal/discord/store_test.go:13
↓ 29 callers
Method
reply
--- Helper methods --- reply sends a text message back to the space where the event originated. Used by non-command handlers (actions, messages, etc.)
extras/scion-chat-app/internal/chatapp/commands.go:1258
↓ 29 callers
Function
writeJSON
Helper functions writeJSON writes a JSON response.
pkg/runtimebroker/server.go:1707
↓ 28 callers
Method
Bucket
Bucket returns the bucket name.
pkg/storage/storage.go:141
↓ 28 callers
Function
CheckHubAvailabilityWithOptions
CheckHubAvailabilityWithOptions is like CheckHubAvailability but allows skipping sync.
cmd/common.go:213
↓ 28 callers
Method
CreateHarnessConfig
CreateHarnessConfig creates a new harness config record.
pkg/store/store.go:456
↓ 28 callers
Function
GetRuntime
GetRuntime returns the appropriate Runtime implementation based on environment, agent configuration (if available via GetAgentSettings), and project/g
pkg/runtime/factory.go:31
↓ 28 callers
Method
HarnessConfigs
HarnessConfigs returns the harness config operations interface.
pkg/hubclient/client.go:55
↓ 28 callers
Method
IsConfigured
IsConfigured returns true if the client is properly configured. Requires hubURL, token, and agentID to all be set.
pkg/sciontool/hub/client.go:230
↓ 28 callers
Method
Resolve
Resolve collects and merges secrets from all applicable scopes for an agent. Scopes are resolved in order: user < project < runtime_broker (later over
pkg/secret/secret.go:131
↓ 28 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the LifecycleHookCreate.OnConflict documentation for more info.
pkg/ent/lifecyclehook_create.go:625
↓ 28 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the LifecycleHookCreateBulk.OnConflict documentation for more info.
pkg/ent/lifecyclehook_create.go:1039
↓ 28 callers
Method
load
Public method to refresh the list.
web/src/components/shared/resource-list.ts:317
↓ 28 callers
Function
newStubEventBus
()
pkg/eventbus/fanout_test.go:41
↓ 28 callers
Method
respondUpdate
respondUpdate edits the deferred interaction response to update the message. This is used after the broker has already acknowledged with InteractionRe
extras/scion-discord/internal/discord/callbacks.go:212
↓ 28 callers
Function
seedHookAgent
seedHookAgent creates an agent in the store and returns it.
pkg/hub/lifecycle_hook_evaluator_test.go:168
↓ 28 callers
Function
seedSecret
seedSecret inserts a secret directly into the store for testing read operations.
pkg/secret/localbackend_test.go:45
↓ 28 callers
Function
tid
tid deterministically maps a human-readable test identifier (e.g. "user-1") to a stable UUID string. The Ent-backed store uses UUID primary keys, so t
pkg/secret/teststore_test.go:35
↓ 27 callers
Method
CreateMessage
CreateMessage persists a new message.
pkg/store/store.go:1130
↓ 27 callers
Method
CreateNotificationSubscription
CreateNotificationSubscription creates a new notification subscription.
pkg/store/store.go:903
↓ 27 callers
Method
GetGroupLink
(ctx context.Context, chatID int64)
extras/scion-telegram/internal/telegram/store.go:31
↓ 27 callers
Function
NewMultiStore
NewMultiStore creates a new multi-credential store at the given directory. If dir is empty, DefaultMultiDir() is used.
pkg/brokercredentials/multistore.go:59
↓ 27 callers
Function
ProvisionShared
ProvisionShared is the universal, vendor-agnostic workspace provisioning function (Tier 1). It ensures the workspace directory exists and is ready for
pkg/provision/provision.go:153
↓ 27 callers
Method
Read
Read returns the value of the "read" field in the mutation.
pkg/ent/mutation.go:21293
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillRegistryCreate.OnConflict documentation for more info.
pkg/ent/skillregistry_create.go:652
↓ 27 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillRegistryCreateBulk.OnConflict documentation for more info.
pkg/ent/skillregistry_create.go:1059
↓ 27 callers
Method
buildStartContext
buildStartContext unifies the common startup logic shared by createAgent, startAgent, restartAgent, and finalizeEnv: - Hub-managed project path resolu
pkg/runtimebroker/start_context.go:103
↓ 27 callers
Function
runSimpleCommand
(ctx context.Context, command string, args ...string)
pkg/runtime/common.go:519
↓ 26 callers
Function
CheckHubAvailability
CheckHubAvailability checks if Hub integration is enabled and returns a ready-to-use Hub context if available. Returns nil if Hub should not be used (
cmd/common.go:208
↓ 26 callers
Function
DefaultServerConfig
DefaultServerConfig returns the default server configuration.
pkg/hub/server.go:229
↓ 26 callers
Method
DisplayName
()
pkg/hub/identity.go:34
↓ 26 callers
Method
ModTime
ModTime returns the modification time of the credentials file. Returns zero time if the file doesn't exist or can't be stat'd.
pkg/brokercredentials/store.go:221
↓ 26 callers
Function
NewTelemetryHandler
NewTelemetryHandler creates a new telemetry handler. If tp is nil, a noop tracer will be used. If lp is non-nil, correlated log records will be emitte
pkg/sciontool/hooks/handlers/telemetry.go:75
↓ 26 callers
Method
Parse
Parse converts Claude Code event format to normalized Event. Claude Code sends events with the following format: { "hook_event_name": "PreToolUs
pkg/sciontool/hooks/dialects/claude.go:41
↓ 26 callers
Function
ProvisionShared
ProvisionShared delegates to provision.ProvisionShared.
pkg/runtime/workspace_provision.go:30
↓ 26 callers
Method
Subscribe
Subscribe returns a channel that receives events matching the given patterns, and an unsubscribe function. The channel is buffered with capacity 64. P
pkg/hub/events.go:261
↓ 26 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GroupCreate.OnConflict documentation for more info.
pkg/ent/group_create.go:725
↓ 26 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GroupCreateBulk.OnConflict documentation for more info.
pkg/ent/group_create.go:1125
↓ 26 callers
Method
Visibility
Visibility returns the value of the "visibility" field in the mutation.
pkg/ent/mutation.go:1993
↓ 26 callers
Function
agentResource
agentResource constructs a Resource from a store.Agent for capability computation.
pkg/hub/capabilities.go:57
↓ 26 callers
Function
buildCommonRunArgs
buildCommonRunArgs constructs the common arguments for 'run' command across different runtimes.
pkg/runtime/common.go:98
↓ 26 callers
Function
newCapturingAuditLogger
()
pkg/hub/lifecycle_hook_executor_test.go:89
↓ 26 callers
Function
newDevAuthWebServer
newDevAuthWebServer creates a web server with dev-auth enabled for testing authenticated routes without requiring OAuth.
pkg/hub/web_test.go:109
↓ 26 callers
Function
newLifecycleTestBridge
newLifecycleTestBridge creates a Bridge with a real SQLite store for lifecycle tests. The broker worker and janitor goroutines are started; callers mu
extras/scion-a2a-bridge/internal/bridge/lifecycle_test.go:36
↓ 26 callers
Function
newPostgresTestStore
(t *testing.T)
extras/scion-telegram/internal/telegram/store_postgres_test.go:29
↓ 26 callers
Function
newTestAPIClient
newTestAPIClient creates a TelegramAPIClient pointed at the given httptest server.
extras/scion-telegram/internal/telegram/api_test.go:31
↓ 26 callers
Function
newTestCompositeStore
newTestCompositeStore creates a CompositeStore backed by a single in-memory Ent database, matching the production single-database layout.
pkg/store/entadapter/composite_test.go:34
↓ 26 callers
Function
newTestExecutor
newTestExecutor creates an HTTPExecutor with a test-friendly HTTP client that allows loopback connections (httptest servers bind to 127.0.0.1). The cl
pkg/hub/lifecycle_hook_executor_test.go:192
↓ 26 callers
Method
publishStatus
publishStatus publishes an agent status event via the event publisher.
pkg/hub/notifications_test.go:236
↓ 26 callers
Method
restore
()
cmd/hub_env_test.go:52
↓ 26 callers
Function
seedHookProject
seedHookProject creates a project in the store and returns its ID.
pkg/hub/lifecycle_hook_evaluator_test.go:153
↓ 25 callers
Method
CircuitOpen
CircuitOpen returns true if the circuit breaker is currently open. Exposed for observability and testing.
pkg/util/logging/resilient_cloud_handler.go:227
↓ 25 callers
Function
ComputeContentHash
ComputeContentHash computes the overall content hash from a list of file hashes. Files are sorted by path for deterministic ordering before hash compu
pkg/transfer/hash.go:56
↓ 25 callers
Method
CreateEnvVar
CreateEnvVar creates a new environment variable. Returns ErrAlreadyExists if an env var with the same key+scope+scopeId exists.
pkg/store/store.go:585
↓ 25 callers
Method
GetPendingAskUser
(ctx context.Context, requestID string)
extras/scion-telegram/internal/telegram/store.go:56
↓ 25 callers
Method
HandleCommand
HandleCommand dispatches an incoming message to the appropriate command handler based on the command text. Returns true if the message was a recognize
extras/scion-telegram/internal/telegram/commands.go:76
↓ 25 callers
Function
InitMachine
InitMachine performs full global/machine-level setup: creates ~/.scion/, seeds settings, harness-configs, and the default agnostic template.
pkg/config/init.go:554
↓ 25 callers
Function
NewTestClient
(dyn dynamic.Interface, cs kubernetes.Interface)
pkg/k8s/client.go:260
↓ 25 callers
Method
Rollback
(context.Context, *Tx)
pkg/ent/tx.go:161
↓ 25 callers
Method
Secrets
Secrets returns the secret operations interface.
pkg/hubclient/client.go:67
↓ 25 callers
Method
SetProjectID
SetProjectID sets the "project_id" field.
pkg/ent/mutation.go:1782
↓ 25 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectContributorCreate.OnConflict documentation for more info.
pkg/ent/projectcontributor_create.go:547
↓ 25 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectContributorCreateBulk.OnConflict documentation for more info.
pkg/ent/projectcontributor_create.go:937
↓ 25 callers
Method
Value
Value returns the ent.Value that was dynamically selected and assigned to the User. This includes values selected through modifiers, order, etc.
pkg/ent/user.go:188
↓ 25 callers
Method
Workspace
Workspace returns the workspace sync operations interface.
pkg/hubclient/client.go:58
↓ 25 callers
Function
clearTelemetryEnv
()
pkg/sciontool/telemetry/config_test.go:561
↓ 25 callers
Function
maintenanceLogAttrs
maintenanceLogAttrs returns common slog attributes for maintenance operation logging.
pkg/hub/admin_maintenance.go:32
↓ 25 callers
Function
scrubHubEnv
scrubHubEnv clears all Hub-related environment variables for the duration of the test, preventing accidental communication with a real Hub when tests
pkg/sciontool/hooks/handlers/hub_test.go:22
↓ 24 callers
Method
Commit
(context.Context, *Tx)
pkg/ent/tx.go:105
↓ 24 callers
Method
DispatchAgentStart
DispatchAgentStart resumes a stopped agent on the runtime broker. task is an optional task string to pass to the agent on start. resume requests harne
pkg/hub/server.go:266
↓ 24 callers
Method
Handle
Handle processes a hook event and emits a corresponding span.
pkg/sciontool/hooks/handlers/telemetry.go:179
↓ 24 callers
Method
HandleBrokerMessage
HandleBrokerMessage enqueues a broker message for async dispatch, keeping the broker's Publish RPC non-blocking. Returns an error only if the queue is
extras/scion-a2a-bridge/internal/bridge/bridge.go:602
↓ 24 callers
Function
InitProject
(targetDir string, harnesses []api.Harness, opts ...InitProjectOpts)
pkg/config/init.go:238
↓ 24 callers
Method
Limit
Limit the number of records to be returned by this query.
pkg/ent/user_query.go:47
↓ 24 callers
Function
NewKubernetesRuntime
(client *k8s.Client)
pkg/runtime/k8s_runtime.go:66
↓ 24 callers
Function
NewUserTokenService
NewUserTokenService creates a new user token service. If signingKey is empty, a random key is generated (suitable for development).
pkg/hub/usertoken.go:107
↓ 24 callers
Method
Strings
Strings returns list of strings from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:380
↓ 24 callers
Function
TaggedInfo
TaggedInfo logs an informational message with an additional tag.
pkg/sciontool/log/log.go:91
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillVersionCreate.OnConflict documentation for more info.
pkg/ent/skillversion_create.go:566
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillVersionCreateBulk.OnConflict documentation for more info.
pkg/ent/skillversion_create.go:952
← previous
next →
301–400 of 37,088, ranked by callers