MCPcopy Create free account

hub / github.com/hashicorp/boundary / functions

Functions19,156 in github.com/hashicorp/boundary

↓ 84 callersMethodOpen
(ctx context.Context, name string)
internal/storage/storage.go:70
↓ 84 callersFunctionTestAccount
TestAccount creates a test oidc auth account.
internal/auth/oidc/testing.go:177
↓ 83 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/auth/password/repository.go:29
↓ 83 callersFunctionWithName
WithName provides an optional name.
internal/server/options.go:87
↓ 82 callersFunctionOutputFields
OutputFields returns output fields from the given context and calls SelfOrDefaults on it. If the context does not contain a RequestContext, this will
internal/requests/requests.go:70
↓ 82 callersFunctionWrapMap
(prefixSpaces, maxLengthOverride int, input map[string]any)
internal/cmd/base/format.go:123
↓ 81 callersMethodBytes
()
internal/bsr/internal/sign/sign_test.go:26
↓ 81 callersMethodClone
()
internal/iam/resource.go:45
↓ 81 callersFunctionNewOplogMsg
NewOplogMsg provides an option to ask for a new in-memory oplog message. The new msg will be returned in the provided *oplog.Message parameter. WithO
internal/db/option.go:242
↓ 79 callersFunctionNewOplogMsgs
NewOplogMsgs provides an option to ask for multiple new in-memory oplog messages. The new msgs will be returned in the provided *[]oplog.Message para
internal/db/option.go:253
↓ 79 callersFunctionmapBasedAuthTokenKeyringLookup
mapBasedAuthTokenKeyringLookup provides a fake KeyringTokenLookupFn that uses the provided map to perform lookups for the tokens
internal/clientcache/internal/cache/repository_test.go:28
↓ 79 callersFunctionsliceBasedAuthTokenBoundaryReader
sliceBasedAuthTokenBoundaryReader provides a fake BoundaryTokenReaderFn that uses the provided map to lookup an auth tokens information.
internal/clientcache/internal/cache/repository_test.go:36
↓ 78 callersMethodError
Error satisfies the error interface.
api/apierror.go:35
↓ 78 callersFunctionTestAuthMethods
TestAuthMethods creates count number of password auth methods to the provided DB with the provided scope id. If any errors are encountered during the
internal/auth/password/testing.go:56
↓ 78 callersFunctionWithLimit
WithLimit provides an option to provide a limit. Intentionally allowing negative integers. If WithLimit < 0, then unlimited results are returned. I
internal/db/option.go:276
↓ 78 callersFunctionWithOverrideUsernameAttribute
WithOverrideUsernameAttribute provides the name of an attribute in the Data field of a Vault api.Secret that maps to a username value.
internal/credential/vault/options.go:152
↓ 77 callersFunctionNewPublicId
NewPublicId creates a new public id with the prefix
internal/db/id.go:22
↓ 76 callersFunctionNewRepository
NewRepository creates a new session Repository. Supports the options: - WithLimit, which sets a default limit on results returned by repo operations.
internal/session/repository.go:48
↓ 76 callersFunctionTestProject
(t testing.TB, repo *Repository, orgId string, opt ...Option)
internal/iam/testing.go:108
↓ 75 callersFunctionNewTestVaultServer
NewTestVaultServer creates and returns a TestVaultServer. Some Vault secret engines require the Vault server be created with a docker network. Check t
internal/credential/vault/testing.go:1209
↓ 75 callersFunctionWithSkipAdminRoleCreation
WithSkipAdminRoleCreation provides an option to disable the automatic creation of an admin role when a new scope is created.
internal/iam/options.go:124
↓ 74 callersMethodPrintApiError
PrintApiError prints the given API error, optionally with context information, to the UI in the appropriate format. WithAttributeFieldPrefix is used,
internal/cmd/base/format.go:184
↓ 74 callersFunctionTestAccount
TestAccount creates a test ldap auth account.
internal/auth/ldap/testing.go:166
↓ 74 callersFunctionTestCredentialStores
TestCredentialStores creates count number of vault credential stores in the provided DB with the provided project id. If any errors are encountered du
internal/credential/vault/testing.go:81
↓ 73 callersFunctionCreateOrgCli
CreateOrgCli creates a new organization in boundary using the cli. Returns the id of the new org.
testing/internal/e2e/boundary/scope.go:59
↓ 73 callersMethodCreateToken
CreateToken creates a new Vault token by calling /auth/token/create on v using v.RootToken. It returns the vault secret containing the token and the t
internal/credential/vault/testing.go:816
↓ 73 callersFunctionTestAuthMethod
TestAuthMethod creates a password auth methods to the provided DB with the provided scope id. If any errors are encountered during the creation of the
internal/auth/password/testing.go:22
↓ 73 callersFunctionTestManagedGroup
TestManagedGroup creates a test oidc managed group.
internal/auth/oidc/testing.go:217
↓ 72 callersMethodCreateItems
CreateItems will create multiple items of the same type. Supported options: WithDebug, WithOplog, WithOplogMsgs, WithReturnRowsAffected, OnConflict, W
internal/db/read_writer.go:115
↓ 72 callersMethodGetProjectId
()
internal/host/host.go:15
↓ 71 callersMethodFatalf
(format string, args ...any)
internal/cmd/base/logging.go:97
↓ 71 callersFunctionWithCredentialType
WithCredentialType provides an optional credential type to associate with a credential library.
internal/credential/vault/options.go:144
↓ 70 callersFunctionNotFoundError
NotFoundError returns an ApiError indicating a resource couldn't be found.
internal/daemon/controller/handlers/errors.go:93
↓ 70 callersFunctionNotFoundErrorf
NotFoundErrorf returns an ApiError indicating a resource couldn't be found.
internal/daemon/controller/handlers/errors.go:104
↓ 70 callersFunctionWithLimit
WithLimit provides an option to provide a limit. Intentionally allowing negative integers. If WithLimit < 0, then unlimited results are returned. I
internal/iam/options.go:90
↓ 69 callersFunctionTestManagedGroupRole
(t testing.TB, conn *db.DB, roleId, managedGrpId string, opt ...Option)
internal/iam/testing.go:631
↓ 69 callersFunctionWithVersion
WithVersion provides an option version number for update operations.
internal/db/option.go:283
↓ 68 callersFunctionHmacSha256
HmacSha256 the provided data. Supports WithPrefix, WithEd25519 and WithPrk options. WithEd25519 is a "legacy" way to complete this operation and shoul
internal/libs/crypto/hmac_sha256.go:31
↓ 67 callersMethodCreate
(context.Context, string)
internal/storage/storage.go:76
↓ 67 callersFunctionNewManager
NewManager creates a new schema manager. An error is returned if the provided dialect is unrecognized or if the passed in db is unreachable.
internal/db/schema/manager.go:81
↓ 67 callersFunctionNewRepositoryStorage
NewRepositoryStorage creates a new WorkerAuthRepositoryStorage that implements the Storage interface
internal/server/repository_workerauth.go:48
↓ 66 callersFunctionTestDefaultSession
TestDefaultSession creates a test session in the repository using defaults.
internal/session/testing.go:224
↓ 66 callersMethodWrite
Write the entry as is with whatever it has for e.Data marshaled into a FIFO QueueBuffer If Wrapper != nil then the data is authentication encrypted
internal/oplog/oplog.go:364
↓ 65 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/static/repository.go:29
↓ 65 callersMethodTableName
TableName returns the table name of the resource
internal/oplog/replayable.go:10
↓ 65 callersFunctionloadTestConfig
()
testing/internal/e2e/tests/base/env_test.go:16
↓ 65 callersFunctionnewRoleId
(ctx context.Context)
internal/iam/ids.go:21
↓ 64 callersFunctionNewSSHCertificateCredentialLibrary
NewSSHCertificateCredentialLibrary creates a new in memory SSHCertificateCredentialLibrary for a Vault backend at vaultPath assigned to storeId. The S
internal/credential/vault/ssh_certificate_credential_library.go:46
↓ 64 callersMethodPrefix
()
internal/types/scope/scope.go:34
↓ 63 callersMethodGetName
()
internal/boundary/boundary.go:31
↓ 63 callersFunctionTestAssertOutputFields
TestAssertOutputFields asserts that the output fields of a group match the expected fields fields that is nil or empty in the result will throw an err
internal/daemon/controller/handlers/testing.go:17
↓ 63 callersFunctionWithUserId
WithUserId provides an option to specify the user ID to use when creating roles with new scopes.
internal/iam/options.go:139
↓ 63 callersFunctiontestStaticResourceRetrievalFunc
testStaticResourceRetrievalFunc returns a function that always returns the provided slice and a nil error. The returned function can be passed into th
internal/clientcache/internal/cache/refresh_test.go:35
↓ 62 callersFunctionCreateProjectCli
CreateProjectCli creates a new project in boundary using the cli. The project will be created under the provided org id. Returns the id of the new pro
testing/internal/e2e/boundary/scope.go:98
↓ 62 callersFunctionSqlOpen
(driverName, dataSourceName string)
internal/db/common/db.go:12
↓ 61 callersMethodGetUpdateMask
()
internal/daemon/controller/handlers/verifiers.go:81
↓ 61 callersFunctionTestManagedGroup
TestManagedGroup creates a test ldap managed group.
internal/auth/ldap/testing.go:199
↓ 61 callersFunctionWithOverridePasswordAttribute
WithOverridePasswordAttribute provides the name of an attribute in the Data field of a Vault api.Secret that maps to a password value.
internal/credential/vault/options.go:160
↓ 61 callersMethodWorker
Worker returns the underlying worker
internal/daemon/worker/testing.go:53
↓ 60 callersMethodGetUpdatedTime
()
internal/daemon/controller/handlers/verifiers.go:30
↓ 59 callersMethodIsNull
IsNull asserts that the resource fieldName is null in the db.
internal/db/assert/asserts.go:33
↓ 59 callersFunctionNewRepository
NewRepository creates a new iam Repository. Supports the options: WithLimit which sets a default limit on results returned by repo operations.
internal/iam/repository.go:33
↓ 58 callersMethodApplyMigrations
ApplyMigrations updates the database schema to match the latest version known by the boundary binary. An error is not returned if the database is alr
internal/db/schema/manager.go:216
↓ 58 callersFunctionWithSessionRetrievalFunc
WithSessionRetrievalFunc provides an option for specifying a sessionRetrievalFunc
internal/clientcache/internal/cache/options.go:106
↓ 58 callersFunctionWrapSlice
(prefixSpaces int, input []string)
internal/cmd/base/format.go:111
↓ 57 callersMethodGetAttributes
()
internal/host/plugin/store/host.pb.go:317
↓ 57 callersMethodGetFilter
()
internal/auth/oidc/store/oidc.pb.go:957
↓ 57 callersMethodWriteHeader
(code int)
internal/daemon/common/handler.go:35
↓ 56 callersMethodBoolVar
(i *BoolVar)
internal/cmd/base/flags.go:52
↓ 56 callersMethodConnected
Connected returns a connected state which provides the worker ids that are being tracked and any key ids for which we don't know the worker id.
internal/daemon/cluster/downstreammanager.go:86
↓ 56 callersFunctionTestCatalog
TestCatalog creates a plugin host catalogs to the provided DB with the provided project id. If any errors are encountered during the creation of the
internal/host/plugin/testing.go:42
↓ 56 callersFunctionTestPkiWorker
TestPkiWorker inserts a worker into the db to satisfy foreign key constraints. The worker provided fields are auto generated. WithName and WithDescrip
internal/server/testing.go:156
↓ 56 callersFunctiongetOpts
(opt ...Option)
internal/auth/ldap/options.go:65
↓ 55 callersFunctionCreateTargetCli
CreateTargetCli uses the cli to create a new target in boundary Returns the id of the new target.
testing/internal/e2e/boundary/target.go:110
↓ 55 callersFunctionTestAccount
TestAccount creates a password account to the provided DB with the provided auth method id and loginName. The auth method must have been created prev
internal/auth/password/testing.go:91
↓ 55 callersFunctiontestSessionStaticResourceRetrievalFunc
(inFunc func(ctx context.Context, s1, s2 string, refToken RefreshTokenValue) ([]*sessions.Session, []string, R
internal/clientcache/internal/cache/refresh_test.go:73
↓ 54 callersMethodAddr
Addr returns the scheme.host.port of the running srv.
internal/auth/oidc/testing.go:479
↓ 54 callersMethodFields
Fields returns an alphabetical string slice of the fields in the map. The return value will be nil with hasSetFields false if fields are unset (e.g. w
internal/perms/output_fields.go:74
↓ 54 callersMethodGetPageSize
()
internal/gen/controller/api/services/user_service.pb.go:197
↓ 54 callersFunctionNewClient
Creates a new client for this collection. The submitted API client is cloned; modifications to it after generating this client will not have effect. I
api/targets/target.gen.go:127
↓ 54 callersFunctionPopulateCommonFlags
(c *base.Command, f *base.FlagSet, resourceType string, flagNames map[string][]string, command string)
internal/cmd/common/flags.go:21
↓ 54 callersFunctionSynopsisFunc
(inFunc, resType string)
internal/cmd/common/help.go:16
↓ 54 callersFunctionWithEditions
WithEditions provides an optional migration states.
internal/db/schema/options.go:32
↓ 53 callersMethodClient
(opt ...base.Option)
internal/clientcache/internal/daemon/server.go:56
↓ 53 callersFunctionHelpMap
(resType string)
internal/cmd/common/help.go:31
↓ 53 callersFunctionIsUniqueError
IsUniqueError returns a boolean indicating whether the error is known to report a unique constraint violation.
internal/errors/is.go:14
↓ 52 callersMethodCreateCredentialLibrary
CreateCredentialLibrary inserts l into the repository and returns a new CredentialLibrary containing the credential library's PublicId. l is not chang
internal/credential/vault/repository_credential_library.go:34
↓ 52 callersFunctionGetOpts
GetOpts - iterate the inbound Options and return a struct.
internal/db/option.go:19
↓ 52 callersMethodRegisterJob
RegisterJob registers a job with the scheduler and persists the job into the repository. • job must be provided and is an implementer of the Job inte
internal/scheduler/scheduler.go:76
↓ 52 callersFunctionWithTargetRetrievalFunc
WithTargetRetrievalFunc provides an option for specifying a targetRetrievalFunc
internal/clientcache/internal/cache/options.go:98
↓ 51 callersMethodSearch
Search returns a SearchResult based on the provided SearchParams. If the SearchParams doesn't have a valid searchable resource or an auth token id an
internal/clientcache/internal/cache/search.go:220
↓ 51 callersFunctionStartUsingTemplate
StartUsingTemplate creates a new test database from a postgres template database.
testing/dbtest/template.go:115
↓ 51 callersFunctionTestGenerateCA
TestGenerateCA will generate a test x509 CA cert, along with it encoded in a PEM format.
internal/auth/ldap/testing.go:218
↓ 51 callersFunctionWithLimit
WithLimit provides an option to provide a limit. Intentionally allowing negative integers. If WithLimit < 0, then unlimited results are returned. I
internal/auth/ldap/options.go:313
↓ 50 callersFunctionNewCredentialLibrary
NewCredentialLibrary creates a new in memory CredentialLibrary for a Vault backend at vaultPath assigned to storeId. Name, description, method, reques
internal/credential/vault/credential_library.go:42
↓ 50 callersFunctionWithWorkerTags
WithWorkerTags provides worker tags.
internal/server/options.go:135
↓ 49 callersMethodDuration
(attemptNumber uint)
internal/db/backoff.go:13
↓ 49 callersFunctionWithCertificates
WithCertificates provides optional certificates.
internal/auth/oidc/options.go:106
↓ 49 callersFunctionWithLimit
WithLimit provides an option to provide a limit. Intentionally allowing negative integers. If WithLimit < 0, then unlimited results are returned. I
internal/auth/oidc/options.go:79
↓ 49 callersFunctionWithMappingOverride
WithMappingOverride provides an optional mapping override to use for mapping the Data fields of a Vault api.Secret to a credential.
internal/credential/vault/options.go:192
← previousnext →201–300 of 19,156, ranked by callers