MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 3,375 callersMethodJoin
Join completes broker registration using a join token. Returns the HMAC secret key for future authentication.
pkg/hubclient/runtime_brokers.go:33
↓ 3,235 callersMethodError
(...any)
pkg/ent/enttest/enttest.go:21
↓ 1,777 callersFunctiontid
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 callersMethodSet
Set creates or updates an environment variable.
pkg/hubclient/env.go:33
↓ 1,233 callersMethodSetField
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 callersMethodRun
(ctx context.Context, config RunConfig)
pkg/runtime/interface.go:108
↓ 905 callersMethodMkdirAll
MkdirAll creates the directory tree for the mountpoint.
pkg/runtimebroker/nfs_mount.go:47
↓ 769 callersMethodString
()
pkg/hub/broker_routing.go:60
↓ 666 callersMethodGet
Get returns a specific environment variable by key.
pkg/hubclient/env.go:30
↓ 591 callersMethodAdd
(ctx context.Context, email, note string)
pkg/hubclient/allow_list.go:28
↓ 580 callersFunctiondoRequest
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 callersFunctionwriteError
writeError writes a JSON error response. For 5xx errors, it logs the error details for debugging.
pkg/hub/errors.go:81
↓ 566 callersMethodWarn
(msg string, args ...interface{})
pkg/plugin/logger.go:63
↓ 546 callersMethodInfo
Info returns broker information.
pkg/brokerclient/client.go:33
↓ 536 callersMethodStat
(ctx context.Context, name string)
pkg/hub/project_webdav.go:278
↓ 534 callersMethodLen
Len returns the number of registered channels.
pkg/hub/channels.go:103
↓ 489 callersFunctiontestServer
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 callersMethodString
String returns a human-readable label for the mode.
pkg/sciontool/hub/client.go:85
↓ 413 callersMethodget
get performs an HTTP GET request with fallback.
pkg/hubclient/client.go:281
↓ 407 callersMethodDebug
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 callersMethodQuery
Query calls tx.Query.
pkg/ent/tx.go:320
↓ 390 callersMethodExec
(ctx context.Context, id string, cmd []string)
pkg/runtime/interface.go:117
↓ 390 callersFunctionsetContextOp
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 callersMethodID
()
pkg/hub/identity.go:26
↓ 373 callersFunctionwriteErrorFromErr
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 callersMethodReadFile
ReadFile reads a harness config file through the Hub API.
pkg/hubclient/harness_configs.go:69
↓ 366 callersMethodClearField
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 callersMethodWhere
Where adds a new predicate for the UserQuery builder.
pkg/ent/user_query.go:41
↓ 349 callersFunctionwriteJSON
Helper functions writeJSON writes a JSON response.
pkg/hub/server.go:2997
↓ 333 callersMethodClose
Lifecycle
extras/scion-telegram/internal/telegram/store.go:80
↓ 314 callersMethodSave
Save writes the given key-value map to the integration configuration store.
pkg/config/integration_config.go:55
↓ 305 callersMethodWriteHeader
(code int)
pkg/hub/server.go:2955
↓ 292 callersMethodString
String implements the fmt.Stringer.
pkg/ent/user.go:226
↓ 290 callersMethodRun
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 callersMethodClose
()
pkg/hub/events.go:54
↓ 285 callersMethodCreateProject
CreateProject creates a new project record. Returns ErrAlreadyExists if a project with the same slug exists.
pkg/store/store.go:232
↓ 282 callersMethodClose
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 callersMethodString
()
pkg/ent/skill/skill.go:116
↓ 245 callersFunctionDebugf
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 callersMethodDialect
Dialect returns the dialect of the driver we started the transaction from.
pkg/ent/tx.go:301
↓ 241 callersMethodDescriptor
Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
proto/broker/v1/broker.pb.go:349
↓ 236 callersFunctionapiFetch
(path: string, options?: RequestInit)
web/src/client/api.ts:45
↓ 226 callersMethodName
()
pkg/api/harness.go:24
↓ 206 callersFunctionMethodNotAllowed
MethodNotAllowed writes a 405 Method Not Allowed response.
pkg/hub/errors.go:207
↓ 202 callersMethodCreateRuntimeBroker
CreateRuntimeBroker creates a new runtime broker record.
pkg/store/store.go:297
↓ 197 callersMethodCreateAgent
CreateAgent creates an agent on a remote runtime broker. brokerID is used for HMAC authentication lookup.
pkg/hub/server.go:314
↓ 195 callersFunctionValidationError
ValidationError writes a 400 Bad Request response for validation failures.
pkg/hub/errors.go:179
↓ 194 callersMethodDo
(req *http.Request)
pkg/hub/imagecheck/remote.go:18
↓ 190 callersFunctionparseUUID
parseUUID parses a string UUID, returning store.ErrInvalidInput on failure.
pkg/store/entadapter/group_store.go:43
↓ 183 callersFunctionmapError
mapError converts Ent errors to store errors.
pkg/store/entadapter/group_store.go:65
↓ 180 callersMethodStop
Stop terminates an agent
pkg/agent/manager.go:41
↓ 179 callersMethodDone
Done returns a channel that is closed when the child process exits.
pkg/sciontool/supervisor/supervisor.go:281
↓ 177 callersMethodDir
Dir returns the directory path of the store.
pkg/brokercredentials/multistore.go:77
↓ 172 callersMethodScan
Scan applies the selector query and scans the result into the given value.
pkg/ent/user_query.go:774
↓ 169 callersFunctionisJSONOutput
isJSONOutput returns true if the output format is set to JSON.
cmd/output.go:24
↓ 164 callersMethodHandler
Handler returns the HTTP handler for the server. This is useful for testing without starting a listener.
pkg/hub/server.go:2606
↓ 161 callersMethodCreate
Create creates a new skill.
pkg/hubclient/skills.go:38
↓ 159 callersFunctionextractApiError
(res: Response, fallback: string)
web/src/client/api.ts:96
↓ 158 callersMethodGetAgent
GetAgent returns an agent by ID or slug within a project.
pkg/hubclient/projects.go:60
↓ 156 callersFunctionwithHooks
withHooks invokes the builder operation with the given hooks, if any.
pkg/ent/ent.go:568
↓ 155 callersFunctionBadRequest
BadRequest writes a 400 Bad Request response.
pkg/hub/errors.go:174
↓ 149 callersMethodStart
Start launches a new agent with the given configuration
pkg/agent/manager.go:38
↓ 146 callersMethodCreated
Created returns the value of the "created" field in the mutation.
pkg/ent/mutation.go:39069
↓ 139 callersFunctionNewAuthenticatedUser
NewAuthenticatedUser creates a new AuthenticatedUser.
pkg/hub/identity.go:58
↓ 138 callersMethodWrite
Write sends data to the stream.
pkg/hub/controlchannel.go:146
↓ 137 callersFunctionNotFound
NotFound writes a 404 Not Found response.
pkg/hub/errors.go:168
↓ 136 callersMethodClose
Close releases any resources held by the storage client.
pkg/storage/storage.go:176
↓ 136 callersFunctionNewUUID
NewUUID generates a new UUID string.
pkg/api/slug.go:126
↓ 132 callersMethodHandler
Handler returns the HTTP handler for the server. This is useful for testing without starting a listener.
pkg/runtimebroker/server.go:936
↓ 126 callersFunctionIsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
pkg/ent/ent.go:283
↓ 125 callersFunctionGetUserIdentityFromContext
GetUserIdentityFromContext returns the user identity if present.
pkg/hub/identity.go:167
↓ 124 callersFunctionDefaultServerConfig
DefaultServerConfig returns the default server configuration.
pkg/runtimebroker/server.go:162
↓ 120 callersMethodClone
Clone creates a copy of a template.
pkg/hubclient/templates.go:46
↓ 120 callersMethodCreateUser
CreateUser creates a new user record.
pkg/store/store.go:502
↓ 119 callersMethodClose
Close shuts down the event bus and releases resources.
pkg/eventbus/eventbus.go:50
↓ 119 callersMethodRemoveAll
(ctx context.Context, name string)
pkg/hub/project_webdav.go:264
↓ 119 callersFunctionreadJSON
readJSON reads JSON from request body.
pkg/hub/server.go:3004
↓ 116 callersFunctioncontextWithIdentity
contextWithIdentity returns a new context with the identity set.
pkg/hub/identity.go:191
↓ 115 callersMethodParse
Parse parses raw input data into a normalized Event.
pkg/sciontool/hooks/types.go:113
↓ 114 callersMethodCheckAccess
CheckAccess evaluates whether the given identity is allowed to perform the specified action on the resource.
pkg/hub/authz.go:94
↓ 114 callersMethodLoad
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 callersFunctionNew
New creates a new Hub API client.
pkg/hubclient/client.go:132
↓ 110 callersFunctionNew
New creates a new Runtime Broker API server.
pkg/runtimebroker/server.go:286
↓ 109 callersMethodQuery
Query returns log entries matching the given options.
pkg/hub/logquery.go:122
↓ 109 callersMethodStatus
Status returns the value of the "status" field in the mutation.
pkg/ent/mutation.go:38984
↓ 108 callersFunctiondoRequestAsUser
doRequestAsUser creates a user token and performs an HTTP request as that user.
pkg/hub/demo_policy_test.go:35
↓ 104 callersMethodGetProject
GetProject retrieves a project by ID. Returns ErrNotFound if the project doesn't exist.
pkg/store/store.go:236
↓ 102 callersFunctionNewInstruction
NewInstruction creates a new instruction message with standard defaults.
pkg/messages/types.go:177
↓ 101 callersFunctionoutputJSON
outputJSON pretty-prints a value as JSON to stdout.
cmd/output.go:49
↓ 100 callersMethodCreateGroup
CreateGroup creates a new group record. Returns ErrAlreadyExists if a group with the same slug exists.
pkg/store/store.go:677
↓ 99 callersMethodList
List returns active agents
pkg/agent/manager.go:47
↓ 99 callersMethodUpdated
Updated returns the value of the "updated" field in the mutation.
pkg/ent/mutation.go:3049
↓ 98 callersMethodAddProjectProvider
AddProjectProvider adds a broker as a provider to a project.
pkg/store/store.go:562
↓ 96 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the AgentCreate.OnConflict documentation for more info.
pkg/ent/agent_create.go:1572
↓ 96 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the AgentCreateBulk.OnConflict documentation for more info.
pkg/ent/agent_create.go:2462
↓ 95 callersFunctionLoadSettings
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 callersMethodString
()
cmd/sciontool/commands/harness.go:383
↓ 92 callersFunctionInternalError
InternalError writes a 500 Internal Server Error response.
pkg/hub/errors.go:201
↓ 92 callersFunctionRuntimeError
RuntimeError writes a 502 Bad Gateway response for runtime broker errors.
pkg/hub/errors.go:213
↓ 91 callersMethodResult
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