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
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationCreate.OnConflict documentation for more info.
pkg/ent/maintenanceoperation_create.go:586
↓ 24 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationCreateBulk.OnConflict documentation for more info.
pkg/ent/maintenanceoperation_create.go:972
↓ 24 callers
Function
createTestBackend
(t *testing.T)
pkg/secret/localbackend_test.go:38
↓ 24 callers
Function
executorTestStore
--------------------------------------------------------------------------- Test store setup ---------------------------------------------------------
pkg/hub/lifecycle_hook_executor_test.go:114
↓ 24 callers
Method
getWithQuery
getWithQuery performs an HTTP GET request with query parameters and fallback.
pkg/hubclient/client.go:286
↓ 24 callers
Function
makeTestAgent
(projectID string)
pkg/hub/lifecycle_hook_executor_test.go:173
↓ 24 callers
Function
metadataGet
(t *testing.T, port int, path string)
pkg/sciontool/metadata/server_test.go:132
↓ 24 callers
Function
newNFSTestK8sRuntime
newNFSTestK8sRuntime creates a KubernetesRuntime backed by a fake clientset for unit testing buildPod and related methods.
pkg/runtime/k8s_nfs_test.go:39
↓ 24 callers
Function
newTestBrokerV2
newTestBrokerV2 creates a fully wired TelegramBrokerV2 for testing. It uses a real SQLite store (temp file) and a fake Telegram API server.
extras/scion-telegram/internal/telegram/broker_v2_test.go:259
↓ 24 callers
Function
newTestCommandHandler
(t *testing.T)
extras/scion-telegram/internal/telegram/commands_test.go:27
↓ 24 callers
Function
newTestServerWithStore
(t *testing.T)
pkg/hub/admin_maintenance_test.go:33
↓ 23 callers
Method
DispatchAgentCreate
DispatchAgentCreate creates and starts an agent on the runtime broker. Returns the updated agent info after creation/start.
pkg/hub/server.go:256
↓ 23 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
pkg/ent/mutation.go:4174
↓ 23 callers
Function
GetAgentHomePath
GetAgentHomePath returns the correct home directory path for an agent. For git projects with split storage (project-id file exists), this returns the
pkg/config/project_marker.go:301
↓ 23 callers
Function
GetSettingsPath
GetSettingsPath returns the path to the settings file in a directory, preferring YAML over JSON. Returns empty string if no settings file exists.
pkg/config/koanf.go:273
↓ 23 callers
Method
Key
Key returns the value of the "key" field in the mutation.
pkg/ent/mutation.go:9077
↓ 23 callers
Method
List
List returns environment variables for the specified scope.
pkg/hubclient/env.go:27
↓ 23 callers
Function
LoadGlobalConfig
LoadGlobalConfig loads global configuration using Koanf with priority: 1. Embedded defaults 2. Global config: settings.yaml (server key) OR server.yam
pkg/config/hub_config.go:474
↓ 23 callers
Function
LoadSettingsKoanf
LoadSettingsKoanf loads settings using Koanf with provider priority: 1. Embedded defaults (YAML) with OS-specific runtime adjustment 2. Global setting
pkg/config/koanf.go:41
↓ 23 callers
Method
Post
Post performs an HTTP POST request with JSON body.
pkg/apiclient/transport.go:222
↓ 23 callers
Method
SaveProjectAgents
ProjectAgents cache
extras/scion-telegram/internal/telegram/store.go:42
↓ 23 callers
Method
Shutdown
Shutdown flushes and shuts down all providers.
pkg/sciontool/telemetry/providers.go:288
↓ 23 callers
Method
Tick
Tick performs a single lock-loop iteration. Exported for testing.
pkg/integration/lockloop/lockloop.go:120
↓ 23 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GCPServiceAccountCreate.OnConflict documentation for more info.
pkg/ent/gcpserviceaccount_create.go:619
↓ 23 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the GCPServiceAccountCreateBulk.OnConflict documentation for more info.
pkg/ent/gcpserviceaccount_create.go:998
↓ 23 callers
Function
computeContentHash
computeContentHash computes the aggregate content hash for a set of resource files. It is a thin adapter over transfer.ComputeContentHash — the single
pkg/hub/template_handlers.go:894
↓ 23 callers
Function
newTestServerForStartContext
(t *testing.T, cfg ServerConfig)
pkg/runtimebroker/start_context_test.go:34
↓ 23 callers
Function
statusln
statusln prints an informational/progress line to stderr. See statusf for details.
cmd/output.go:41
↓ 22 callers
Method
Agents
Agents returns the agent operations interface.
pkg/brokerclient/client.go:30
↓ 22 callers
Method
BootstrapSource
BootstrapSource imports a resource from a ResourceSource into the Hub's storage backend and database. It applies the OverwritePolicy to decide whether
pkg/hub/resource_source.go:222
↓ 22 callers
Method
DeleteOneID
DeleteOneID returns a builder for deleting the given entity by its id.
pkg/ent/client.go:5802
↓ 22 callers
Method
DisplayStatus
DisplayStatus returns a single human-readable status string for backward compatibility and simple display. When phase is running and an activity is se
pkg/agent/state/state.go:241
↓ 22 callers
Method
ExpiresAt
ExpiresAt returns the value of the "expires_at" field in the mutation.
pkg/ent/mutation.go:5456
↓ 22 callers
Method
GetHarnessConfig
GetHarnessConfig retrieves a harness config by ID. Returns ErrNotFound if the harness config doesn't exist.
pkg/store/store.go:460
↓ 22 callers
Method
GetProjectProvider
GetProjectProvider returns a specific provider by project and broker ID. Returns ErrNotFound if the provider relationship doesn't exist.
pkg/store/store.go:569
↓ 22 callers
Method
LoadConfig
()
pkg/config/templates.go:86
↓ 22 callers
Function
LoadProjectState
LoadProjectState reads project state from state.yaml in the given project path. Returns an empty ProjectState if the file doesn't exist.
pkg/config/state.go:33
↓ 22 callers
Function
New
New opens (or creates) the SQLite database at dbPath and runs schema migrations.
extras/scion-a2a-bridge/internal/state/state.go:66
↓ 22 callers
Function
NewFSResourceSource
NewFSResourceSource returns a ResourceSource backed by a BundledResource.
pkg/hub/resource_source.go:97
↓ 22 callers
Method
Read
Read reads data from the stream.
pkg/hub/controlchannel.go:163
↓ 22 callers
Method
RuntimeBrokers
RuntimeBrokers returns the runtime broker operations interface.
pkg/hubclient/client.go:43
↓ 22 callers
Method
SetDisplayName
SetDisplayName sets the "display_name" field.
pkg/ent/mutation.go:38858
↓ 22 callers
Method
String
()
pkg/ent/envvar/envvar.go:101
↓ 22 callers
Method
Subscribe
Subscribe registers a handler for messages matching a topic pattern.
pkg/plugin/config.go:136
↓ 22 callers
Method
Type
()
pkg/hub/identity.go:27
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the EnvVarCreate.OnConflict documentation for more info.
pkg/ent/envvar_create.go:576
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the EnvVarCreateBulk.OnConflict documentation for more info.
pkg/ent/envvar_create.go:948
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ScheduledEventCreate.OnConflict documentation for more info.
pkg/ent/scheduledevent_create.go:532
↓ 22 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ScheduledEventCreateBulk.OnConflict documentation for more info.
pkg/ent/scheduledevent_create.go:904
↓ 22 callers
Function
authzTestSetup
authzTestSetup creates a test server with the authz service and pre-populated data.
pkg/hub/authz_test.go:32
↓ 22 callers
Function
makeTestHook
--------------------------------------------------------------------------- Helpers ------------------------------------------------------------------
pkg/hub/lifecycle_hook_executor_test.go:159
↓ 22 callers
Function
newFakeHubClient
()
extras/scion-telegram/internal/telegram/broker_v2_test.go:46
↓ 22 callers
Function
newTestResilientHandler
mockCloudHandler is a test double for CloudHandler that doesn't require a real Cloud Logging connection.
pkg/util/logging/resilient_cloud_handler_test.go:29
↓ 22 callers
Function
newTestSecretStore
(t *testing.T)
pkg/store/entadapter/secret_store_test.go:30
↓ 22 callers
Function
seedExecutorProject
(t *testing.T, s store.Store, name string)
pkg/hub/lifecycle_hook_executor_test.go:121
↓ 22 callers
Function
seedLifecycleTask
seedTask creates and registers a task in both the store and the bridge's activeTasks map, mimicking what SendMessage does for non-blocking sends.
extras/scion-a2a-bridge/internal/bridge/lifecycle_test.go:71
↓ 21 callers
Method
Active
Active reports whether the lock is currently held.
pkg/integration/lockloop/lockloop.go:212
↓ 21 callers
Method
ComputeCapabilities
ComputeCapabilities evaluates which actions the identity can perform on a single resource.
pkg/hub/capabilities.go:168
↓ 21 callers
Method
GetNotificationSubscriptions
GetNotificationSubscriptions returns all agent-scoped subscriptions for a watched agent.
pkg/store/store.go:910
↓ 21 callers
Function
HashBytes
HashBytes computes the SHA-256 hash of a byte slice. Returns the hash in format "sha256:<hex>".
pkg/transfer/hash.go:47
↓ 21 callers
Method
InjectionMode
InjectionMode returns the value of the "injection_mode" field in the mutation.
pkg/ent/mutation.go:9306
↓ 21 callers
Method
IsHubEnabled
IsHubEnabled returns true if Hub integration is enabled. Hub is considered enabled when: 1. Hub credentials (token or apiKey) AND an endpoint are pres
pkg/config/settings.go:978
↓ 21 callers
Function
NewMessageBrokerProxy
NewMessageBrokerProxy creates a new MessageBrokerProxy.
pkg/hub/messagebroker.go:64
↓ 21 callers
Function
NewStore
NewStore creates a new credential store at the given path. If path is empty, DefaultPath() is used.
pkg/brokercredentials/store.go:82
↓ 21 callers
Method
Query
Query returns a query builder for User.
pkg/ent/client.go:5810
↓ 21 callers
Method
RequestSubscription
(pattern string)
pkg/plugin/broker_plugin.go:95
↓ 21 callers
Method
Serve
Serve starts the go-plugin RPC server on the given address. The Hub's plugin manager connects to this server as a self-managed plugin. We use goplugi
extras/scion-chat-app/internal/chatapp/broker.go:226
↓ 21 callers
Method
SetAffinityLookup
SetAffinityLookup injects the affinity hint used by route(). Wired by the server to a store-backed lookup (StoreAffinityLookup).
pkg/hub/broker_routing.go:110
↓ 21 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ApiKeyCreate.OnConflict documentation for more info.
pkg/ent/apikey_create.go:513
↓ 21 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ApiKeyCreateBulk.OnConflict documentation for more info.
pkg/ent/apikey_create.go:878
↓ 21 callers
Method
With
(args ...interface{})
pkg/plugin/logger.go:81
↓ 21 callers
Function
WorktreePath
WorktreePath returns the canonical worktree path for a given agent within a shared base checkout: <hostPath>/worktrees/<agentID>.
pkg/provision/provision.go:385
↓ 21 callers
Function
WriteProjectID
WriteProjectID writes a project-id file to a git project's .scion directory.
pkg/config/project_marker.go:240
↓ 21 callers
Function
doRequestWithAgentToken
doRequestWithAgentToken performs an HTTP request with an agent JWT token.
pkg/hub/handlers_envsecret_authz_test.go:34
↓ 21 callers
Function
mockRuntimeDetection
mockRuntimeDetection sets up mock functions for lookPathFunc and runCheckFunc so that only the specified runtime is reported as available. Call in tes
pkg/config/runtime_detect_test.go:26
↓ 21 callers
Function
newTestBrokerV2WithHub
newTestBrokerV2WithHub creates a v2 broker with a custom hub client injected.
extras/scion-telegram/internal/telegram/broker_v2_test.go:280
↓ 21 callers
Function
newTestServerWithProvisionCapture
()
pkg/runtimebroker/handlers_test.go:1001
↓ 21 callers
Method
templateStore
templateStore returns a ResourceStore for templates.
pkg/hub/resource_store.go:112
↓ 21 callers
Function
testBundledResource
testBundledResource creates a BundledResource for testing.
pkg/hub/resource_source_test.go:42
↓ 20 callers
Function
Conflict
Conflict writes a 409 Conflict response.
pkg/hub/errors.go:196
↓ 20 callers
Method
CreateBrokerSecret
CreateBrokerSecret creates a new broker secret record. Returns ErrAlreadyExists if a secret for this broker already exists.
pkg/store/store.go:857
↓ 20 callers
Method
CreateGCPServiceAccount
CreateGCPServiceAccount registers a new GCP service account. Returns ErrAlreadyExists if a SA with the same email+scope+scopeID exists.
pkg/store/store.go:1056
↓ 20 callers
Method
CreateGitHubInstallation
CreateGitHubInstallation creates a new GitHub App installation record. Uses installation_id as the natural key — creating an existing one is idempoten
pkg/store/store.go:1093
↓ 20 callers
Method
GetGroup
GetGroup retrieves a group by ID. Returns ErrNotFound if the group doesn't exist.
pkg/store/store.go:681
↓ 20 callers
Method
GetGroupMembership
GetGroupMembership returns a specific membership record. Returns ErrNotFound if the membership doesn't exist.
pkg/store/store.go:719
↓ 20 callers
Method
Label
Label prefixes log messages (e.g. "template bootstrap").
pkg/hub/resource_store.go:83
↓ 20 callers
Method
ListEnvVars
ListEnvVars returns environment variables matching the filter criteria.
pkg/store/store.go:608
↓ 20 callers
Function
LoadVersionedSettings
LoadVersionedSettings loads settings using Koanf into VersionedSettings. Provider priority: 1. Embedded defaults (YAML) with OS-specific runtime adjus
pkg/config/settings_v1.go:913
↓ 20 callers
Method
LogAttrs
LogAttrs returns slog attributes for structured logging of this message.
pkg/messages/types.go:201
↓ 20 callers
Function
New
New creates a new metadata server.
pkg/sciontool/metadata/server.go:185
↓ 20 callers
Function
New
(harnessName string)
pkg/harness/harness.go:27
↓ 20 callers
Function
NewClaudeDialect
NewClaudeDialect creates a new Claude dialect parser.
pkg/sciontool/hooks/dialects/claude.go:21
↓ 20 callers
Function
NewClient
NewClient creates a new Hub client from environment variables. Reads SCION_HUB_ENDPOINT first, falling back to SCION_HUB_URL for legacy compat. The to
pkg/sciontool/hub/client.go:177
↓ 20 callers
Function
NewInProcessEventBus
NewInProcessEventBus creates a new in-process event bus.
pkg/eventbus/inprocess.go:70
↓ 20 callers
Function
RegisterSharer
RegisterSharer adds agentID to the sharer list for the given branch worktree. The call is idempotent: re-registering an already-present agent is a no-
pkg/provision/sharers.go:92
↓ 20 callers
Function
RunDomain
RunDomain runs every applicable test category for a single domain against stores produced by factory. Each category obtains its own fresh store.
pkg/store/storetest/storetest.go:142
↓ 20 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserAccessTokenCreate.OnConflict documentation for more info.
pkg/ent/useraccesstoken_create.go:520
↓ 20 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserAccessTokenCreateBulk.OnConflict documentation for more info.
pkg/ent/useraccesstoken_create.go:878
↓ 20 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
pkg/ent/user_create.go:613
↓ 20 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
pkg/ent/user_create.go:971
← previous
next →
401–500 of 37,088, ranked by callers