MCPcopy Create free account

hub / github.com/hashicorp/boundary / functions

Functions19,156 in github.com/hashicorp/boundary

↓ 179 callersFunctionTestVerifyOplog
TestVerifyOplog will verify that there is an oplog entry that matches the provided resourceId. By default it matches the provided resourceId against t
internal/db/testing.go:181
↓ 179 callersFunctionWithOperation
WithOperation provides an option to specify the operation type
internal/db/testing.go:280
↓ 177 callersFunctionTestCatalogs
TestCatalogs creates count number of static host catalogs to the provided DB with the provided project id. If any errors are encountered during the c
internal/host/static/testing.go:43
↓ 176 callersFunctionWithCreateNotBefore
WithCreateNotBefore provides an option to specify that the create time is not before (nbf) N seconds
internal/db/testing.go:272
↓ 174 callersFunctionIsNil
IsNil checks if the interface is nil
internal/util/is_nil.go:9
↓ 174 callersFunctionNewPlugin
NewPlugin creates a new in memory Plugin assigned to the global scope. Name, Description are the only allowed option. All other options are ignored.
internal/plugin/plugin.go:55
↓ 173 callersMethodGet
(string)
internal/daemon/worker/session/manager.go:30
↓ 172 callersMethodAsTime
AsTime converts x to a time.Time.
internal/db/timestamp/timestamp.go:27
↓ 171 callersMethodStrings
Strings converts Actions into a slice of the actions' string equivalents
internal/types/action/action.go:282
↓ 169 callersFunctionTestAuthMethod
TestAuthMethod creates a new auth method and it's persisted in the database. See NewAuthMethod for list of supported options.
internal/auth/ldap/testing.go:47
↓ 165 callersFunctionIsNotFoundError
IsNotFoundError returns a boolean indicating whether the error is known to report a not found violation.
internal/errors/is.go:89
↓ 165 callersMethodList
(ctx context.Context, scopeId string, opt ...Option)
api/users/user.gen.go:316
↓ 163 callersMethodAdd
Add builds the UpsertTokenRequest using the client's address and token, and trying to leverage the keyring. It then sends the request to the cache. Th
internal/clientcache/cmd/cache/addtoken.go:143
↓ 163 callersMethodLookupById
LookupById will lookup a resource by its primary key id, which must be unique. If the resource implements either ResourcePublicIder or ResourcePrivate
internal/db/read_writer.go:51
↓ 161 callersFunctionWithoutEvent
WithoutEvent provides an option to suppress the event when wrapping or creating a new error.
internal/errors/option.go:68
↓ 159 callersFunctionWithInfoMsg
WithInfoMsg allows an optional msg and optional info key/value pairs about an error event. If used in conjunction with the WithInfo(...) option, and W
internal/event/options.go:116
↓ 156 callersFunctionWithSigningAlgs
WithSigningAlgs provides optional signing algorithms
internal/auth/oidc/options.go:120
↓ 155 callersFunctionInvalidArgumentErrorf
(msg string, fields map[string]string)
internal/daemon/controller/handlers/errors.go:138
↓ 153 callersMethodLookupWhere
LookupWhere will lookup and return the first resource using a where clause with parameters
internal/db/read_writer.go:57
↓ 152 callersFunctionTestGroup
TestGroup creates a group suitable for testing.
internal/iam/testing.go:575
↓ 149 callersMethodGetResponse
()
api/scopes/custom.go:24
↓ 148 callersMethodError
Error returns a string describing an unknown subtype based on a given resource ID Example: "unknown subtype in ID: ampwd_1234567890"
internal/types/subtypes/error.go:16
↓ 148 callersFunctionTestAuthToken
TestAuthToken, despite its name, does more than just return an auth token; it also creates an auth method, an account, and a user and binds them toget
internal/authtoken/testing.go:20
↓ 147 callersFunctionNewTimestamp
NewTimestamp creates a Timestamp.
internal/bsr/timestamp.go:33
↓ 144 callersMethodSqlDB
SqlDB returns the underlying sql.DB Note: This func is not named DB(), because our choice of ORM (gorm) which is embedded for various reasons, alread
internal/db/db.go:130
↓ 141 callersMethodSetToken
SetToken sets the token directly. This won't perform any auth verification, it simply sets the token properly for future requests.
api/client.go:541
↓ 139 callersMethodFlagSet
FlagSet creates the flags for this command. The result is cached on the command to save performance on future calls.
internal/cmd/base/base.go:384
↓ 139 callersFunctionNewActionSet
NewActionSet creates an ActionSet.
internal/types/action/action.go:246
↓ 136 callersMethodFatal
(args ...any)
internal/cmd/base/logging.go:90
↓ 136 callersMethodGetIamUserId
()
internal/auth/store/account.pb.go:100
↓ 136 callersFunctionIs
Is the equivalent of the std errors.Is, but allows Devs to only import this package for the capability.
internal/errors/error.go:317
↓ 136 callersFunctionNewRepository
NewRepository creates a new server Repository. Supports the options: WithLimit which sets a default limit on results returned by repo operations.
internal/server/repository.go:33
↓ 136 callersFunctionNewTestController
(t testing.TB, opts *TestControllerOpts)
internal/daemon/controller/testing.go:511
↓ 135 callersFunctionE
E creates a new Err with provided code and supports the options of: * WithoutEvent - allows you to specify that an error event should not be emitted.
internal/errors/error.go:59
↓ 135 callersMethodSearchWhere
SearchWhere will search for all the resources it can find using a where clause with parameters. Supports the WithLimit option. If WithLimit < 0, then
internal/db/read_writer.go:63
↓ 135 callersFunctionWithName
WithName provides an option to search by a friendly name
internal/iam/options.go:81
↓ 134 callersMethodUpdate
(ctx context.Context, id string, version uint32, opt ...Option)
api/users/user.gen.go:211
↓ 133 callersMethodNewFlagSet
NewFlagSet creates a new flag set from the given flag sets.
internal/cmd/base/base.go:583
↓ 133 callersFunctionTestRoleWithGrants
TestRoleWithGrants creates a role suitable for testing along with grants Functional options for GrantScopeIDs aren't used to express that this functio
internal/iam/testing.go:325
↓ 131 callersMethodCreateAuthToken
CreateAuthToken inserts an Auth Token into the repository and returns a new Auth Token. The returned auth token contains the auth token value. The pr
internal/authtoken/repository.go:68
↓ 131 callersFunctionValidId
(i Id, prefixes ...string)
internal/daemon/controller/handlers/verifiers.go:181
↓ 129 callersFunctionFormat
(ui cli.Ui)
internal/cmd/base/format.go:373
↓ 127 callersMethodRead
(ctx context.Context, id string, opt ...Option)
api/users/user.gen.go:170
↓ 126 callersMethodLock
(context.Context)
internal/db/schema/manager.go:28
↓ 125 callersMethodLookupByPublicId
LookupByPublicId will lookup resource by its public_id which must be unique.
internal/db/read_writer.go:54
↓ 124 callersMethodUnlock
(context.Context)
internal/db/schema/manager.go:29
↓ 123 callersFunctionResourceInfoFromPrefix
ResourceInfoFromPrefix takes in a resource ID (or a prefix) and returns the corresponding resource info
globals/prefixes.go:397
↓ 123 callersFunctionTestSets
TestSets creates count number of static host sets in the provided DB with the provided catalog id. The catalog must have been created previously. The
internal/host/static/testing.go:144
↓ 122 callersMethodError
()
internal/db/schema/errors.go:21
↓ 121 callersMethodToken
()
internal/daemon/controller/testing.go:188
↓ 121 callersFunctionWithDescription
WithDescription provides an optional description
internal/iam/options.go:67
↓ 120 callersMethodClient
()
internal/daemon/controller/testing.go:100
↓ 120 callersMethodDelete
(ctx context.Context, id string, opt ...Option)
api/users/user.gen.go:274
↓ 119 callersFunctionNewRepository
NewRepository creates a new ldap Repository. Supports the options: WithLimit which sets a default limit on results returned by repo operations.
internal/auth/ldap/repository.go:30
↓ 116 callersMethodFormat
(data any)
internal/cmd/base/format.go:369
↓ 116 callersMethodScan
Scan implements sql.Scanner for protobuf Timestamp.
internal/db/timestamp/scanners.go:21
↓ 115 callersMethodDialect
()
internal/db/changesafe_reader_writer.go:52
↓ 115 callersFunctionNew
New constructs a new Timestamp from the provided time.Time.
internal/db/timestamp/timestamp.go:13
↓ 114 callersFunctiontestDeref
testDeref is a generic function that dereferences a pointer type, safeguarding against a nil pointer dereference. If the input pointer is nil, it retu
internal/db/schema/migrations/oss/postgres_99_01_test.go:891
↓ 113 callersMethodGetToken
()
internal/credential/vault/store/vault.pb.go:307
↓ 113 callersFunctionWithGrantScopeIds
WithGrantScopeIds provides an option to specify the scope ID for grants in roles. In most tests this is likely the option to use, however, for tests t
internal/iam/options.go:100
↓ 111 callersMethodGetKeyId
()
internal/storage/storagebucketcredential/storage_bucket_credential.go:31
↓ 111 callersFunctionTestHosts
TestHosts creates count number of static hosts to the provided DB with the provided catalog id. The catalog must have been created previously. If any
internal/host/static/testing.go:92
↓ 111 callersFunctionTestKmsWorker
TestKmsWorker inserts a worker into the db to satisfy foreign key constraints. The worker provided fields are auto generated. if WithName is not prese
internal/server/testing.go:101
↓ 110 callersMethodGetAddress
()
internal/host/host.go:28
↓ 110 callersMethodSetReadDeadline
Unused
internal/daemon/worker/internal/metric/proxy_ws_test.go:436
↓ 108 callersMethodResponse
Response returns the API response associated with the error
api/apierror.go:46
↓ 107 callersMethodDelete
Delete an object in the db with options: WithOplog, WithDebug. The caller is responsible for the transaction life cycle of the writer and if an error
internal/db/read_writer.go:122
↓ 107 callersFunctionNewRepository
NewRepository creates a new Repository. The returned repository should only be used for one transaction and it is not safe for concurrent go routines
internal/credential/vault/repository.go:31
↓ 106 callersMethodStatusCode
()
internal/daemon/common/handler.go:40
↓ 105 callersFunctionWithOutputFields
WithOutputFields provides an option when creating responses to only include specific fields
internal/daemon/controller/handlers/options.go:64
↓ 104 callersMethodFetchActionSetForId
FetchActionSetForId returns the allowed actions for a given ID using the current set of ACLs and all other parameters the same (user, etc.)
internal/daemon/controller/auth/auth.go:698
↓ 104 callersFunctionMaybeSkipTest
MaybeSkipTest is a check used at the start of the test to determine if the test should run
testing/internal/e2e/helpers.go:216
↓ 104 callersFunctionNewRepository
NewRepository creates a new Repository. The returned repository should only be used for one transaction and it is not safe for concurrent go routines
internal/host/static/repository.go:29
↓ 104 callersFunctionWithName
WithName provides an optional name.
internal/plugin/options.go:41
↓ 104 callersFunctiontestId
(t testing.TB)
internal/iam/testing.go:155
↓ 101 callersMethodShutdown
Shutdown runs any cleanup functions; be sure to run this after your test is done
internal/daemon/controller/testing.go:317
↓ 101 callersFunctionWithScope
WithScope provides an option when creating responses to include the given scope if allowed
internal/daemon/controller/handlers/options.go:72
↓ 99 callersMethodGetParentId
()
internal/iam/store/scope.pb.go:130
↓ 99 callersFunctionWithAuthorizedActions
WithAuthorizedActions provides an option when creating responses to include the given authorized actions if allowed
internal/daemon/controller/handlers/options.go:88
↓ 98 callersFunctionTestSession
TestSession creates a test session composed of c in the repository. Options are passed into New, and withServerId is handled locally.
internal/session/testing.go:93
↓ 98 callersFunctionWithOplog
WithOplog provides an option to write an oplog entry. WithOplog and NewOplogMsg cannot be used together.
internal/db/option.go:229
↓ 98 callersFunctionWithSkipDefaultRoleCreation
WithSkipDefaultRoleCreation provides an option to disable the automatic creation of a default role when a new scope is created.
internal/iam/options.go:132
↓ 97 callersMethodError
()
internal/event/context_test.go:1165
↓ 97 callersMethodScanRows
ScanRows will scan sql rows into the interface provided
internal/db/read_writer.go:72
↓ 97 callersFunctionWriteSysEvent
WriteSysEvent will write a sysevent using the eventer from event.SysEventer() if no eventer can be found an hclog.Logger will be created and used. The
internal/event/context.go:311
↓ 96 callersMethodGetAuthMethodId
()
internal/auth/subtype.go:22
↓ 96 callersFunctionNewRepository
NewRepository creates a new oidc Repository. Supports the options: WithLimit which sets a default limit on results returned by repo operations.
internal/auth/oidc/repository.go:26
↓ 92 callersFunctionWithWrap
WithErrCode provides an option to provide an error to wrap when creating a new error.
internal/errors/option.go:34
↓ 90 callersFunctionWithAddress
WithAddress provides an optional address.
internal/server/options.go:101
↓ 87 callersMethodAddKeyringToken
AddKeyringToken adds a token to the repository. If the token's id in the keyring doesn't match the id provided an error is returned. The token must b
internal/clientcache/internal/cache/repository_token.go:187
↓ 87 callersMethodError
()
internal/bsr/types.go:17
↓ 87 callersMethodIamRepo
()
internal/daemon/controller/testing.go:112
↓ 87 callersFunctionTestCredentialStore
TestCredentialStore creates a static credential store in the provided DB with the provided project id and any values passed in through the Options var
internal/credential/static/testing.go:91
↓ 87 callersFunctionTestSetMembers
TestSetMembers adds hosts to the specified setId in the provided DB. The set and hosts must have been created previously and belong to the same catalo
internal/host/static/testing.go:170
↓ 86 callersFunctionNewRepository
NewRepository returns a cache repository. The provided context is stored as the server context for purposes like storing boundary request errors.
internal/clientcache/internal/cache/repository.go:39
↓ 86 callersFunctionNewWorker
NewWorker returns a new Worker. Valid options are WithName, WithDescription WithAddress, and WithWorkerTags. All other options are ignored. This does
internal/server/worker.go:136
↓ 85 callersMethodCompletions
Completions returns the completions for this flag set.
internal/cmd/base/base.go:592
↓ 85 callersFunctionNil
Nil checks if the interface is nil
internal/bsr/internal/is/nil.go:9
↓ 85 callersMethodPrintJsonItem
PrintJsonItem prints the given item to the UI in JSON format
internal/cmd/base/format.go:300
← previousnext →101–200 of 19,156, ranked by callers