MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 42 callersMethodProjectAgents
ProjectAgents returns the agent operations interface scoped to a specific project.
pkg/hubclient/client.go:37
↓ 42 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectCreate.OnConflict documentation for more info.
pkg/ent/project_create.go:793
↓ 42 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectCreateBulk.OnConflict documentation for more info.
pkg/ent/project_create.go:1305
↓ 42 callersMethodhandleAdminIntegrationByName
handleAdminIntegrationByName dispatches requests under api/v1/admin/integrations/{name}[/config|/restart|/health].
pkg/hub/handlers_integrations.go:152
↓ 41 callersMethodCreateScheduledEvent
CreateScheduledEvent creates a new scheduled event.
pkg/store/store.go:987
↓ 41 callersMethodCreateSecret
CreateSecret creates a new secret. Returns ErrAlreadyExists if a secret with the same key+scope+scopeId exists.
pkg/store/store.go:622
↓ 41 callersMethodCreateTemplate
CreateTemplate creates a new template record.
pkg/store/store.go:415
↓ 41 callersMethodGetNotifications
GetNotifications returns notifications for a subscriber. If onlyUnacknowledged is true, only unacknowledged notifications are returned. Results are or
pkg/store/store.go:940
↓ 41 callersMethodSaveUserMapping
User mappings
extras/scion-telegram/internal/telegram/store.go:46
↓ 41 callersMethodUnique
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
pkg/ent/user_query.go:60
↓ 41 callersMethodValidate
Validate checks that the channel configuration is valid.
pkg/hub/channels.go:35
↓ 41 callersFunctiongetHubClient
(settings *config.Settings)
cmd/hub.go:514
↓ 41 callersFunctionhubManagedProjectPath
hubManagedProjectPath returns the filesystem path for a hub-managed project workspace. It prefers projects/<slug> and falls back to groves/<slug> for
pkg/hub/handlers_projects_core.go:641
↓ 41 callersMethodinit
()
pkg/ent/client.go:152
↓ 41 callersFunctionmakeTestCreds
makeTestCreds creates BrokerCredentials with a base64-encoded secret key.
pkg/runtimebroker/hub_connection_test.go:40
↓ 41 callersFunctionwithInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
pkg/ent/ent.go:634
↓ 40 callersMethodClient
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
pkg/ent/mutation.go:38770
↓ 40 callersFunctionRuntimeError
RuntimeError writes a 500 error for runtime failures.
pkg/runtimebroker/errors.go:116
↓ 40 callersMethodSetSecretBackend
SetSecretBackend sets the secret backend for pluggable secret storage.
pkg/hub/server.go:1529
↓ 40 callersMethodUpdateOne
UpdateOne returns an update builder for the given entity.
pkg/ent/client.go:5779
↓ 40 callersMethodWhere
Where appends a list predicates to the UserMutation builder.
pkg/ent/mutation.go:39360
↓ 40 callersMethoddelete
delete performs an HTTP DELETE request with fallback.
pkg/hubclient/client.go:338
↓ 40 callersMethodinit
()
pkg/ent/tx.go:223
↓ 40 callersMethodmutate
(ctx context.Context, m *UserMutation)
pkg/ent/client.go:5890
↓ 40 callersFunctionnewMockIntegrationManager
()
pkg/hub/handlers_integrations_test.go:52
↓ 40 callersFunctionseedTestHarnessConfig
seedTestHarnessConfig creates a minimal harness-config directory for testing. Creates <scionDir>/harness-configs/<name>/config.yaml with the given har
pkg/agent/provision_test.go:35
↓ 39 callersMethodGetTask
GetTask retrieves a task by ID.
extras/scion-a2a-bridge/internal/bridge/bridge.go:498
↓ 39 callersMethodHasScope
(scope AgentTokenScope)
pkg/hub/identity.go:43
↓ 39 callersFunctionNewClientWithConfig
NewClientWithConfig creates a new Hub client with explicit configuration.
pkg/sciontool/hub/client.go:214
↓ 39 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillCreate.OnConflict documentation for more info.
pkg/ent/skill_create.go:778
↓ 39 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillCreateBulk.OnConflict documentation for more info.
pkg/ent/skill_create.go:1269
↓ 39 callersMethodUpdateProject
UpdateProject updates an existing project. Returns ErrNotFound if the project doesn't exist.
pkg/store/store.go:258
↓ 39 callersMethodgetCalls
()
pkg/hub/notifications_test.go:57
↓ 39 callersFunctionnewTestProjectStore
(t *testing.T)
pkg/store/entadapter/project_store_test.go:32
↓ 39 callersFunctionquerierAll
()
pkg/ent/ent.go:610
↓ 39 callersMethodscanValues
scanValues returns the types for scanning values from sql.Rows.
pkg/ent/user.go:88
↓ 38 callersMethodIDs
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction w
pkg/ent/mutation.go:38806
↓ 38 callersMethodListTemplates
ListTemplates returns templates matching the filter criteria.
pkg/store/store.go:438
↓ 38 callersFunctionreadAgentInfo
readAgentInfo is a test helper that reads and parses agent-info.json.
pkg/sciontool/hooks/handlers/status_test.go:721
↓ 37 callersMethodClose
Close shuts down the connection.
pkg/plugin/config.go:138
↓ 37 callersMethodFlush
Flush implements http.Flusher for streaming support.
pkg/hub/server.go:2969
↓ 37 callersMethodGetChannelLink
(ctx context.Context, channelID string)
extras/scion-slack/internal/slack/store.go:19
↓ 37 callersMethodGetUserMapping
(ctx context.Context, telegramUserID string)
extras/scion-telegram/internal/telegram/store.go:47
↓ 37 callersFunctionSubsystem
Subsystem returns a child logger with the given subsystem attribute. The returned logger inherits the root component attribute and adds a "subsystem"
pkg/util/logging/logging.go:108
↓ 37 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the AccessPolicyCreate.OnConflict documentation for more info.
pkg/ent/accesspolicy_create.go:730
↓ 37 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the AccessPolicyCreateBulk.OnConflict documentation for more info.
pkg/ent/accesspolicy_create.go:1207
↓ 37 callersMethodUpdateAgent
UpdateAgent updates an existing agent. Uses optimistic locking via StateVersion. Returns ErrNotFound if agent doesn't exist. Returns ErrVersionConflic
pkg/store/store.go:143
↓ 36 callersMethodGenerateAgentToken
(agentID, projectID string, ancestry []string, additionalScopes ...AgentTokenScope)
pkg/hub/httpdispatcher.go:118
↓ 36 callersMethodName
Name returns the channel identifier (e.g., "webhook", "slack").
pkg/hub/channels.go:29
↓ 36 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MessageCreate.OnConflict documentation for more info.
pkg/ent/message_create.go:757
↓ 36 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MessageCreateBulk.OnConflict documentation for more info.
pkg/ent/message_create.go:1227
↓ 36 callersFunctionsetupNotificationTest
setupNotificationTest creates an in-memory SQLite store, event publisher, recording dispatcher, project, watched agent, subscriber agent, and subscrip
pkg/hub/notifications_test.go:151
↓ 36 callersFunctiontestEvaluatorStore
testEvaluatorStore creates a fresh in-memory store for evaluator tests.
pkg/hub/lifecycle_hook_evaluator_test.go:145
↓ 35 callersMethodAddPolicyBinding
AddPolicyBinding binds a principal (user, group, or agent) to a policy. Returns ErrAlreadyExists if the binding already exists.
pkg/store/store.go:788
↓ 35 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ScheduleCreate.OnConflict documentation for more info.
pkg/ent/schedule_create.go:733
↓ 35 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ScheduleCreateBulk.OnConflict documentation for more info.
pkg/ent/schedule_create.go:1196
↓ 35 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the BrokerDispatchCreate.OnConflict documentation for more info.
pkg/ent/brokerdispatch_create.go:701
↓ 35 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the BrokerDispatchCreateBulk.OnConflict documentation for more info.
pkg/ent/brokerdispatch_create.go:1164
↓ 34 callersMethodAddField
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the
pkg/ent/mutation.go:39566
↓ 34 callersMethodGetGroupBySlug
GetGroupBySlug retrieves a group by its slug. Returns ErrNotFound if the group doesn't exist.
pkg/store/store.go:685
↓ 34 callersMethodGetTemplate
GetTemplate retrieves a template by ID. Returns ErrNotFound if the template doesn't exist.
pkg/store/store.go:419
↓ 34 callersMethodGetTemplateBySlug
GetTemplateBySlug retrieves a template by its slug and scope. Returns ErrNotFound if the template doesn't exist.
pkg/store/store.go:423
↓ 34 callersFunctionLoadHarnessConfigDir
LoadHarnessConfigDir loads a harness-config from an on-disk directory.
pkg/config/harness_config.go:44
↓ 34 callersFunctionNew
New creates a new TelegramBroker with the given logger.
extras/scion-telegram/internal/telegram/telegram.go:172
↓ 34 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SecretCreate.OnConflict documentation for more info.
pkg/ent/secret_create.go:732
↓ 34 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SecretCreateBulk.OnConflict documentation for more info.
pkg/ent/secret_create.go:1188
↓ 34 callersFunctionensureHubMembership
ensureHubMembership adds the given user to the hub-members group. This is best-effort; errors are logged at debug level and ignored.
pkg/hub/seed.go:131
↓ 33 callersMethodCount
Count returns the count of the given query.
pkg/ent/user_query.go:278
↓ 33 callersMethodDelete
Delete terminates and removes an agent
pkg/agent/manager.go:44
↓ 33 callersMethodExecute
Execute performs the action defined in the hook for the given agent and trigger. Implementations MUST NOT panic; panics will be recovered by the evalu
pkg/hub/lifecycle_hook_evaluator.go:44
↓ 33 callersFunctionNew
New creates a new Hub API server.
pkg/hub/server.go:709
↓ 33 callersMethodTemplates
Templates returns the template operations interface.
pkg/hubclient/client.go:52
↓ 33 callersMethodanswerCallback
(ctx context.Context, callbackID, text string, showAlert bool)
extras/scion-telegram/internal/telegram/callbacks.go:655
↓ 33 callersFunctionpermSeedUser
permSeedUser ensures a user row exists so that group-membership / policy-binding foreign keys resolve. The Ent store enforces user/agent FK edges that
pkg/hub/handlers_permissions_test.go:35
↓ 33 callersMethodreply
(chatID int64, text string)
extras/scion-telegram/internal/telegram/commands.go:579
↓ 32 callersMethodDelete
Delete removes an environment variable.
pkg/hubclient/env.go:36
↓ 32 callersMethodGenerateTokenPair
GenerateTokenPair generates an access token and refresh token for a user.
pkg/hub/usertoken.go:143
↓ 32 callersMethodGetDispatcher
GetDispatcher returns the current agent dispatcher.
pkg/hub/server.go:1367
↓ 32 callersFunctionGetMockHarnesses
()
pkg/config/mock_harness_test.go:68
↓ 32 callersFunctionGetProjectID
GetProjectID looks up the project ID from HubContext or settings. Priority: 1. ProjectID field in HubContext (set by EnsureHubReady) 2. Local project_
cmd/common.go:324
↓ 32 callersMethodHandle
Handle processes an event and updates the agent status.
pkg/sciontool/hooks/handlers/status.go:52
↓ 32 callersMethodListHarnessConfigs
ListHarnessConfigs returns harness configs matching the filter criteria.
pkg/store/store.go:479
↓ 32 callersFunctionNew
New creates a new template cache at the specified base path. If maxSize is 0, DefaultMaxSize is used.
pkg/templatecache/cache.go:79
↓ 32 callersFunctionValidateSettings
ValidateSettings validates raw settings data (YAML or JSON) against the embedded JSON Schema for the given schema version. The data is first converte
pkg/config/schema.go:106
↓ 32 callersFunctionseedLifecycleHook
seedLifecycleHook creates a lifecycle hook in the store and returns it.
pkg/hub/lifecycle_hook_evaluator_test.go:186
↓ 32 callersFunctionsetupDemoPolicyTest
setupDemoPolicyTest creates a test server with two users and a project. User "alice" is a project member (project creator); user "bob" is not. Both ar
pkg/hub/demo_policy_test.go:63
↓ 31 callersMethodBrokerID
()
pkg/hub/brokeridentity.go:25
↓ 31 callersMethodClient
Client returns a Client that binds to current transaction.
pkg/ent/tx.go:215
↓ 31 callersMethodDescription
Description returns the value of the "description" field in the mutation.
pkg/ent/mutation.go:11715
↓ 31 callersFunctionDetectSettingsFormat
DetectSettingsFormat inspects raw settings data (YAML or JSON) and determines whether it uses the versioned format or the legacy format. Returns: - v
pkg/config/schema.go:62
↓ 31 callersMethodGetAgent
GetAgent retrieves an agent by ID. Returns ErrNotFound if the agent doesn't exist.
pkg/store/store.go:133
↓ 31 callersFunctionGetProjectName
GetProjectName returns the slugified name of the project.
pkg/config/paths.go:117
↓ 31 callersFunctionNewLifecycleHookEvaluator
NewLifecycleHookEvaluator creates a new evaluator. The executor is injectable; pass nil to use the default LoggingExecutor. The events parameter accep
pkg/hub/lifecycle_hook_evaluator.go:255
↓ 31 callersMethodScopeID
ScopeID returns the value of the "scope_id" field in the mutation.
pkg/ent/mutation.go:33215
↓ 31 callersMethodSetCreated
SetCreated sets the "created" field.
pkg/ent/mutation.go:39064
↓ 31 callersMethodUpdateActivity
UpdateActivity writes the activity to the agent-info.json file atomically. Used for runtime activity changes (most events). Preserves the current phas
pkg/sciontool/hooks/handlers/status.go:93
↓ 31 callersMethodUpdateStatus
UpdateStatus sends a status update to the Hub with automatic retry on transient failures.
pkg/sciontool/hub/client.go:251
↓ 31 callersFunctiondoRequestNoAuth
doRequestNoAuth performs an HTTP request without authentication. Use this for testing unauthenticated access or auth endpoints themselves.
pkg/hub/handlers_test.go:98
↓ 30 callersMethodCreatedByCleared
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
pkg/ent/mutation.go:1891
↓ 30 callersMethodEnabled
Enabled reports whether metrics are backed by a real (non-no-op) MeterProvider. Callers may use this to skip building attribute sets when nothing will
pkg/observability/dbmetrics/dbmetrics.go:85
← previousnext →201–300 of 37,088, ranked by callers