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
↓ 3,375 callers
Method
Join
Join completes broker registration using a join token. Returns the HMAC secret key for future authentication.
pkg/hubclient/runtime_brokers.go:33
↓ 3,235 callers
Method
Error
(...any)
pkg/ent/enttest/enttest.go:21
↓ 1,777 callers
Function
tid
tid deterministically maps a human-readable test identifier (e.g. "user-1") to a stable UUID string. The Ent-backed store uses UUID primary keys, so t
pkg/hub/tid_test.go:26
↓ 1,453 callers
Method
Set
Set creates or updates an environment variable.
pkg/hubclient/env.go:33
↓ 1,233 callers
Method
SetField
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the f
pkg/ent/mutation.go:39481
↓ 933 callers
Method
Run
(ctx context.Context, config RunConfig)
pkg/runtime/interface.go:108
↓ 905 callers
Method
MkdirAll
MkdirAll creates the directory tree for the mountpoint.
pkg/runtimebroker/nfs_mount.go:47
↓ 769 callers
Method
String
()
pkg/hub/broker_routing.go:60
↓ 666 callers
Method
Get
Get returns a specific environment variable by key.
pkg/hubclient/env.go:30
↓ 591 callers
Method
Add
(ctx context.Context, email, note string)
pkg/hubclient/allow_list.go:28
↓ 580 callers
Function
doRequest
doRequest performs an HTTP request against the test server. It automatically includes the dev auth token for authenticated endpoints.
pkg/hub/handlers_test.go:73
↓ 573 callers
Function
writeError
writeError writes a JSON error response. For 5xx errors, it logs the error details for debugging.
pkg/hub/errors.go:81
↓ 566 callers
Method
Warn
(msg string, args ...interface{})
pkg/plugin/logger.go:63
↓ 546 callers
Method
Info
Info returns broker information.
pkg/brokerclient/client.go:33
↓ 536 callers
Method
Stat
(ctx context.Context, name string)
pkg/hub/project_webdav.go:278
↓ 534 callers
Method
Len
Len returns the number of registered channels.
pkg/hub/channels.go:103
↓ 489 callers
Function
testServer
testServer creates a test server with an in-memory SQLite store. The server is configured with dev auth enabled using testDevToken.
pkg/hub/handlers_test.go:41
↓ 482 callers
Method
String
String returns a human-readable label for the mode.
pkg/sciontool/hub/client.go:85
↓ 413 callers
Method
get
get performs an HTTP GET request with fallback.
pkg/hubclient/client.go:281
↓ 407 callers
Method
Debug
Debug returns a new debug-client. It's used to get verbose logging on specific operations. client.Debug(). AccessPolicy. Query(). Count(ctx)
pkg/ent/client.go:391
↓ 404 callers
Method
Query
Query calls tx.Query.
pkg/ent/tx.go:320
↓ 390 callers
Method
Exec
(ctx context.Context, id string, cmd []string)
pkg/runtime/interface.go:117
↓ 390 callers
Function
setContextOp
setContextOp returns a new context with the given QueryContext attached (including its op) in case it does not exist.
pkg/ent/ent.go:602
↓ 382 callers
Method
ID
()
pkg/hub/identity.go:26
↓ 373 callers
Function
writeErrorFromErr
writeErrorFromErr writes an error response based on a Go error. For 5xx errors, it logs the underlying error for debugging.
pkg/hub/errors.go:105
↓ 372 callers
Method
ReadFile
ReadFile reads a harness config file through the Hub API.
pkg/hubclient/harness_configs.go:69
↓ 366 callers
Method
ClearField
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
pkg/ent/mutation.go:39600
↓ 353 callers
Method
Where
Where adds a new predicate for the UserQuery builder.
pkg/ent/user_query.go:41
↓ 349 callers
Function
writeJSON
Helper functions writeJSON writes a JSON response.
pkg/hub/server.go:2997
↓ 333 callers
Method
Close
Lifecycle
extras/scion-telegram/internal/telegram/store.go:80
↓ 314 callers
Method
Save
Save writes the given key-value map to the integration configuration store.
pkg/config/integration_config.go:55
↓ 305 callers
Method
WriteHeader
(code int)
pkg/hub/server.go:2955
↓ 292 callers
Method
String
String implements the fmt.Stringer.
pkg/ent/user.go:226
↓ 290 callers
Method
Run
Run executes the operation. The context is cancelled if the server shuts down. The logger captures output that is stored in the run/operation's log fi
pkg/hub/maintenance_executors.go:52
↓ 289 callers
Method
Close
()
pkg/hub/events.go:54
↓ 285 callers
Method
CreateProject
CreateProject creates a new project record. Returns ErrAlreadyExists if a project with the same slug exists.
pkg/store/store.go:232
↓ 282 callers
Method
Close
Close flushes any pending message buffers. Must be called before the process exits to ensure buffered messages are delivered.
pkg/agent/manager.go:65
↓ 256 callers
Method
String
()
pkg/ent/skill/skill.go:116
↓ 245 callers
Function
Debugf
Debugf prints a debug message to stderr if debug mode is enabled. The message is prefixed with a timestamp and [DEBUG].
pkg/util/debug.go:57
↓ 242 callers
Method
Dialect
Dialect returns the dialect of the driver we started the transaction from.
pkg/ent/tx.go:301
↓ 241 callers
Method
Descriptor
Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
proto/broker/v1/broker.pb.go:349
↓ 236 callers
Function
apiFetch
(path: string, options?: RequestInit)
web/src/client/api.ts:45
↓ 226 callers
Method
Name
()
pkg/api/harness.go:24
↓ 206 callers
Function
MethodNotAllowed
MethodNotAllowed writes a 405 Method Not Allowed response.
pkg/hub/errors.go:207
↓ 202 callers
Method
CreateRuntimeBroker
CreateRuntimeBroker creates a new runtime broker record.
pkg/store/store.go:297
↓ 197 callers
Method
CreateAgent
CreateAgent creates an agent on a remote runtime broker. brokerID is used for HMAC authentication lookup.
pkg/hub/server.go:314
↓ 195 callers
Function
ValidationError
ValidationError writes a 400 Bad Request response for validation failures.
pkg/hub/errors.go:179
↓ 194 callers
Method
Do
(req *http.Request)
pkg/hub/imagecheck/remote.go:18
↓ 190 callers
Function
parseUUID
parseUUID parses a string UUID, returning store.ErrInvalidInput on failure.
pkg/store/entadapter/group_store.go:43
↓ 183 callers
Function
mapError
mapError converts Ent errors to store errors.
pkg/store/entadapter/group_store.go:65
↓ 180 callers
Method
Stop
Stop terminates an agent
pkg/agent/manager.go:41
↓ 179 callers
Method
Done
Done returns a channel that is closed when the child process exits.
pkg/sciontool/supervisor/supervisor.go:281
↓ 177 callers
Method
Dir
Dir returns the directory path of the store.
pkg/brokercredentials/multistore.go:77
↓ 172 callers
Method
Scan
Scan applies the selector query and scans the result into the given value.
pkg/ent/user_query.go:774
↓ 169 callers
Function
isJSONOutput
isJSONOutput returns true if the output format is set to JSON.
cmd/output.go:24
↓ 164 callers
Method
Handler
Handler returns the HTTP handler for the server. This is useful for testing without starting a listener.
pkg/hub/server.go:2606
↓ 161 callers
Method
Create
Create creates a new skill.
pkg/hubclient/skills.go:38
↓ 159 callers
Function
extractApiError
(res: Response, fallback: string)
web/src/client/api.ts:96
↓ 158 callers
Method
GetAgent
GetAgent returns an agent by ID or slug within a project.
pkg/hubclient/projects.go:60
↓ 156 callers
Function
withHooks
withHooks invokes the builder operation with the given hooks, if any.
pkg/ent/ent.go:568
↓ 155 callers
Function
BadRequest
BadRequest writes a 400 Bad Request response.
pkg/hub/errors.go:174
↓ 149 callers
Method
Start
Start launches a new agent with the given configuration
pkg/agent/manager.go:38
↓ 146 callers
Method
Created
Created returns the value of the "created" field in the mutation.
pkg/ent/mutation.go:39069
↓ 139 callers
Function
NewAuthenticatedUser
NewAuthenticatedUser creates a new AuthenticatedUser.
pkg/hub/identity.go:58
↓ 138 callers
Method
Write
Write sends data to the stream.
pkg/hub/controlchannel.go:146
↓ 137 callers
Function
NotFound
NotFound writes a 404 Not Found response.
pkg/hub/errors.go:168
↓ 136 callers
Method
Close
Close releases any resources held by the storage client.
pkg/storage/storage.go:176
↓ 136 callers
Function
NewUUID
NewUUID generates a new UUID string.
pkg/api/slug.go:126
↓ 132 callers
Method
Handler
Handler returns the HTTP handler for the server. This is useful for testing without starting a listener.
pkg/runtimebroker/server.go:936
↓ 126 callers
Function
IsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
pkg/ent/ent.go:283
↓ 125 callers
Function
GetUserIdentityFromContext
GetUserIdentityFromContext returns the user identity if present.
pkg/hub/identity.go:167
↓ 124 callers
Function
DefaultServerConfig
DefaultServerConfig returns the default server configuration.
pkg/runtimebroker/server.go:162
↓ 120 callers
Method
Clone
Clone creates a copy of a template.
pkg/hubclient/templates.go:46
↓ 120 callers
Method
CreateUser
CreateUser creates a new user record.
pkg/store/store.go:502
↓ 119 callers
Method
Close
Close shuts down the event bus and releases resources.
pkg/eventbus/eventbus.go:50
↓ 119 callers
Method
RemoveAll
(ctx context.Context, name string)
pkg/hub/project_webdav.go:264
↓ 119 callers
Function
readJSON
readJSON reads JSON from request body.
pkg/hub/server.go:3004
↓ 116 callers
Function
contextWithIdentity
contextWithIdentity returns a new context with the identity set.
pkg/hub/identity.go:191
↓ 115 callers
Method
Parse
Parse parses raw input data into a normalized Event.
pkg/sciontool/hooks/types.go:113
↓ 114 callers
Method
CheckAccess
CheckAccess evaluates whether the given identity is allowed to perform the specified action on the resource.
pkg/hub/authz.go:94
↓ 114 callers
Method
Load
Load reads the integration configuration and returns its contents as a flat key-value map suitable for merging into a plugin's Config map.
pkg/config/integration_config.go:52
↓ 113 callers
Function
New
New creates a new Hub API client.
pkg/hubclient/client.go:132
↓ 110 callers
Function
New
New creates a new Runtime Broker API server.
pkg/runtimebroker/server.go:286
↓ 109 callers
Method
Query
Query returns log entries matching the given options.
pkg/hub/logquery.go:122
↓ 109 callers
Method
Status
Status returns the value of the "status" field in the mutation.
pkg/ent/mutation.go:38984
↓ 108 callers
Function
doRequestAsUser
doRequestAsUser creates a user token and performs an HTTP request as that user.
pkg/hub/demo_policy_test.go:35
↓ 104 callers
Method
GetProject
GetProject retrieves a project by ID. Returns ErrNotFound if the project doesn't exist.
pkg/store/store.go:236
↓ 102 callers
Function
NewInstruction
NewInstruction creates a new instruction message with standard defaults.
pkg/messages/types.go:177
↓ 101 callers
Function
outputJSON
outputJSON pretty-prints a value as JSON to stdout.
cmd/output.go:49
↓ 100 callers
Method
CreateGroup
CreateGroup creates a new group record. Returns ErrAlreadyExists if a group with the same slug exists.
pkg/store/store.go:677
↓ 99 callers
Method
List
List returns active agents
pkg/agent/manager.go:47
↓ 99 callers
Method
Updated
Updated returns the value of the "updated" field in the mutation.
pkg/ent/mutation.go:3049
↓ 98 callers
Method
AddProjectProvider
AddProjectProvider adds a broker as a provider to a project.
pkg/store/store.go:562
↓ 96 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the AgentCreate.OnConflict documentation for more info.
pkg/ent/agent_create.go:1572
↓ 96 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the AgentCreateBulk.OnConflict documentation for more info.
pkg/ent/agent_create.go:2462
↓ 95 callers
Function
LoadSettings
LoadSettings loads and merges settings from the hierarchy using Koanf. Priority: Env vars > Project > Global > Defaults Supports both YAML (.yaml/.yml
pkg/config/settings.go:265
↓ 94 callers
Method
String
()
cmd/sciontool/commands/harness.go:383
↓ 92 callers
Function
InternalError
InternalError writes a 500 Internal Server Error response.
pkg/hub/errors.go:201
↓ 92 callers
Function
RuntimeError
RuntimeError writes a 502 Bad Gateway response for runtime broker errors.
pkg/hub/errors.go:213
↓ 91 callers
Method
Result
Result returns the value of the "result" field in the mutation.
pkg/ent/mutation.go:6373
next →
1–100 of 37,088, ranked by callers