Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashicorp/boundary
/ functions
Functions
19,156 in github.com/hashicorp/boundary
⨍
Functions
19,156
◇
Types & classes
3,259
↓ 179 callers
Function
TestVerifyOplog
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 callers
Function
WithOperation
WithOperation provides an option to specify the operation type
internal/db/testing.go:280
↓ 177 callers
Function
TestCatalogs
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 callers
Function
WithCreateNotBefore
WithCreateNotBefore provides an option to specify that the create time is not before (nbf) N seconds
internal/db/testing.go:272
↓ 174 callers
Function
IsNil
IsNil checks if the interface is nil
internal/util/is_nil.go:9
↓ 174 callers
Function
NewPlugin
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 callers
Method
Get
(string)
internal/daemon/worker/session/manager.go:30
↓ 172 callers
Method
AsTime
AsTime converts x to a time.Time.
internal/db/timestamp/timestamp.go:27
↓ 171 callers
Method
Strings
Strings converts Actions into a slice of the actions' string equivalents
internal/types/action/action.go:282
↓ 169 callers
Function
TestAuthMethod
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 callers
Function
IsNotFoundError
IsNotFoundError returns a boolean indicating whether the error is known to report a not found violation.
internal/errors/is.go:89
↓ 165 callers
Method
List
(ctx context.Context, scopeId string, opt ...Option)
api/users/user.gen.go:316
↓ 163 callers
Method
Add
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 callers
Method
LookupById
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 callers
Function
WithoutEvent
WithoutEvent provides an option to suppress the event when wrapping or creating a new error.
internal/errors/option.go:68
↓ 159 callers
Function
WithInfoMsg
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 callers
Function
WithSigningAlgs
WithSigningAlgs provides optional signing algorithms
internal/auth/oidc/options.go:120
↓ 155 callers
Function
InvalidArgumentErrorf
(msg string, fields map[string]string)
internal/daemon/controller/handlers/errors.go:138
↓ 153 callers
Method
LookupWhere
LookupWhere will lookup and return the first resource using a where clause with parameters
internal/db/read_writer.go:57
↓ 152 callers
Function
TestGroup
TestGroup creates a group suitable for testing.
internal/iam/testing.go:575
↓ 149 callers
Method
GetResponse
()
api/scopes/custom.go:24
↓ 148 callers
Method
Error
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 callers
Function
TestAuthToken
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 callers
Function
NewTimestamp
NewTimestamp creates a Timestamp.
internal/bsr/timestamp.go:33
↓ 144 callers
Method
SqlDB
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 callers
Method
SetToken
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 callers
Method
FlagSet
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 callers
Function
NewActionSet
NewActionSet creates an ActionSet.
internal/types/action/action.go:246
↓ 136 callers
Method
Fatal
(args ...any)
internal/cmd/base/logging.go:90
↓ 136 callers
Method
GetIamUserId
()
internal/auth/store/account.pb.go:100
↓ 136 callers
Function
Is
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 callers
Function
NewRepository
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 callers
Function
NewTestController
(t testing.TB, opts *TestControllerOpts)
internal/daemon/controller/testing.go:511
↓ 135 callers
Function
E
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 callers
Method
SearchWhere
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 callers
Function
WithName
WithName provides an option to search by a friendly name
internal/iam/options.go:81
↓ 134 callers
Method
Update
(ctx context.Context, id string, version uint32, opt ...Option)
api/users/user.gen.go:211
↓ 133 callers
Method
NewFlagSet
NewFlagSet creates a new flag set from the given flag sets.
internal/cmd/base/base.go:583
↓ 133 callers
Function
TestRoleWithGrants
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 callers
Method
CreateAuthToken
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 callers
Function
ValidId
(i Id, prefixes ...string)
internal/daemon/controller/handlers/verifiers.go:181
↓ 129 callers
Function
Format
(ui cli.Ui)
internal/cmd/base/format.go:373
↓ 127 callers
Method
Read
(ctx context.Context, id string, opt ...Option)
api/users/user.gen.go:170
↓ 126 callers
Method
Lock
(context.Context)
internal/db/schema/manager.go:28
↓ 125 callers
Method
LookupByPublicId
LookupByPublicId will lookup resource by its public_id which must be unique.
internal/db/read_writer.go:54
↓ 124 callers
Method
Unlock
(context.Context)
internal/db/schema/manager.go:29
↓ 123 callers
Function
ResourceInfoFromPrefix
ResourceInfoFromPrefix takes in a resource ID (or a prefix) and returns the corresponding resource info
globals/prefixes.go:397
↓ 123 callers
Function
TestSets
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 callers
Method
Error
()
internal/db/schema/errors.go:21
↓ 121 callers
Method
Token
()
internal/daemon/controller/testing.go:188
↓ 121 callers
Function
WithDescription
WithDescription provides an optional description
internal/iam/options.go:67
↓ 120 callers
Method
Client
()
internal/daemon/controller/testing.go:100
↓ 120 callers
Method
Delete
(ctx context.Context, id string, opt ...Option)
api/users/user.gen.go:274
↓ 119 callers
Function
NewRepository
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 callers
Method
Format
(data any)
internal/cmd/base/format.go:369
↓ 116 callers
Method
Scan
Scan implements sql.Scanner for protobuf Timestamp.
internal/db/timestamp/scanners.go:21
↓ 115 callers
Method
Dialect
()
internal/db/changesafe_reader_writer.go:52
↓ 115 callers
Function
New
New constructs a new Timestamp from the provided time.Time.
internal/db/timestamp/timestamp.go:13
↓ 114 callers
Function
testDeref
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 callers
Method
GetToken
()
internal/credential/vault/store/vault.pb.go:307
↓ 113 callers
Function
WithGrantScopeIds
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 callers
Method
GetKeyId
()
internal/storage/storagebucketcredential/storage_bucket_credential.go:31
↓ 111 callers
Function
TestHosts
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 callers
Function
TestKmsWorker
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 callers
Method
GetAddress
()
internal/host/host.go:28
↓ 110 callers
Method
SetReadDeadline
Unused
internal/daemon/worker/internal/metric/proxy_ws_test.go:436
↓ 108 callers
Method
Response
Response returns the API response associated with the error
api/apierror.go:46
↓ 107 callers
Method
Delete
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 callers
Function
NewRepository
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 callers
Method
StatusCode
()
internal/daemon/common/handler.go:40
↓ 105 callers
Function
WithOutputFields
WithOutputFields provides an option when creating responses to only include specific fields
internal/daemon/controller/handlers/options.go:64
↓ 104 callers
Method
FetchActionSetForId
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 callers
Function
MaybeSkipTest
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 callers
Function
NewRepository
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 callers
Function
WithName
WithName provides an optional name.
internal/plugin/options.go:41
↓ 104 callers
Function
testId
(t testing.TB)
internal/iam/testing.go:155
↓ 101 callers
Method
Shutdown
Shutdown runs any cleanup functions; be sure to run this after your test is done
internal/daemon/controller/testing.go:317
↓ 101 callers
Function
WithScope
WithScope provides an option when creating responses to include the given scope if allowed
internal/daemon/controller/handlers/options.go:72
↓ 99 callers
Method
GetParentId
()
internal/iam/store/scope.pb.go:130
↓ 99 callers
Function
WithAuthorizedActions
WithAuthorizedActions provides an option when creating responses to include the given authorized actions if allowed
internal/daemon/controller/handlers/options.go:88
↓ 98 callers
Function
TestSession
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 callers
Function
WithOplog
WithOplog provides an option to write an oplog entry. WithOplog and NewOplogMsg cannot be used together.
internal/db/option.go:229
↓ 98 callers
Function
WithSkipDefaultRoleCreation
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 callers
Method
Error
()
internal/event/context_test.go:1165
↓ 97 callers
Method
ScanRows
ScanRows will scan sql rows into the interface provided
internal/db/read_writer.go:72
↓ 97 callers
Function
WriteSysEvent
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 callers
Method
GetAuthMethodId
()
internal/auth/subtype.go:22
↓ 96 callers
Function
NewRepository
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 callers
Function
WithWrap
WithErrCode provides an option to provide an error to wrap when creating a new error.
internal/errors/option.go:34
↓ 90 callers
Function
WithAddress
WithAddress provides an optional address.
internal/server/options.go:101
↓ 87 callers
Method
AddKeyringToken
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 callers
Method
Error
()
internal/bsr/types.go:17
↓ 87 callers
Method
IamRepo
()
internal/daemon/controller/testing.go:112
↓ 87 callers
Function
TestCredentialStore
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 callers
Function
TestSetMembers
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 callers
Function
NewRepository
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 callers
Function
NewWorker
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 callers
Method
Completions
Completions returns the completions for this flag set.
internal/cmd/base/base.go:592
↓ 85 callers
Function
Nil
Nil checks if the interface is nil
internal/bsr/internal/is/nil.go:9
↓ 85 callers
Method
PrintJsonItem
PrintJsonItem prints the given item to the UI in JSON format
internal/cmd/base/format.go:300
← previous
next →
101–200 of 19,156, ranked by callers