MCPcopy Create free account

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

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

↓ 2 callersMethodclose
()
web/app/services/modal-alerts.ts:32
↓ 2 callersFunctionconfigureMainIndex
configureMainIndex configures the main index with settings
pkg/algolia/client.go:220
↓ 2 callersFunctionconfigureReplicaIndexes
( indexName string, createdTimeAscIndex *search.Index, createdTimeDescIndex *search.Index, modifiedTimeDes
pkg/algolia/client.go:235
↓ 2 callersMethodcreateAssocations
createAssocations creates required assocations for a document.
pkg/models/document.go:523
↓ 2 callersMethoddismiss
()
web/app/modifiers/dismissible.ts:49
↓ 2 callersFunctiondocumentsResourceRelatedResourcesHandler
( w http.ResponseWriter, r *http.Request, docID string, doc document.Document, cfg *config.Config, l hcl
internal/api/documents_related_resources.go:54
↓ 2 callersFunctiondocumentsResourceRelatedResourcesHandler
( w http.ResponseWriter, r *http.Request, docID string, doc document.Document, cfg *config.Config, l hcl
internal/api/v2/documents_related_resources.go:50
↓ 2 callersMethodfindRecord
( _store: DS.Store, _type: ModelRegistry[K], id: string, _snapshot: DS.Snapshot<K>, )
web/app/adapters/jira-issue.ts:8
↓ 2 callersFunctiongenerateError
(code: number)
web/tests/unit/services/fetch-test.ts:11
↓ 2 callersMethodgetAssocations
getAssocations gets assocations.
pkg/models/document_type_custom_field.go:59
↓ 2 callersMethodgetAssociations
getAssociations gets associations.
pkg/models/document.go:582
↓ 2 callersMethodgetAssociations
getAssociations gets required associations, creating them where appropriate.
pkg/models/product_latest_document_number.go:72
↓ 2 callersFunctiongetDocumentURL
getDocumentURL returns a Hermes document URL.
internal/api/reviews.go:684
↓ 2 callersFunctiongetFirstFourRecords
(documents: any)
web/tests/integration/components/related-resources/add-test.ts:51
↓ 2 callersFunctiongetInt64Value
(in map[string]any, key string)
internal/api/helpers.go:548
↓ 2 callersFunctiongetInt64Value
(in map[string]any, key string)
internal/api/v2/helpers.go:570
↓ 2 callersFunctiongetObjectID
getObjectID builds the ID for a document redirect details object in Algolia. Object ID's format is: /doctype/{product_abbreviation-docnumber} (e.g., "
pkg/links/data.go:58
↓ 2 callersMethodgetProductColor
* A helper to get a hash-based color for a product. * Used wherever the color is needed, e.g., * the ProductSelect component.
web/app/services/product-areas.ts:83
↓ 2 callersFunctiongetProductsForProject
getProductsForProject returns a slice of unique products for all Hermes document related resources associated with the project.
internal/api/v2/projects.go:562
↓ 2 callersFunctiongetProjectIDFromPath
getProjectIDFromPath returns the project ID from a request path and corresponding regular expression.
internal/api/v2/projects.go:581
↓ 2 callersFunctiongetTestDocNumber
(product: string)
web/mirage/factories/document.ts:4
↓ 2 callersFunctionhandleAlgoliaRequest
(schema, request)
web/mirage/config.ts:39
↓ 2 callersMethodhandleSearchError
(e: unknown)
web/app/components/related-resources.ts:145
↓ 2 callersMethodhideContent
()
web/app/modifiers/tooltip.ts:486
↓ 2 callersMethodisHoveringSameParent
(e: ElementDropTargetEventBasePayload)
web/app/components/project/resource-list-item.ts:181
↓ 2 callersFunctionisJSON
(str: string)
web/app/services/_session.ts:18
↓ 2 callersFunctionisUserInGroups
isUserInGroups returns true if a user is in any supplied groups, false otherwise.
internal/api/v2/helpers.go:536
↓ 2 callersMethodmaybeHideContent
()
web/app/modifiers/tooltip.ts:473
↓ 2 callersMethodmaybeMatchAnchorWidth
()
web/app/components/floating-u-i/content.ts:117
↓ 2 callersMethodmaybeValidate
* Validates the form if `validateEagerly` is true.
web/app/components/new/doc-form.ts:100
↓ 2 callersFunctionmigrateIndex
migrateIndex migrates all documents in an Algolia docs or drafts index.
internal/cmd/commands/operator/migrate_algolia_to_postgresql.go:215
↓ 2 callersMethodonClose
()
web/app/components/inputs/people-select.ts:151
↓ 2 callersMethodprocessURL
()
web/app/components/related-resources/add-or-edit-external-resource-modal.ts:113
↓ 2 callersMethodquery
* The query of the "See older docs" link. * Resets any active filters and sets the page to 2.
web/app/components/dashboard/latest-docs.ts:28
↓ 2 callersMethodqueryIsFirstPartyURL
(url: string)
web/app/components/related-resources/add.ts:552
↓ 2 callersFunctionrefreshDocumentHeaders
refreshDocumentHeaders updates the header of any documents in a specified folder that been modified since the last indexer run but inactive in the las
internal/indexer/refresh_headers.go:29
↓ 2 callersMethodreplaceAssocations
replaceAssocations replaces assocations for a document.
pkg/models/document.go:669
↓ 2 callersMethodresetAlgoliaResults
()
web/app/components/related-resources.ts:124
↓ 2 callersFunctionrespondError
respondError responds to an HTTP request and logs an error.
internal/api/v2/helpers.go:105
↓ 2 callersFunctionsaveProjectInAlgolia
saveProjectInAlgolia saves a project in Algolia.
internal/api/v2/projects.go:602
↓ 2 callersMethodsaveResourcesOrder
( resourceType: RelatedResourcesScope, currentIndex: number, newIndex: number, )
web/app/components/project/index.ts:339
↓ 2 callersFunctionsetDefaultDocMatches
()
web/mirage/config.ts:239
↓ 2 callersFunctionsetVariables
(anchor: HTMLElement, content: HTMLElement)
web/tests/integration/components/floating-u-i/content-test.ts:92
↓ 2 callersMethodshowReauthMessage
* Triggers a flash message with a button to reauthenticate. * Used when the user's session has expired, or when the user * unsuccessfully attemp
web/app/services/_session.ts:126
↓ 2 callersFunctionsimpleTimeout
(timeout: number)
web/app/utils/simple-timeout.ts:10
↓ 2 callersFunctionupdateDocumentReviewsInDatabase
updateDocumentReviewsInDatabase takes a document and updates the associated document reviews in the database.
internal/api/approvals.go:555
↓ 2 callersFunctionupdateDocumentReviewsInDatabase
updateDocumentReviewsInDatabase takes a document and updates the associated document reviews in the database.
internal/api/v2/approvals.go:709
↓ 2 callersFunctionupdateRecentlyViewedDocs
updateRecentlyViewedDocs updates the recently viewed docs for a user with the provided email address, using the document file ID and viewed at time fo
internal/api/documents.go:826
↓ 2 callersFunctionupdateRecentlyViewedDocs
updateRecentlyViewedDocs updates the recently viewed docs for a user with the provided email address, using the document file ID and viewed at time fo
internal/api/v2/documents.go:1070
↓ 2 callersMethodupdateSortOrder
()
web/app/components/document/sidebar/related-resources.ts:126
↓ 2 callersFunctionvalidate
validate validates the Algolia configuration.
pkg/algolia/client.go:348
↓ 2 callersMethodvalidate
()
web/app/components/new/project-form.ts:85
↓ 2 callersFunctionvalidateUserEmail
validateUserEmail validates that userEmail was set in the request's context. It responds with an internal server error if not found because this shoul
internal/auth/auth.go:50
↓ 1 callersFunctionAlgoliaProxyHandler
AlgoliaProxyHandler proxies Algolia API requests from the Hermes frontend.
pkg/algolia/proxy.go:13
↓ 1 callersFunctionAnalyticsHandler
Analytics handles user events for analytics
internal/api/analytics.go:20
↓ 1 callersFunctionApprovalHandler
( cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, s *gw.Service, db *gorm.DB
internal/api/approvals.go:19
↓ 1 callersFunctionAuthenticateRequest
AuthenticateRequest is middleware that authenticates an HTTP request.
internal/auth/auth.go:14
↓ 1 callersFunctionAuthenticateRequest
AuthenticateRequest is middleware that authenticates an HTTP request using Google.
internal/auth/google/google.go:17
↓ 1 callersFunctionCreateTestDatabase
(t *testing.T, dsn string)
internal/test/database.go:13
↓ 1 callersMethodDeleteFileRevision
(string)
pkg/hashicorpdocs/common.go:19
↓ 1 callersFunctionDocumentHandler
( cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, s *gw.Service, db *gorm.DB
internal/api/documents.go:44
↓ 1 callersFunctionDocumentTypesHandler
(cfg config.Config, log hclog.Logger)
internal/api/document_types.go:11
↓ 1 callersFunctionDraftsDocumentHandler
( cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, s *gw.Service, db *gorm.DB
internal/api/drafts.go:534
↓ 1 callersFunctionDraftsHandler
( cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, s *gw.Service, db *gorm.DB
internal/api/drafts.go:56
↓ 1 callersMethodEnforceOktaAuth
EnforceOktaAuth is HTTP middleware that enforces Okta authorization.
internal/auth/oktaalb/oktaalb.go:54
↓ 1 callersMethodGetAll
GetAll gets all document types from database db, and assigns them to the receiver.
pkg/models/document_type.go:73
↓ 1 callersMethodGetCustomEditableFields
()
pkg/hashicorpdocs/common.go:51
↓ 1 callersMethodGetCustomEditableFields
()
pkg/hashicorpdocs/rfc.go:37
↓ 1 callersMethodGetCustomEditableFields
()
pkg/hashicorpdocs/frd.go:28
↓ 1 callersMethodGetCustomEditableFields
()
pkg/hashicorpdocs/prd.go:28
↓ 1 callersFunctionGetShortRevision
GetShortRevision returns a short commit or checkout revision from build information
internal/version/version.go:18
↓ 1 callersMethodGetUpdatedFiles
GetUpdatedFiles returns all files in a Google Drive folder that have been modified after a provided timestamp.
pkg/googleworkspace/drive_helpers.go:222
↓ 1 callersFunctionGetVersion
GetVersion returns the version number
internal/version/version.go:11
↓ 1 callersFunctionHandler
()
internal/pub/pub.go:12
↓ 1 callersFunctionHandler
()
web/web.go:21
↓ 1 callersMethodListRevisions
ListRevisions lists revisions for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:300
↓ 1 callersFunctionMain
Main runs the CLI with the given arguments and returns the exit code.
internal/cmd/main.go:13
↓ 1 callersFunctionMakeShutdownCh
MakeShutdownCh returns a channel that can be used for shutdown notifications for commands. This channel will send a message for every SIGINT or SIGTER
internal/cmd/base/base.go:59
↓ 1 callersFunctionMeHandler
( l hclog.Logger, s *gw.Service, )
internal/api/me.go:26
↓ 1 callersFunctionMeRecentlyViewedDocsHandler
( cfg *config.Config, l hclog.Logger, db *gorm.DB, )
internal/api/me_recently_viewed_docs.go:19
↓ 1 callersFunctionMeSubscriptionsHandler
( cfg *config.Config, l hclog.Logger, s *gw.Service, db *gorm.DB, )
internal/api/me_subscriptions.go:18
↓ 1 callersFunctionNew
New returns a new Okta authorizer.
internal/auth/oktaalb/oktaalb.go:46
↓ 1 callersFunctionNewFRD
NewFRD parses a Google Drive file based on the HashiCorp FRD template and returns the resulting FRD struct.
pkg/hashicorpdocs/frd.go:66
↓ 1 callersFunctionNewIndexer
NewIndexer creates a new indexer.
internal/indexer/indexer.go:84
↓ 1 callersFunctionNewPRD
NewPRD parses a Google Drive file based on the HashiCorp PRD template and returns the resulting PRD struct.
pkg/hashicorpdocs/prd.go:62
↓ 1 callersFunctionNewRFC
NewRFC parses a Google Drive file based on the HashiCorp RFC template and returns the resulting RFC struct.
pkg/hashicorpdocs/rfc.go:83
↓ 1 callersFunctionNewSearchClient
NewSearchClient returns a new Algolia client for searching indices.
pkg/algolia/client.go:320
↓ 1 callersFunctionNewService
NewService creates a new Service.
internal/jira/service.go:25
↓ 1 callersFunctionParseProjectStatusString
(s string)
pkg/models/project.go:65
↓ 1 callersFunctionPeopleDataHandler
PeopleDataHandler returns people related data from the Google API to the Hermes frontend.
internal/api/people.go:23
↓ 1 callersFunctionProductsHandler
ProductsHandler returns the product mappings to the Hermes frontend.
internal/api/products.go:14
↓ 1 callersFunctionRedirectHandler
RedirectHandler handles redirects from Hashilinks
pkg/links/redirect.go:26
↓ 1 callersFunctionRegister
Register makes a document type available by the provided (case-insensitive) name.
internal/pkg/doctypes/doc_types.go:19
↓ 1 callersFunctionReviewHandler
( cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, s *gw.Service, db *gorm.DB
internal/api/reviews.go:27
↓ 1 callersMethodRun
(args []string)
internal/cmd/commands/version/version.go:22
↓ 1 callersMethodRun
(args []string)
internal/cmd/commands/server/server.go:93
↓ 1 callersFunctionSendDocumentApprovedEmail
( data DocumentApprovedEmailData, to []string, from string, svc *gw.Service, )
internal/email/email.go:76
↓ 1 callersFunctionSetAndToggle
SetAndToggle sets and toggle feature flags.
internal/pkg/featureflags/flags.go:32
↓ 1 callersMethodShutdownServer
ShutdownServer gracefully shuts down the HTTP server.
internal/cmd/commands/server/server.go:462
↓ 1 callersMethodToDatabaseModels
ToDatabaseModels converts a document to a document and document reviews database records.
pkg/document/document.go:430
← previousnext →201–300 of 1,102, ranked by callers