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
↓ 20 callers
Function
getEnvVar
getEnvVar returns the value of an environment variable from a list of KEY=VALUE strings. Returns empty string if the key is not found.
pkg/sciontool/supervisor/supervisor.go:307
↓ 20 callers
Method
getEvents
()
pkg/hub/lifecycle_hook_executor_test.go:102
↓ 20 callers
Function
getStr
(m map[string]any, key string)
extras/agent-viz/internal/logparser/parser.go:1011
↓ 20 callers
Function
includeField
(fields map[string]bool, name string)
extras/scion-broker-log/main.go:554
↓ 20 callers
Function
newMockStore
()
pkg/hub/scheduler_test.go:320
↓ 20 callers
Function
newTestTemplateStore
(t *testing.T)
pkg/store/entadapter/template_store_test.go:30
↓ 20 callers
Function
seedExecutorSA
(t *testing.T, s store.Store, projectID, email string)
pkg/hub/lifecycle_hook_executor_test.go:135
↓ 19 callers
Method
Addr
Addr returns the address the server is listening on.
extras/scion-chat-app/internal/chatapp/broker.go:275
↓ 19 callers
Method
AgentID
AgentID returns the value of the "agent_id" field in the mutation.
pkg/ent/mutation.go:21329
↓ 19 callers
Method
CreateLifecycleHook
CreateLifecycleHook creates a new lifecycle hook record. Returns ErrAlreadyExists if a hook with the same ID exists.
pkg/store/store.go:1215
↓ 19 callers
Method
GetType
GetType returns the value of the "type" field in the mutation.
pkg/ent/mutation.go:21185
↓ 19 callers
Method
GetUserByEmail
GetUserByEmail retrieves a user by email. Returns ErrNotFound if the user doesn't exist.
pkg/store/store.go:510
↓ 19 callers
Function
LoadEffectiveSettings
LoadEffectiveSettings is a unified entry point that detects the settings format and loads using the appropriate path. - If any user file is versioned
pkg/config/settings_v1.go:1904
↓ 19 callers
Function
NewClient
NewClient creates a new transfer client.
pkg/transfer/client.go:36
↓ 19 callers
Function
NewMaintenanceState
NewMaintenanceState creates a MaintenanceState with the given initial values.
pkg/hub/admin_mode.go:40
↓ 19 callers
Function
NormalizeGitRemote
NormalizeGitRemote normalizes a git remote URL to a canonical form for consistent matching. It removes protocols (https, http, ssh, git), strips user
pkg/util/git.go:413
↓ 19 callers
Method
Send
Send enqueues a message and blocks until it is sent (or fails). It returns the Telegram API response or an error.
extras/scion-telegram/internal/telegram/sendqueue.go:92
↓ 19 callers
Method
SetEmail
SetEmail sets the "email" field.
pkg/ent/mutation.go:38822
↓ 19 callers
Method
Start
Start subscribes to agent lifecycle events and sets up broker subscriptions for existing running agents.
pkg/hub/messagebroker.go:86
↓ 19 callers
Method
handleTestLogin
handleTestLogin handles POST /api/v1/auth/test-login. It provisions a test user and creates a web session, bypassing OAuth. Gated behind --enable-test
pkg/hub/handlers_test_login.go:46
↓ 19 callers
Function
newTestLifecycleHookStore
(t *testing.T)
pkg/store/entadapter/lifecyclehook_store_test.go:32
↓ 19 callers
Function
newTestLoginWebServer
newTestLoginWebServer creates a WebServer for test-login tests and returns the UserTokenService so callers can mint challenge tokens.
pkg/hub/handlers_test_login_test.go:70
↓ 19 callers
Function
nfsTestBackend
nfsTestBackend creates an nfsBackend with a temp directory as the mount root and returns the backend, config, and project paths.
pkg/runtime/workspace_provision_test.go:85
↓ 19 callers
Function
parseGetID
parseGetID parses a primary-key identifier for a get-by-id lookup. A malformed identifier cannot match any UUID primary key, so it is reported as stor
pkg/store/entadapter/group_store.go:56
↓ 19 callers
Method
sendReply
(chatID int64, text string)
extras/scion-telegram/internal/telegram/register_v2.go:514
↓ 19 callers
Function
setupBrokerTestAgent
setupBrokerTestAgent creates a running agent and returns it.
pkg/hub/messagebroker_test.go:143
↓ 19 callers
Method
unregisterActiveTask
(taskID, aKey string)
extras/scion-a2a-bridge/internal/bridge/bridge.go:1071
↓ 19 callers
Method
updateStatusViaAPI
updateStatusViaAPI updates an agent's status through the HTTP API, which triggers an event publication through the event publisher. The status paramet
pkg/hub/notifications_integration_test.go:152
↓ 19 callers
Function
utf16Extract
utf16Extract extracts a substring from s using UTF-16 code unit offset and length, as provided by the Telegram Bot API entity fields. BMP characters (
extras/scion-telegram/internal/telegram/mentions.go:70
↓ 18 callers
Method
Close
Close shuts down the event bus and all subscriber goroutines.
pkg/eventbus/inprocess.go:139
↓ 18 callers
Method
CreateSkill
(ctx context.Context, skill *Skill)
pkg/store/store.go:1262
↓ 18 callers
Function
FindHarnessConfigDir
FindHarnessConfigDir resolves a harness-config by name, checking template-level, project-level, then global directories. Optional templatePaths specif
pkg/config/harness_config.go:105
↓ 18 callers
Method
GetTopicDefault
TopicDefault — per-topic default agent overrides for forum groups
extras/scion-telegram/internal/telegram/store.go:71
↓ 18 callers
Method
ListPolicies
ListPolicies returns policies matching the filter criteria.
pkg/store/store.go:784
↓ 18 callers
Method
Message
Message sends a message to an agent's harness via tmux. projectID scopes delivery to a specific project, preventing cross-project collision when agent
pkg/agent/manager.go:52
↓ 18 callers
Function
New
New creates a new RefBroker with the given logger.
pkg/plugin/refbroker/refbroker.go:94
↓ 18 callers
Function
NotFound
NotFound writes a 404 Not Found response.
pkg/runtimebroker/errors.go:68
↓ 18 callers
Method
Publish
Publish sends a message to the remote broker.
pkg/plugin/config.go:134
↓ 18 callers
Function
ReadProjectID
ReadProjectID reads the project-id file from a git project's .scion directory. Checks project-id first, then falls back to grove-id for legacy project
pkg/config/project_marker.go:221
↓ 18 callers
Method
SetDescription
SetDescription sets the "description" field.
pkg/ent/mutation.go:11710
↓ 18 callers
Method
SetOwnerID
SetOwnerID sets the "owner_id" field.
pkg/ent/mutation.go:1903
↓ 18 callers
Method
Stop
Stop signals the proxy to shut down and waits for goroutines to finish.
pkg/hub/messagebroker.go:151
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NotificationCreate.OnConflict documentation for more info.
pkg/ent/notification_create.go:510
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NotificationCreateBulk.OnConflict documentation for more info.
pkg/ent/notification_create.go:854
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the InviteCodeCreate.OnConflict documentation for more info.
pkg/ent/invitecode_create.go:516
↓ 18 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the InviteCodeCreateBulk.OnConflict documentation for more info.
pkg/ent/invitecode_create.go:860
↓ 18 callers
Method
createHubConnection
createHubConnection creates a HubConnection from credentials.
pkg/runtimebroker/server.go:500
↓ 18 callers
Function
createTestProjectForSA
(t *testing.T, srv *Server, s store.Store)
pkg/hub/handlers_gcp_identity_test.go:32
↓ 18 callers
Function
newBrokerTestStore
(t *testing.T)
pkg/hub/messagebroker_test.go:101
↓ 18 callers
Function
newMockMessage
newMockMessage creates a MessageCreate with the given content and user mentions.
extras/scion-discord/internal/discord/mentions_test.go:11
↓ 18 callers
Function
newTestScheduleStore
(t *testing.T)
pkg/store/entadapter/schedule_store_test.go:33
↓ 18 callers
Function
newTestServerWithProjectPath
newTestServerWithProjectPath creates a test server with a temporary project path that has versioned settings with declared env vars.
pkg/runtimebroker/handlers_envgather_test.go:32
↓ 18 callers
Method
populateAgentConfig
populateAgentConfig enriches an agent's AppliedConfig with project-derived and template-derived fields after the initial config block has been set up.
pkg/hub/handlers_agent_create_helpers.go:125
↓ 18 callers
Function
printCheck
(name, status, message, remediation string)
cmd/doctor.go:223
↓ 18 callers
Function
resolveTargetAgents
resolveTargetAgents determines which agents a message should be routed to. Returns a deduplicated list of agent slugs and whether @all was used. Tier
extras/scion-telegram/internal/telegram/mentions.go:32
↓ 18 callers
Function
seedTask
seedTask inserts a task into the store for testing.
extras/scion-a2a-bridge/internal/bridge/followup_test.go:180
↓ 18 callers
Function
setupBrokerTestProject
setupBrokerTestProject creates a project and a runtime broker, returns the project ID.
pkg/hub/messagebroker_test.go:114
↓ 18 callers
Method
showFeedback
(variant: 'success' | 'danger', message: string)
web/src/components/pages/admin-users.ts:851
↓ 17 callers
Method
ComputeCapabilitiesBatch
ComputeCapabilitiesBatch evaluates capabilities for a list of resources, optimized for batch operation by expanding groups and fetching policies once.
pkg/hub/capabilities.go:244
↓ 17 callers
Function
ComputeHarnessConfigRevision
ComputeHarnessConfigRevision returns a content hash uniquely identifying the on-disk state of a harness-config directory. The hash combines the SHA-25
pkg/config/harness_config.go:353
↓ 17 callers
Method
CreateTask
--- Tasks --- CreateTask inserts a new task record.
extras/scion-a2a-bridge/internal/state/state.go:151
↓ 17 callers
Function
DefaultGlobalConfig
DefaultGlobalConfig returns the default global configuration.
pkg/config/hub_config.go:359
↓ 17 callers
Method
Exec
(ctx context.Context, sql string, args ...any)
pkg/hub/events_postgres.go:141
↓ 17 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
pkg/ent/mutation.go:38492
↓ 17 callers
Function
FormatStateChangeCard
FormatStateChangeCard converts a state-change StructuredMessage into an HTML-formatted status card for Telegram. The card shows the agent name, state
extras/scion-telegram/internal/telegram/format.go:146
↓ 17 callers
Method
GetAgentBySlug
GetAgentBySlug retrieves an agent by its slug within a project. Returns ErrNotFound if the agent doesn't exist.
pkg/store/store.go:137
↓ 17 callers
Method
GetHubProjectID
GetHubProjectID returns the hub-side project ID if configured. This is the ID of the project on the Hub, which may differ from the local project_id st
pkg/config/settings.go:956
↓ 17 callers
Method
GetScheduledEvent
GetScheduledEvent retrieves a scheduled event by ID. Returns ErrNotFound if the event doesn't exist.
pkg/store/store.go:991
↓ 17 callers
Method
GetUser
GetUser retrieves a user by ID. Returns ErrNotFound if the user doesn't exist.
pkg/store/store.go:506
↓ 17 callers
Method
Handle
(_ context.Context, r slog.Record)
pkg/sciontool/log/log.go:200
↓ 17 callers
Method
ListMessages
ListMessages returns messages matching the given filter. Results are ordered by created_at DESC.
pkg/store/store.go:1138
↓ 17 callers
Function
MigrateSettingsFile
MigrateSettingsFile migrates a single legacy settings file in dir to versioned format. If a server.yaml exists in the same directory, it is also merge
pkg/config/settings_v1.go:2204
↓ 17 callers
Function
NewNFSMountReconciler
NewNFSMountReconciler creates a reconciler for the given NFS config. The checker abstracts mount syscalls for testability.
pkg/runtimebroker/nfs_mount.go:75
↓ 17 callers
Function
NewV2
NewV2 creates a new TelegramBrokerV2 with the given logger.
extras/scion-telegram/internal/telegram/broker_v2.go:102
↓ 17 callers
Method
OpenFile
(ctx context.Context, name string, flag int, perm os.FileMode)
pkg/hub/project_webdav.go:245
↓ 17 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the PolicyBindingCreate.OnConflict documentation for more info.
pkg/ent/policybinding_create.go:527
↓ 17 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the PolicyBindingCreateBulk.OnConflict documentation for more info.
pkg/ent/policybinding_create.go:864
↓ 17 callers
Method
UpdateTemplate
UpdateTemplate updates an existing template. Returns ErrNotFound if the template doesn't exist.
pkg/store/store.go:427
↓ 17 callers
Function
ValidateHook
ValidateHook validates a LifecycleHook for correctness before persist or update. It checks structural well-formedness, trigger/action validity, execut
pkg/lifecyclehooks/validate.go:120
↓ 17 callers
Method
agentPath
(agentID string)
pkg/hubclient/agents.go:112
↓ 17 callers
Function
displayAgents
(agents []api.AgentInfo, all bool, hubMode bool)
cmd/list.go:381
↓ 17 callers
Function
extractAgentFromBotMessage
extractAgentFromBotMessage parses a FormatMessageV2 output and extracts the target agent slug. For agent-to-agent observer messages it returns the rec
extras/scion-telegram/internal/telegram/mentions.go:380
↓ 17 callers
Function
freePort
(t *testing.T)
pkg/sciontool/metadata/server_test.go:33
↓ 17 callers
Function
newProject
(seq int)
pkg/store/entadapter/project_store_test.go:38
↓ 17 callers
Function
newTestLocker
()
pkg/runtime/workspace_provision_test.go:45
↓ 17 callers
Function
newTestPolicyStore
(t *testing.T)
pkg/store/entadapter/policy_store_test.go:38
↓ 17 callers
Function
newTestServerWithInMemoryCreds
newTestServerWithInMemoryCreds creates a server with in-memory credentials for a "local" connection.
pkg/runtimebroker/hub_connection_test.go:53
↓ 17 callers
Method
recordFailure
recordFailure tracks a flush failure and opens the circuit if the threshold is reached.
pkg/util/logging/resilient_cloud_handler.go:319
↓ 17 callers
Method
redactToken
redactToken removes the bot token from error messages to prevent accidental credential leakage in logs.
extras/scion-telegram/internal/telegram/api.go:316
↓ 17 callers
Method
save
save persists the given entries snapshot to disk atomically. Best-effort.
pkg/agent/github_resolution_cache.go:138
↓ 17 callers
Function
setupWorkspaceProject
setupWorkspaceProject creates a server, store, project, and workspace temp dir linked via an embedded broker provider. Returns the server, store, proj
pkg/hub/template_bootstrap_test.go:761
↓ 17 callers
Function
testWorkspaceServer
testWorkspaceServer creates a test server for workspace handler tests.
pkg/hub/workspace_handlers_test.go:38
↓ 16 callers
Method
CreateSkillVersion
(ctx context.Context, version *SkillVersion)
pkg/store/store.go:1269
↓ 16 callers
Function
CreateWorktree
CreateWorktree creates a new git worktree at the specified path with a new branch.
pkg/util/git.go:166
↓ 16 callers
Method
DescriptionCleared
DescriptionCleared returns if the "description" field was cleared in this mutation.
pkg/ent/mutation.go:11747
↓ 16 callers
Method
Exists
Exists checks if an object exists.
pkg/storage/storage.go:167
↓ 16 callers
Method
ExternalProjectPath
ExternalProjectPath returns the absolute path to the external project config directory: ~/.scion/project-configs/<project-slug>__<short-uuid>/.scion/
pkg/config/project_marker.go:82
↓ 16 callers
Function
GatherAuthWithEnv
GatherAuthWithEnv is like GatherAuth but checks the provided env overlay before falling back to os.Getenv for each key. This allows hub-resolved or CL
pkg/harness/auth.go:50
↓ 16 callers
Function
GetBrokerIdentityFromContext
GetBrokerIdentityFromContext returns the BrokerIdentity from the context, if present.
pkg/hub/brokeridentity.go:51
↓ 16 callers
Method
GetGitHubInstallation
GetGitHubInstallation retrieves a GitHub App installation by installation ID. Returns ErrNotFound if the installation doesn't exist.
pkg/store/store.go:1097
← previous
next →
501–600 of 37,088, ranked by callers