MCPcopy Create free account

hub / github.com/hashicorp-forge/hermes / functions

Functions1,102 in github.com/hashicorp-forge/hermes

↓ 1 callersMethodquery
* The Query method for the group model. * Returns an array of groups that match the query. * Also used by the `queryRecord` method.
web/app/adapters/group.ts:11
↓ 1 callersFunctionrefreshDocumentHeader
refreshDocumentHeader refreshes the header for a published document. TODO: improve error handling.
internal/indexer/refresh_headers.go:152
↓ 1 callersMethodregisterAnchor
(e: HTMLElement)
web/app/components/floating-u-i/index.ts:52
↓ 1 callersFunctionregisterDocumentTypes
registerDocumentTypes registers all products configured in the application config in the database.
internal/cmd/commands/server/server.go:475
↓ 1 callersFunctionregisterProducts
registerProducts registers all products configured in the application config in the database and Algolia. TODO: products are currently needed in Algol
internal/cmd/commands/server/server.go:539
↓ 1 callersFunctionremoveEmptyStrings
removeEmptyStrings removes any empty string elements from a slice of strings.
pkg/hashicorpdocs/rfc.go:459
↓ 1 callersMethodremoveResource
(resource: RelatedResource)
web/app/components/document/sidebar/related-resources.ts:192
↓ 1 callersFunctionremoveSharing
removeSharing lists permissions for a document and then deletes the permission for the supplied user email
internal/api/drafts.go:1425
↓ 1 callersFunctionremoveSharing
removeSharing lists permissions for a document and then deletes the permission for the supplied user email
internal/api/v2/drafts.go:1654
↓ 1 callersMethodresetErrors
()
web/app/components/document/modal.ts:62
↓ 1 callersMethodresetOwnersQuery
()
web/app/components/header/toolbar.ts:203
↓ 1 callersFunctionrespondError
respondError responds to an HTTP request and logs an error.
internal/api/helpers.go:104
↓ 1 callersFunctionsaveDocInAlgolia
saveDoc saves a document struct and its redirect details in Algolia.
internal/indexer/indexer.go:550
↓ 1 callersFunctionsaveToken
Saves a token to a file path.
pkg/googleworkspace/service.go:217
↓ 1 callersMethodscrollIntoView
* Checks whether the focused item is completely visible, * and, if necessary, scrolls the dropdown to make it visible. * Used by the setFocusedI
web/app/components/x/dropdown-list/index.ts:390
↓ 1 callersMethodsetConfig
(param: HermesConfig)
web/app/services/config.ts:24
↓ 1 callersFunctionsetWebConfig
( mirageContext: MirageTestContext, key: string, value: any, )
web/mirage/utils.ts:147
↓ 1 callersMethodshowError
(title: string, description: unknown | string)
web/app/components/document/modal.ts:36
↓ 1 callersMethodshowErrorMessage
(err: Error)
web/app/routes/authenticated/document.ts:62
↓ 1 callersMethodshowModal
()
web/app/components/document/sidebar/related-resources/list-item.ts:102
↓ 1 callersFunctionstartFactories
(mirage: MirageTestContext)
web/tests/mirage-helpers/utils.ts:4
↓ 1 callersMethodsubmit
(event?: SubmitEvent)
web/app/components/new/doc-form.ts:181
↓ 1 callersMethodtargetIsRelated
* Whether the target is related to the dismissible element. * Used to prevent dismissing when targeting on a related element * that isn't a chil
web/app/modifiers/dismissible.ts:59
↓ 1 callersFunctiontoggleFlagEmail
toggleFlagEmail toggles a feature flag using user email
internal/pkg/featureflags/flags.go:98
↓ 1 callersFunctiontoggleFlagPercentage
toggleFlagPercentage toggles a feature flag using an id string and percentage value using the built-in hash functions This function is based on: https
internal/pkg/featureflags/flags.go:89
↓ 1 callersFunctiontokenFromFile
Retrieves a token from a local file.
pkg/googleworkspace/service.go:228
↓ 1 callersMethodupdateAffordances
()
web/app/components/dashboard/recently-viewed.ts:54
↓ 1 callersFunctionupdateRecentlyViewedProjects
updateRecentlyViewedProjects updates the recently viewed projects for a user with the provided email address, using the project ID and viewed-at time
internal/api/v2/projects.go:634
↓ 1 callersMethodupsertAssocations
upsertAssocations creates required assocations.
pkg/models/document_type.go:111
↓ 1 callersFunctionvalidate
validate validates the service configuration.
internal/jira/service.go:50
↓ 1 callersMethodvalidate
validate validates the indexer configuration.
internal/indexer/indexer.go:106
↓ 1 callersFunctionvalidateDocType
validateDocType returns true if the name (docType) is contained in the a slice of configured document types.
internal/api/drafts.go:1410
↓ 1 callersFunctionvalidateDocType
validateDocType returns true if the name (docType) is contained in the a slice of configured document types.
internal/api/v2/drafts.go:1639
↓ 1 callersMethodverifyOIDCToken
verifyOIDCToken checks if the request is authorized and returns the user identity.
internal/auth/oktaalb/oktaalb.go:77
↓ 1 callersMethodviewAllResults
(dd?: XDropdownListAnchorAPI)
web/app/components/header/search.ts:204
↓ 1 callersFunctionwebHandler
webHandler is middleware for serving our single-page application.
web/web.go:39
FunctionAnalyticsHandler
Analytics handles user events for analytics
internal/api/v2/analytics.go:20
FunctionApprovalsHandler
(srv server.Server)
internal/api/v2/approvals.go:16
MethodBeforeSave
BeforeSave is a hook to find or create associations before saving.
pkg/models/document_review.go:36
MethodBeforeSave
BeforeSave is a hook to find or create associations before saving.
pkg/models/document_group_review.go:27
MethodBeforeSave
BeforeSave is a hook used to find associations before saving.
pkg/models/document.go:100
MethodBeforeSave
BeforeSave is a hook to find or create associations before saving.
pkg/models/document_custom_field.go:21
MethodBeforeSave
BeforeSave is a hook to find or create associations before saving.
pkg/models/product_latest_document_number.go:28
MethodBeforeSave
BeforeSave is a hook to find or create associations before saving.
pkg/models/user.go:43
MethodCreate
(db *gorm.DB)
pkg/models/document_custom_field.go:40
MethodDeleteFileRevision
(revisionID string)
pkg/document/document.go:687
MethodDeleteFileRevision
(revisionID string)
pkg/hashicorpdocs/basedoc.go:96
FunctionDocumentHandler
(srv server.Server)
internal/api/v2/documents.go:44
FunctionDocumentTypesHandler
(srv server.Server)
internal/api/v2/document_types.go:10
FunctionDraftsDocumentHandler
(srv server.Server)
internal/api/v2/drafts.go:607
FunctionDraftsHandler
(srv server.Server)
internal/api/v2/drafts.go:57
FunctionDropTestDatabase
(dsn, dbName string)
internal/test/database.go:46
FunctionGet
Get returns a document type for a provided (case-insensitive) name or an error if it is not registered.
internal/pkg/doctypes/doc_types.go:47
MethodGet
(db *gorm.DB)
pkg/models/document_related_resource_external_link.go:40
MethodGet
Get gets a group from database db by email address, and assigns it to the receiver.
pkg/models/group.go:44
MethodGet
(db *gorm.DB)
pkg/models/project_related_resource_external_link.go:59
MethodGetApprovedBy
Getters for fields common to all document types.
pkg/hashicorpdocs/common.go:22
MethodGetApprovedBy
()
pkg/hashicorpdocs/basedoc.go:100
MethodGetApprovers
()
pkg/hashicorpdocs/common.go:23
MethodGetApprovers
()
pkg/hashicorpdocs/basedoc.go:104
MethodGetChangesRequestedBy
()
pkg/hashicorpdocs/common.go:24
MethodGetChangesRequestedBy
()
pkg/hashicorpdocs/basedoc.go:108
MethodGetContributors
()
pkg/hashicorpdocs/common.go:25
MethodGetContributors
()
pkg/hashicorpdocs/basedoc.go:112
MethodGetCreatedTime
()
pkg/hashicorpdocs/common.go:26
MethodGetCreatedTime
()
pkg/hashicorpdocs/basedoc.go:116
MethodGetDocNumber
()
pkg/hashicorpdocs/common.go:27
MethodGetDocNumber
()
pkg/hashicorpdocs/basedoc.go:120
MethodGetDocType
()
pkg/hashicorpdocs/basedoc.go:124
MethodGetDocs
GetDocs returns all docs in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:102
MethodGetFoldersRecursive
GetDocs returns all folders and recursively all subfolders in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:149
FunctionGetLinkURLs
GetLinkURLs returns all link URLs in a Google Doc Body.
pkg/googleworkspace/docs_helpers.go:35
MethodGetMetaTags
()
pkg/hashicorpdocs/common.go:29
MethodGetMetaTags
()
pkg/hashicorpdocs/basedoc.go:128
MethodGetModifiedTime
()
pkg/hashicorpdocs/common.go:30
MethodGetModifiedTime
()
pkg/hashicorpdocs/basedoc.go:140
MethodGetObjectID
()
pkg/hashicorpdocs/common.go:31
MethodGetObjectID
()
pkg/hashicorpdocs/basedoc.go:132
MethodGetOwners
()
pkg/hashicorpdocs/common.go:32
MethodGetOwners
()
pkg/hashicorpdocs/basedoc.go:136
MethodGetProduct
()
pkg/hashicorpdocs/basedoc.go:144
MethodGetStatus
()
pkg/hashicorpdocs/common.go:34
MethodGetStatus
()
pkg/hashicorpdocs/basedoc.go:148
FunctionGetStringSliceValue
(in map[string]any, key string)
pkg/document/document.go:713
FunctionGetStringValue
(in map[string]any, key string)
pkg/document/document.go:701
MethodGetSummary
()
pkg/hashicorpdocs/common.go:35
MethodGetSummary
()
pkg/hashicorpdocs/basedoc.go:152
FunctionGetTables
GetTables returns all tables in a Google Doc Body.
pkg/googleworkspace/docs_helpers.go:59
MethodGetTitle
()
pkg/hashicorpdocs/common.go:36
MethodGetTitle
()
pkg/hashicorpdocs/basedoc.go:156
MethodGetUpdatedDocs
GetUpdatedDocs returns all docs in a Google Drive folder that have been modified after a provided timestamp.
pkg/googleworkspace/drive_helpers.go:200
FunctionGroupsHandler
GroupsHandler returns information about Google Groups.
internal/api/v2/groups.go:34
MethodHelp
()
internal/cmd/commands/indexer/indexer.go:31
MethodHelp
()
internal/cmd/commands/version/version.go:16
MethodHelp
()
internal/cmd/commands/operator/migrate_algolia_to_postgresql.go:50
MethodHelp
()
internal/cmd/commands/operator/operator.go:16
MethodHelp
()
internal/cmd/commands/server/server.go:57
MethodHelp
Help generates usage text for a flag set.
internal/cmd/base/base.go:117
FunctionIsLocked
IsLocked checks if a document contains one or more suggestions in the header, locks/unlocks the document accordingly, and returns the lock status.
pkg/hashicorpdocs/locked.go:15
FunctionJiraIssueHandler
JiraIssueHandler proxies Jira issue API requests.
internal/api/v2/jira_issue.go:33
← previousnext →401–500 of 1,102, ranked by callers