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
↓ 42 callers
Method
ProjectAgents
ProjectAgents returns the agent operations interface scoped to a specific project.
pkg/hubclient/client.go:37
↓ 42 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectCreate.OnConflict documentation for more info.
pkg/ent/project_create.go:793
↓ 42 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectCreateBulk.OnConflict documentation for more info.
pkg/ent/project_create.go:1305
↓ 42 callers
Method
handleAdminIntegrationByName
handleAdminIntegrationByName dispatches requests under api/v1/admin/integrations/{name}[/config|/restart|/health].
pkg/hub/handlers_integrations.go:152
↓ 41 callers
Method
CreateScheduledEvent
CreateScheduledEvent creates a new scheduled event.
pkg/store/store.go:987
↓ 41 callers
Method
CreateSecret
CreateSecret creates a new secret. Returns ErrAlreadyExists if a secret with the same key+scope+scopeId exists.
pkg/store/store.go:622
↓ 41 callers
Method
CreateTemplate
CreateTemplate creates a new template record.
pkg/store/store.go:415
↓ 41 callers
Method
GetNotifications
GetNotifications returns notifications for a subscriber. If onlyUnacknowledged is true, only unacknowledged notifications are returned. Results are or
pkg/store/store.go:940
↓ 41 callers
Method
SaveUserMapping
User mappings
extras/scion-telegram/internal/telegram/store.go:46
↓ 41 callers
Method
Unique
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 callers
Method
Validate
Validate checks that the channel configuration is valid.
pkg/hub/channels.go:35
↓ 41 callers
Function
getHubClient
(settings *config.Settings)
cmd/hub.go:514
↓ 41 callers
Function
hubManagedProjectPath
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 callers
Method
init
()
pkg/ent/client.go:152
↓ 41 callers
Function
makeTestCreds
makeTestCreds creates BrokerCredentials with a base64-encoded secret key.
pkg/runtimebroker/hub_connection_test.go:40
↓ 41 callers
Function
withInterceptors
(ctx context.Context, q Query, qr Querier, inters []Interceptor)
pkg/ent/ent.go:634
↓ 40 callers
Method
Client
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 callers
Function
RuntimeError
RuntimeError writes a 500 error for runtime failures.
pkg/runtimebroker/errors.go:116
↓ 40 callers
Method
SetSecretBackend
SetSecretBackend sets the secret backend for pluggable secret storage.
pkg/hub/server.go:1529
↓ 40 callers
Method
UpdateOne
UpdateOne returns an update builder for the given entity.
pkg/ent/client.go:5779
↓ 40 callers
Method
Where
Where appends a list predicates to the UserMutation builder.
pkg/ent/mutation.go:39360
↓ 40 callers
Method
delete
delete performs an HTTP DELETE request with fallback.
pkg/hubclient/client.go:338
↓ 40 callers
Method
init
()
pkg/ent/tx.go:223
↓ 40 callers
Method
mutate
(ctx context.Context, m *UserMutation)
pkg/ent/client.go:5890
↓ 40 callers
Function
newMockIntegrationManager
()
pkg/hub/handlers_integrations_test.go:52
↓ 40 callers
Function
seedTestHarnessConfig
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 callers
Method
GetTask
GetTask retrieves a task by ID.
extras/scion-a2a-bridge/internal/bridge/bridge.go:498
↓ 39 callers
Method
HasScope
(scope AgentTokenScope)
pkg/hub/identity.go:43
↓ 39 callers
Function
NewClientWithConfig
NewClientWithConfig creates a new Hub client with explicit configuration.
pkg/sciontool/hub/client.go:214
↓ 39 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillCreate.OnConflict documentation for more info.
pkg/ent/skill_create.go:778
↓ 39 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SkillCreateBulk.OnConflict documentation for more info.
pkg/ent/skill_create.go:1269
↓ 39 callers
Method
UpdateProject
UpdateProject updates an existing project. Returns ErrNotFound if the project doesn't exist.
pkg/store/store.go:258
↓ 39 callers
Method
getCalls
()
pkg/hub/notifications_test.go:57
↓ 39 callers
Function
newTestProjectStore
(t *testing.T)
pkg/store/entadapter/project_store_test.go:32
↓ 39 callers
Function
querierAll
()
pkg/ent/ent.go:610
↓ 39 callers
Method
scanValues
scanValues returns the types for scanning values from sql.Rows.
pkg/ent/user.go:88
↓ 38 callers
Method
IDs
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 callers
Method
ListTemplates
ListTemplates returns templates matching the filter criteria.
pkg/store/store.go:438
↓ 38 callers
Function
readAgentInfo
readAgentInfo is a test helper that reads and parses agent-info.json.
pkg/sciontool/hooks/handlers/status_test.go:721
↓ 37 callers
Method
Close
Close shuts down the connection.
pkg/plugin/config.go:138
↓ 37 callers
Method
Flush
Flush implements http.Flusher for streaming support.
pkg/hub/server.go:2969
↓ 37 callers
Method
GetChannelLink
(ctx context.Context, channelID string)
extras/scion-slack/internal/slack/store.go:19
↓ 37 callers
Method
GetUserMapping
(ctx context.Context, telegramUserID string)
extras/scion-telegram/internal/telegram/store.go:47
↓ 37 callers
Function
Subsystem
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 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the AccessPolicyCreate.OnConflict documentation for more info.
pkg/ent/accesspolicy_create.go:730
↓ 37 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the AccessPolicyCreateBulk.OnConflict documentation for more info.
pkg/ent/accesspolicy_create.go:1207
↓ 37 callers
Method
UpdateAgent
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 callers
Method
GenerateAgentToken
(agentID, projectID string, ancestry []string, additionalScopes ...AgentTokenScope)
pkg/hub/httpdispatcher.go:118
↓ 36 callers
Method
Name
Name returns the channel identifier (e.g., "webhook", "slack").
pkg/hub/channels.go:29
↓ 36 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MessageCreate.OnConflict documentation for more info.
pkg/ent/message_create.go:757
↓ 36 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MessageCreateBulk.OnConflict documentation for more info.
pkg/ent/message_create.go:1227
↓ 36 callers
Function
setupNotificationTest
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 callers
Function
testEvaluatorStore
testEvaluatorStore creates a fresh in-memory store for evaluator tests.
pkg/hub/lifecycle_hook_evaluator_test.go:145
↓ 35 callers
Method
AddPolicyBinding
AddPolicyBinding binds a principal (user, group, or agent) to a policy. Returns ErrAlreadyExists if the binding already exists.
pkg/store/store.go:788
↓ 35 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ScheduleCreate.OnConflict documentation for more info.
pkg/ent/schedule_create.go:733
↓ 35 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ScheduleCreateBulk.OnConflict documentation for more info.
pkg/ent/schedule_create.go:1196
↓ 35 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the BrokerDispatchCreate.OnConflict documentation for more info.
pkg/ent/brokerdispatch_create.go:701
↓ 35 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the BrokerDispatchCreateBulk.OnConflict documentation for more info.
pkg/ent/brokerdispatch_create.go:1164
↓ 34 callers
Method
AddField
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 callers
Method
GetGroupBySlug
GetGroupBySlug retrieves a group by its slug. Returns ErrNotFound if the group doesn't exist.
pkg/store/store.go:685
↓ 34 callers
Method
GetTemplate
GetTemplate retrieves a template by ID. Returns ErrNotFound if the template doesn't exist.
pkg/store/store.go:419
↓ 34 callers
Method
GetTemplateBySlug
GetTemplateBySlug retrieves a template by its slug and scope. Returns ErrNotFound if the template doesn't exist.
pkg/store/store.go:423
↓ 34 callers
Function
LoadHarnessConfigDir
LoadHarnessConfigDir loads a harness-config from an on-disk directory.
pkg/config/harness_config.go:44
↓ 34 callers
Function
New
New creates a new TelegramBroker with the given logger.
extras/scion-telegram/internal/telegram/telegram.go:172
↓ 34 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SecretCreate.OnConflict documentation for more info.
pkg/ent/secret_create.go:732
↓ 34 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the SecretCreateBulk.OnConflict documentation for more info.
pkg/ent/secret_create.go:1188
↓ 34 callers
Function
ensureHubMembership
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 callers
Method
Count
Count returns the count of the given query.
pkg/ent/user_query.go:278
↓ 33 callers
Method
Delete
Delete terminates and removes an agent
pkg/agent/manager.go:44
↓ 33 callers
Method
Execute
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 callers
Function
New
New creates a new Hub API server.
pkg/hub/server.go:709
↓ 33 callers
Method
Templates
Templates returns the template operations interface.
pkg/hubclient/client.go:52
↓ 33 callers
Method
answerCallback
(ctx context.Context, callbackID, text string, showAlert bool)
extras/scion-telegram/internal/telegram/callbacks.go:655
↓ 33 callers
Function
permSeedUser
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 callers
Method
reply
(chatID int64, text string)
extras/scion-telegram/internal/telegram/commands.go:579
↓ 32 callers
Method
Delete
Delete removes an environment variable.
pkg/hubclient/env.go:36
↓ 32 callers
Method
GenerateTokenPair
GenerateTokenPair generates an access token and refresh token for a user.
pkg/hub/usertoken.go:143
↓ 32 callers
Method
GetDispatcher
GetDispatcher returns the current agent dispatcher.
pkg/hub/server.go:1367
↓ 32 callers
Function
GetMockHarnesses
()
pkg/config/mock_harness_test.go:68
↓ 32 callers
Function
GetProjectID
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 callers
Method
Handle
Handle processes an event and updates the agent status.
pkg/sciontool/hooks/handlers/status.go:52
↓ 32 callers
Method
ListHarnessConfigs
ListHarnessConfigs returns harness configs matching the filter criteria.
pkg/store/store.go:479
↓ 32 callers
Function
New
New creates a new template cache at the specified base path. If maxSize is 0, DefaultMaxSize is used.
pkg/templatecache/cache.go:79
↓ 32 callers
Function
ValidateSettings
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 callers
Function
seedLifecycleHook
seedLifecycleHook creates a lifecycle hook in the store and returns it.
pkg/hub/lifecycle_hook_evaluator_test.go:186
↓ 32 callers
Function
setupDemoPolicyTest
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 callers
Method
BrokerID
()
pkg/hub/brokeridentity.go:25
↓ 31 callers
Method
Client
Client returns a Client that binds to current transaction.
pkg/ent/tx.go:215
↓ 31 callers
Method
Description
Description returns the value of the "description" field in the mutation.
pkg/ent/mutation.go:11715
↓ 31 callers
Function
DetectSettingsFormat
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 callers
Method
GetAgent
GetAgent retrieves an agent by ID. Returns ErrNotFound if the agent doesn't exist.
pkg/store/store.go:133
↓ 31 callers
Function
GetProjectName
GetProjectName returns the slugified name of the project.
pkg/config/paths.go:117
↓ 31 callers
Function
NewLifecycleHookEvaluator
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 callers
Method
ScopeID
ScopeID returns the value of the "scope_id" field in the mutation.
pkg/ent/mutation.go:33215
↓ 31 callers
Method
SetCreated
SetCreated sets the "created" field.
pkg/ent/mutation.go:39064
↓ 31 callers
Method
UpdateActivity
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 callers
Method
UpdateStatus
UpdateStatus sends a status update to the Hub with automatic retry on transient failures.
pkg/sciontool/hub/client.go:251
↓ 31 callers
Function
doRequestNoAuth
doRequestNoAuth performs an HTTP request without authentication. Use this for testing unauthenticated access or auth endpoints themselves.
pkg/hub/handlers_test.go:98
↓ 30 callers
Method
CreatedByCleared
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
pkg/ent/mutation.go:1891
↓ 30 callers
Method
Enabled
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
← previous
next →
201–300 of 37,088, ranked by callers