MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationCreate.OnConflict documentation for more info.
pkg/ent/maintenanceoperation_create.go:586
↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationCreateBulk.OnConflict documentation for more info.
pkg/ent/maintenanceoperation_create.go:972
↓ 24 callersFunctioncreateTestBackend
(t *testing.T)
pkg/secret/localbackend_test.go:38
↓ 24 callersFunctionexecutorTestStore
--------------------------------------------------------------------------- Test store setup ---------------------------------------------------------
pkg/hub/lifecycle_hook_executor_test.go:114
↓ 24 callersMethodgetWithQuery
getWithQuery performs an HTTP GET request with query parameters and fallback.
pkg/hubclient/client.go:286
↓ 24 callersFunctionmakeTestAgent
(projectID string)
pkg/hub/lifecycle_hook_executor_test.go:173
↓ 24 callersFunctionmetadataGet
(t *testing.T, port int, path string)
pkg/sciontool/metadata/server_test.go:132
↓ 24 callersFunctionnewNFSTestK8sRuntime
newNFSTestK8sRuntime creates a KubernetesRuntime backed by a fake clientset for unit testing buildPod and related methods.
pkg/runtime/k8s_nfs_test.go:39
↓ 24 callersFunctionnewTestBrokerV2
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 callersFunctionnewTestCommandHandler
(t *testing.T)
extras/scion-telegram/internal/telegram/commands_test.go:27
↓ 24 callersFunctionnewTestServerWithStore
(t *testing.T)
pkg/hub/admin_maintenance_test.go:33
↓ 23 callersMethodDispatchAgentCreate
DispatchAgentCreate creates and starts an agent on the runtime broker. Returns the updated agent info after creation/start.
pkg/hub/server.go:256
↓ 23 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
pkg/ent/mutation.go:4174
↓ 23 callersFunctionGetAgentHomePath
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 callersFunctionGetSettingsPath
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 callersMethodKey
Key returns the value of the "key" field in the mutation.
pkg/ent/mutation.go:9077
↓ 23 callersMethodList
List returns environment variables for the specified scope.
pkg/hubclient/env.go:27
↓ 23 callersFunctionLoadGlobalConfig
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 callersFunctionLoadSettingsKoanf
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 callersMethodPost
Post performs an HTTP POST request with JSON body.
pkg/apiclient/transport.go:222
↓ 23 callersMethodSaveProjectAgents
ProjectAgents cache
extras/scion-telegram/internal/telegram/store.go:42
↓ 23 callersMethodShutdown
Shutdown flushes and shuts down all providers.
pkg/sciontool/telemetry/providers.go:288
↓ 23 callersMethodTick
Tick performs a single lock-loop iteration. Exported for testing.
pkg/integration/lockloop/lockloop.go:120
↓ 23 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GCPServiceAccountCreate.OnConflict documentation for more info.
pkg/ent/gcpserviceaccount_create.go:619
↓ 23 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GCPServiceAccountCreateBulk.OnConflict documentation for more info.
pkg/ent/gcpserviceaccount_create.go:998
↓ 23 callersFunctioncomputeContentHash
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 callersFunctionnewTestServerForStartContext
(t *testing.T, cfg ServerConfig)
pkg/runtimebroker/start_context_test.go:34
↓ 23 callersFunctionstatusln
statusln prints an informational/progress line to stderr. See statusf for details.
cmd/output.go:41
↓ 22 callersMethodAgents
Agents returns the agent operations interface.
pkg/brokerclient/client.go:30
↓ 22 callersMethodBootstrapSource
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 callersMethodDeleteOneID
DeleteOneID returns a builder for deleting the given entity by its id.
pkg/ent/client.go:5802
↓ 22 callersMethodDisplayStatus
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 callersMethodExpiresAt
ExpiresAt returns the value of the "expires_at" field in the mutation.
pkg/ent/mutation.go:5456
↓ 22 callersMethodGetHarnessConfig
GetHarnessConfig retrieves a harness config by ID. Returns ErrNotFound if the harness config doesn't exist.
pkg/store/store.go:460
↓ 22 callersMethodGetProjectProvider
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 callersMethodLoadConfig
()
pkg/config/templates.go:86
↓ 22 callersFunctionLoadProjectState
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 callersFunctionNew
New opens (or creates) the SQLite database at dbPath and runs schema migrations.
extras/scion-a2a-bridge/internal/state/state.go:66
↓ 22 callersFunctionNewFSResourceSource
NewFSResourceSource returns a ResourceSource backed by a BundledResource.
pkg/hub/resource_source.go:97
↓ 22 callersMethodRead
Read reads data from the stream.
pkg/hub/controlchannel.go:163
↓ 22 callersMethodRuntimeBrokers
RuntimeBrokers returns the runtime broker operations interface.
pkg/hubclient/client.go:43
↓ 22 callersMethodSetDisplayName
SetDisplayName sets the "display_name" field.
pkg/ent/mutation.go:38858
↓ 22 callersMethodString
()
pkg/ent/envvar/envvar.go:101
↓ 22 callersMethodSubscribe
Subscribe registers a handler for messages matching a topic pattern.
pkg/plugin/config.go:136
↓ 22 callersMethodType
()
pkg/hub/identity.go:27
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the EnvVarCreate.OnConflict documentation for more info.
pkg/ent/envvar_create.go:576
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the EnvVarCreateBulk.OnConflict documentation for more info.
pkg/ent/envvar_create.go:948
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ScheduledEventCreate.OnConflict documentation for more info.
pkg/ent/scheduledevent_create.go:532
↓ 22 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ScheduledEventCreateBulk.OnConflict documentation for more info.
pkg/ent/scheduledevent_create.go:904
↓ 22 callersFunctionauthzTestSetup
authzTestSetup creates a test server with the authz service and pre-populated data.
pkg/hub/authz_test.go:32
↓ 22 callersFunctionmakeTestHook
--------------------------------------------------------------------------- Helpers ------------------------------------------------------------------
pkg/hub/lifecycle_hook_executor_test.go:159
↓ 22 callersFunctionnewFakeHubClient
()
extras/scion-telegram/internal/telegram/broker_v2_test.go:46
↓ 22 callersFunctionnewTestResilientHandler
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 callersFunctionnewTestSecretStore
(t *testing.T)
pkg/store/entadapter/secret_store_test.go:30
↓ 22 callersFunctionseedExecutorProject
(t *testing.T, s store.Store, name string)
pkg/hub/lifecycle_hook_executor_test.go:121
↓ 22 callersFunctionseedLifecycleTask
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 callersMethodActive
Active reports whether the lock is currently held.
pkg/integration/lockloop/lockloop.go:212
↓ 21 callersMethodComputeCapabilities
ComputeCapabilities evaluates which actions the identity can perform on a single resource.
pkg/hub/capabilities.go:168
↓ 21 callersMethodGetNotificationSubscriptions
GetNotificationSubscriptions returns all agent-scoped subscriptions for a watched agent.
pkg/store/store.go:910
↓ 21 callersFunctionHashBytes
HashBytes computes the SHA-256 hash of a byte slice. Returns the hash in format "sha256:<hex>".
pkg/transfer/hash.go:47
↓ 21 callersMethodInjectionMode
InjectionMode returns the value of the "injection_mode" field in the mutation.
pkg/ent/mutation.go:9306
↓ 21 callersMethodIsHubEnabled
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 callersFunctionNewMessageBrokerProxy
NewMessageBrokerProxy creates a new MessageBrokerProxy.
pkg/hub/messagebroker.go:64
↓ 21 callersFunctionNewStore
NewStore creates a new credential store at the given path. If path is empty, DefaultPath() is used.
pkg/brokercredentials/store.go:82
↓ 21 callersMethodQuery
Query returns a query builder for User.
pkg/ent/client.go:5810
↓ 21 callersMethodRequestSubscription
(pattern string)
pkg/plugin/broker_plugin.go:95
↓ 21 callersMethodServe
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 callersMethodSetAffinityLookup
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 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ApiKeyCreate.OnConflict documentation for more info.
pkg/ent/apikey_create.go:513
↓ 21 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ApiKeyCreateBulk.OnConflict documentation for more info.
pkg/ent/apikey_create.go:878
↓ 21 callersMethodWith
(args ...interface{})
pkg/plugin/logger.go:81
↓ 21 callersFunctionWorktreePath
WorktreePath returns the canonical worktree path for a given agent within a shared base checkout: <hostPath>/worktrees/<agentID>.
pkg/provision/provision.go:385
↓ 21 callersFunctionWriteProjectID
WriteProjectID writes a project-id file to a git project's .scion directory.
pkg/config/project_marker.go:240
↓ 21 callersFunctiondoRequestWithAgentToken
doRequestWithAgentToken performs an HTTP request with an agent JWT token.
pkg/hub/handlers_envsecret_authz_test.go:34
↓ 21 callersFunctionmockRuntimeDetection
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 callersFunctionnewTestBrokerV2WithHub
newTestBrokerV2WithHub creates a v2 broker with a custom hub client injected.
extras/scion-telegram/internal/telegram/broker_v2_test.go:280
↓ 21 callersFunctionnewTestServerWithProvisionCapture
()
pkg/runtimebroker/handlers_test.go:1001
↓ 21 callersMethodtemplateStore
templateStore returns a ResourceStore for templates.
pkg/hub/resource_store.go:112
↓ 21 callersFunctiontestBundledResource
testBundledResource creates a BundledResource for testing.
pkg/hub/resource_source_test.go:42
↓ 20 callersFunctionConflict
Conflict writes a 409 Conflict response.
pkg/hub/errors.go:196
↓ 20 callersMethodCreateBrokerSecret
CreateBrokerSecret creates a new broker secret record. Returns ErrAlreadyExists if a secret for this broker already exists.
pkg/store/store.go:857
↓ 20 callersMethodCreateGCPServiceAccount
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 callersMethodCreateGitHubInstallation
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 callersMethodGetGroup
GetGroup retrieves a group by ID. Returns ErrNotFound if the group doesn't exist.
pkg/store/store.go:681
↓ 20 callersMethodGetGroupMembership
GetGroupMembership returns a specific membership record. Returns ErrNotFound if the membership doesn't exist.
pkg/store/store.go:719
↓ 20 callersMethodLabel
Label prefixes log messages (e.g. "template bootstrap").
pkg/hub/resource_store.go:83
↓ 20 callersMethodListEnvVars
ListEnvVars returns environment variables matching the filter criteria.
pkg/store/store.go:608
↓ 20 callersFunctionLoadVersionedSettings
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 callersMethodLogAttrs
LogAttrs returns slog attributes for structured logging of this message.
pkg/messages/types.go:201
↓ 20 callersFunctionNew
New creates a new metadata server.
pkg/sciontool/metadata/server.go:185
↓ 20 callersFunctionNew
(harnessName string)
pkg/harness/harness.go:27
↓ 20 callersFunctionNewClaudeDialect
NewClaudeDialect creates a new Claude dialect parser.
pkg/sciontool/hooks/dialects/claude.go:21
↓ 20 callersFunctionNewClient
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 callersFunctionNewInProcessEventBus
NewInProcessEventBus creates a new in-process event bus.
pkg/eventbus/inprocess.go:70
↓ 20 callersFunctionRegisterSharer
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 callersFunctionRunDomain
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 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserAccessTokenCreate.OnConflict documentation for more info.
pkg/ent/useraccesstoken_create.go:520
↓ 20 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserAccessTokenCreateBulk.OnConflict documentation for more info.
pkg/ent/useraccesstoken_create.go:878
↓ 20 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
pkg/ent/user_create.go:613
↓ 20 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
pkg/ent/user_create.go:971
← previousnext →401–500 of 37,088, ranked by callers