MCPcopy Create free account

hub / github.com/hashicorp/boundary / functions

Functions19,156 in github.com/hashicorp/boundary

↓ 6,326 callersMethodEqual
Equal checks if a set of Configs is equal to another set of Configs.
internal/ratelimit/config.go:115
↓ 4,674 callersMethodNew
(ctx context.Context, name string)
internal/storage/storage.go:69
↓ 4,642 callersMethodGetPublicId
()
internal/db/read_writer.go:179
↓ 4,579 callersMethodString
()
internal/bsr/internal/checksum/checksum_test.go:21
↓ 4,560 callersMethodErrorf
Errorf will use the sys eventer to emit an error event
internal/cmd/base/dev.go:685
↓ 3,696 callersMethodGetPublicId
()
internal/pagination/item.go:15
↓ 3,422 callersMethodRun
Run starts the specified job and waits for it to complete. The context parameter is used to notify the job that it should exit. The statusThreshold
internal/scheduler/job.go:40
↓ 3,335 callersFunctionNew
New creates a new Err with provided code, op and msg It supports the options of: * WithWrap() - allows you to specify an error to wrap
internal/errors/error.go:124
↓ 3,077 callersFunctionWrap
Wrap creates a new Err from the provided err and op, preserving the code from the originating error. It supports the options of: * WithMsg() - allows
internal/errors/error.go:143
↓ 1,968 callersMethodAdd
Add adds the provided Types t to a, any duplicates are ignored.
internal/types/action/action.go:253
↓ 1,506 callersFunctionWithMsg
WithMsg provides an option to provide a message when creating a new error. If args are provided, the the msg string is used as a fmt specifier for th
internal/errors/option.go:43
↓ 1,170 callersMethodNow
Now returns the current transaction timestamp. Now will return the same timestamp whenever it is called within a transaction. In other words, calling
internal/db/read_writer.go:77
↓ 1,139 callersFunctionNew
(underlying *DB)
internal/db/read_writer.go:220
↓ 1,096 callersFunctionTestScopes
TestScopes creates an org and project suitable for testing.
internal/iam/testing.go:67
↓ 1,077 callersFunctionTestRepo
TestRepo creates a repo that can be used for various purposes. Crucially, it ensures that the global scope contains a valid root key.
internal/iam/testing.go:28
↓ 1,072 callersFunctionTestSetup
setup the tests (initialize the database one-time and initialized testDatabaseURL). Do not close the returned db. Supported options: WithTestLogLevel,
internal/db/testing.go:36
↓ 1,062 callersMethodLen
()
internal/auth/ldap/auth_method_test.go:619
↓ 1,046 callersFunctionTestWrapper
TestWrapper initializes an AEAD wrapping.Wrapper for testing
internal/db/testing.go:117
↓ 917 callersMethodError
Error satisfies the error interface and returns a string representation of the Err
internal/errors/error.go:220
↓ 871 callersFunctionTestKms
NOTE: This is a sequential test that relies on the actions that have come before. Please see the comments for details.
internal/kms/kms_ext_test.go:28
↓ 789 callersMethodGetItem
()
internal/daemon/controller/handlers/groups/grants_test.go:863
↓ 777 callersMethodError
(args ...any)
internal/cmd/base/logging.go:171
↓ 763 callersMethodRun
Run will apply a migrations statements. The io.Reader should provide the SQL statements to execute, and the int is the version for that set of stateme
internal/db/schema/manager.go:47
↓ 718 callersFunctionApiErrorWithCode
ApiErrorWithCode returns an api error with the provided code.
internal/daemon/controller/handlers/errors.go:69
↓ 668 callersMethodContext
()
internal/daemon/controller/testing.go:104
↓ 657 callersFunctionT
T creates a new Template for matching Errs. Invalid parameters are ignored. If more than is one parameter for a given type, only the last one is used
internal/errors/match.go:16
↓ 620 callersFunctionForbiddenError
()
internal/daemon/controller/handlers/errors.go:122
↓ 549 callersFunctionWithArgs
WithArgs is an option to RunCommand that allows the user to specify arguments for the provided command. This option can be used multiple times in one
testing/internal/e2e/helpers.go:191
↓ 546 callersMethodGetWrapper
GetWrapper returns a wrapper for the given scope and purpose.
internal/kms/rewrapping.go:19
↓ 545 callersMethodPrintCliError
PrintCliError prints the given CLI error to the UI in the appropriate format
internal/cmd/base/format.go:284
↓ 540 callersMethodGetTimestamp
GetTimestamp returns the timestamp of a Chunk.
internal/bsr/chunk.go:53
↓ 523 callersMethodHas
Has returns true if the field should be allowed; that is, it is explicitly allowed, or the fields contains *. It is safe to call this on a nil object
internal/perms/output_fields.go:140
↓ 523 callersFunctionRunCommand
RunCommand executes external commands on the system. Returns the results of running the provided command. RunCommand(context.Background(), "ls") Ru
testing/internal/e2e/helpers.go:65
↓ 517 callersMethodClose
()
internal/db/schema/manager.go:31
↓ 515 callersMethodError
()
internal/daemon/controller/handlers/errors.go:47
↓ 499 callersMethodGetId
()
internal/daemon/controller/handlers/roles/role_service.go:1413
↓ 465 callersMethodCreate
Create an object in the db with options: WithDebug, WithOplog, NewOplogMsg, WithLookup, WithReturnRowsAffected, OnConflict, WithVersion, and WithWhere
internal/db/read_writer.go:105
↓ 448 callersMethodGetValue
()
internal/oplog/store/oplog.pb.go:247
↓ 444 callersMethodGetPublicId
GetPublicId is the resource ID used to access the resource via an API
internal/iam/resource.go:23
↓ 418 callersFunctionTestConvertToUrls
TestConvertToUrls will convert URL string representations to a slice of *url.URL
internal/auth/oidc/testing.go:250
↓ 416 callersMethodContext
()
internal/daemon/worker/testing.go:61
↓ 413 callersMethodGetScopeId
()
internal/policy/policy.go:14
↓ 413 callersFunctionMatch
Match the template against the error. The error must be of type *Err, or wrap an error of type *Err, otherwise match will return false. Matches all
internal/errors/match.go:69
↓ 409 callersFunctionTestRole
TestRole creates a role suitable for testing. It will use a default grant scope ID unless WithGrantScopeId is used. To prevent a grant scope from bein
internal/iam/testing.go:196
↓ 380 callersMethodDo
(req *http.Request)
internal/auth/oidc/repository_auth_method_update.go:839
↓ 371 callersMethodGetVersion
()
internal/daemon/controller/handlers/roles/role_service.go:1414
↓ 364 callersMethodNamed
Create a logger that will prepend the name string on the front of all messages. If the logger already has a name, the new value will be appended to th
internal/event/hclog_event_adapter.go:178
↓ 358 callersMethodClone
()
internal/db/db_test/db.go:229
↓ 350 callersFunctioncancel
cancel is a helper worker function that sends session cancellation request to the controller.
internal/daemon/worker/session/session.go:440
↓ 330 callersMethodIs
(target error)
internal/daemon/controller/handlers/errors.go:60
↓ 328 callersMethodHeader
Header should not be used. Header is implemeted to satisfy the grpc.ClientStream interface. Header will always return an empty metadata and an nil err
internal/plugin/loopback/testing_grpc_stream.go:89
↓ 316 callersFunctionNewCommand
New returns a new instance of a base.Command type
internal/cmd/base/base.go:164
↓ 303 callersMethodTrailer
Trailer should not be used. Trailer is implemeted to satisfy the grpc.ClientStream interface. Trailer will always return an empty metadata.
internal/plugin/loopback/testing_grpc_stream.go:96
↓ 300 callersMethodLoad
Load implements the Storage interface. Load loads values into the given message. The message must be populated with the ID value. If not found, the re
internal/server/repository_workerauth.go:464
↓ 295 callersFunctionWithCode
WithCode provides an option to provide a code when creating a new error.
internal/errors/option.go:60
↓ 289 callersMethodExec
Exec will execute the sql with the values as parameters. The int returned is the number of rows affected by the sql. No options are currently supporte
internal/db/read_writer.go:135
↓ 283 callersMethodLog
(args ...interface{})
internal/cmd/base/dev.go:711
↓ 279 callersMethodGetCreateTime
()
internal/pagination/item.go:16
↓ 275 callersFunctionWriteError
WriteError will write an error event. It will first check the ctx for an eventer, then try event.SysEventer() and if no eventer can be found an hclog
internal/event/context.go:173
↓ 274 callersFunctionTestUserManagedGroupGrantsFunc
TestUserManagedGroupGrantsFunc returns a function that creates a user which has been given the request grants through managed group. Note: This method
internal/iam/testing.go:654
↓ 273 callersMethodMarshal
()
internal/website/permstable/permstable.go:246
↓ 268 callersFunctionTestUser
TestUser creates a user suitable for testing. Supports the options: WithName, WithDescription and WithAccountIds.
internal/iam/testing.go:171
↓ 261 callersMethodStringVar
(i *StringVar)
internal/cmd/base/flags.go:305
↓ 255 callersFunctionTestUserGroupGrantsFunc
TestUserGroupGrantsFunc returns a function that creates a user which has been given the request grants by being a part of a group. Group is created as
internal/iam/testing.go:716
↓ 253 callersMethodGetName
()
internal/daemon/controller/handlers/verifiers.go:27
↓ 247 callersMethodDoTx
DoTx will wrap the TxHandler in a retryable transaction
internal/db/read_writer.go:83
↓ 242 callersFunctionNewPagination
NewPagination creates a new token with the pagination subtype.
internal/listtoken/list_token.go:127
↓ 237 callersMethodCreate
(ctx context.Context, scopeId string, opt ...Option)
api/users/user.gen.go:126
↓ 237 callersMethodNewRequest
NewRequest creates a new raw request object to query the Boundary controller configured for this client. This is an advanced method and generally does
api/client.go:629
↓ 236 callersFunctionNewStartRefresh
NewStartRefresh creates a new token with a start-refresh subtype.
internal/listtoken/list_token.go:162
↓ 233 callersFunctionWrapForHelpText
(lines []string)
internal/cmd/base/format.go:94
↓ 227 callersFunctionWithApiUrl
WithApiUrl provides optional api URL to use in the various
internal/auth/oidc/options.go:99
↓ 226 callersFunctionAsServerError
AsServerError returns an api *Error from the provided error. If the provided error is not an api Error nil is returned instead.
api/apierror.go:26
↓ 226 callersMethodEncode
Encode serializes a Chunk and writes it with the encoder's writer.
internal/bsr/encode.go:77
↓ 225 callersMethodGetItems
()
internal/gen/testing/attribute/attribute.pb.go:465
↓ 220 callersMethodGetUpdateTime
()
internal/pagination/item.go:17
↓ 219 callersFunctionTestAuthMethod
TestAuthMethod creates a test oidc auth method. WithName, WithDescription, WithMaxAge, WithApiUrl, WithIssuer, WithCertificates, WithAudClaims, WithS
internal/auth/oidc/testing.go:46
↓ 217 callersMethodAsTime
AsTime returns a time.Time for a Timestamp.
internal/bsr/timestamp.go:71
↓ 216 callersFunctionTestUserDirectGrantsFunc
TestUserDirectGrantsFunc returns a function that creates and returns user which has been given the request grants via direct association. This functio
internal/iam/testing.go:684
↓ 212 callersFunctionApiErrorWithCodeAndMessage
ApiErrorWithCodeAndMessage returns an api error with the provided code and message.
internal/daemon/controller/handlers/errors.go:79
↓ 212 callersFunctionNewRefresh
NewRefresh creates a new token with a refresh subtype.
internal/listtoken/list_token.go:197
↓ 212 callersMethodclone
()
internal/credential/vault/mapping_overriders.go:36
↓ 210 callersMethodDecode
(inStruct any)
api/response.go:40
↓ 209 callersFunctionTestUserRole
(t testing.TB, conn *db.DB, roleId, userId string, opt ...Option)
internal/iam/testing.go:606
↓ 209 callersFunctionWrap
Wrap returns a cli.CommandFactory that returns a command wrapped in the CommandWrapper.
internal/cmd/wrapper/command_wrapper.go:45
↓ 207 callersMethodQuery
Query will run the raw query and return the *sql.Rows results. Query will operate within the context of any ongoing transaction for the db.Reader. Th
internal/db/read_writer.go:69
↓ 204 callersMethodDecode
Decode will read from the io.Reader and return the next Chunk that it decodes. If the io.Reader reaches EOF, Decode will return an error of io.EOF. N
internal/bsr/decode.go:105
↓ 203 callersFunctionWithIssuer
WithIssuer provides an option for specifying an issuer.
internal/auth/oidc/options.go:211
↓ 201 callersFunctionTestRoleGrant
(t testing.TB, conn *db.DB, roleId, grant string, opt ...Option)
internal/iam/testing.go:389
↓ 197 callersMethodGetDescription
()
internal/daemon/controller/handlers/verifiers.go:28
↓ 196 callersFunctionTestScheduler
TestScheduler creates a mock controller and a new Scheduler attached to that controller id. The Scheduler returned should only be used for tests. The
internal/scheduler/testing.go:28
↓ 195 callersMethodNext
Next proceeds to the next migration. It returns true on success or false if there are no more migrations.
internal/db/schema/internal/provider/provider.go:67
↓ 194 callersMethodName
Name is the unique name of the job.
internal/scheduler/job.go:52
↓ 194 callersMethodStore
(ctx context.Context, batchSize int)
internal/scheduler/batch/batch_test.go:313
↓ 194 callersMethodUpdate
Update an object in the db, fieldMask is required and provides field_mask.proto paths for fields that should be updated. The i interface parameter is
internal/db/read_writer.go:98
↓ 193 callersMethodGetType
GetType returns the chunk type.
internal/bsr/chunk.go:49
↓ 191 callersFunctionNewRepository
NewRepository creates a new Repository. The returned repository is not safe for concurrent go routines to access it.
internal/authtoken/repository.go:39
↓ 189 callersFunctionAuthenticateAdminCli
AuthenticateAdminCli uses the cli to authenticate the specified Boundary instance as an admin
testing/internal/e2e/boundary/authenticate.go:48
↓ 189 callersMethodInvoke
(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, opts ...grpc.CallOption)
internal/daemon/metric/testing.go:43
↓ 181 callersMethodParse
Parse parses the given flags, returning any errors.
internal/cmd/base/base.go:600
next →1–100 of 19,156, ranked by callers