Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashicorp-forge/hermes
/ functions
Functions
1,102 in github.com/hashicorp-forge/hermes
⨍
Functions
1,102
◇
Types & classes
995
↓ 5 callers
Method
getAbbreviation
* A helper function to get the abbreviation for a product. * Used wherever the abbreviation is needed, e.g., * the ProductSelect component.
web/app/services/product-areas.ts:96
↓ 5 callers
Function
getDocumentURL
getDocumentURL returns a Hermes document URL.
internal/api/v2/reviews.go:856
↓ 5 callers
Function
getProductLabel
(product?: string)
web/app/utils/get-product-label.ts:1
↓ 5 callers
Function
isValidURL
(string: string)
web/app/utils/is-valid-u-r-l.ts:1
↓ 5 callers
Function
measure
(selector?: string)
web/tests/integration/components/x/dropdown-list/index-test.ts:494
↓ 5 callers
Method
open
(modalType: ModalType, data?: Record<string, unknown>)
web/app/services/modal-alerts.ts:40
↓ 5 callers
Function
parseParagraphWithText
parseParagraphWithText parses a Google Doc paragraph containing a text value.
pkg/hashicorpdocs/rfc.go:421
↓ 5 callers
Method
setFocusedItemIndex
( focusDirectionOrNumber: FocusDirection | number, scrollIntoView = true, )
web/app/components/x/dropdown-list/index.ts:327
↓ 5 callers
Function
updateRelatedResourcesSortOrder
( hermesDocuments: RelatedHermesDocument[], externalLinks: RelatedExternalLink[], )
web/app/utils/update-related-resources-sort-order.ts:6
↓ 4 callers
Method
CopyFile
CopyFile copies a Google Drive file.
pkg/googleworkspace/drive_helpers.go:17
↓ 4 callers
Method
CreateFolder
CreateFolder creates a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:36
↓ 4 callers
Method
DeletePermission
DeletePermission deletes a permission for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:438
↓ 4 callers
Method
Get
Get gets the indexer metadata and assigns it to the receiver.
pkg/models/indexer_metadata.go:21
↓ 4 callers
Method
Get
Get gets a document type custom field from database db by name and document type name, and assigns it to the receiver.
pkg/models/document_type_custom_field.go:32
↓ 4 callers
Method
Get
Get gets the latest product number and assigns it to the receiver.
pkg/models/product_latest_document_number.go:37
↓ 4 callers
Method
GetSubfolder
GetSubfolder returns the subfolder file if the specified folder contains a subfolder with the specified name, and nil if not found.
pkg/googleworkspace/drive_helpers.go:182
↓ 4 callers
Method
ListPermissions
ListPermissions lists permissions for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:399
↓ 4 callers
Method
Upsert
Upsert updates or inserts a product into database db.
pkg/models/product.go:72
↓ 4 callers
Method
announceMovement
* The action to announce the movement of an item to screen readers. * Called when an item is moved up, down, to the top, or to the bottom.
web/app/components/project/resource-list-item.ts:123
↓ 4 callers
Function
assertEditingIsDisabled
(assert: Assert)
web/tests/acceptance/authenticated/document-test.ts:143
↓ 4 callers
Function
captureFacetElements
()
web/tests/acceptance/authenticated/results-test.ts:289
↓ 4 callers
Method
checkForDuplicate
( urlOrID: string, resourceIsHermesDocument = false, )
web/app/components/related-resources/add.ts:372
↓ 4 callers
Function
compareSlices
compareSlices compares the first slice with the second and returns the elements that exist in the second slice that don't exist in the first
internal/api/helpers.go:33
↓ 4 callers
Function
defaultBackoff
defaultBackoff returns a default exponential backoff configuration for Google Workspace APIs.
pkg/googleworkspace/backoff.go:12
↓ 4 callers
Function
getPageTwoButton
()
web/tests/acceptance/authenticated/projects-test.ts:156
↓ 4 callers
Method
handleAuthentication
()
web/tests/unit/services/session-test.ts:9
↓ 4 callers
Function
parseResourceIDFromURL
parseResourceIDFromURL parses a URL path with the format "/api/v1/{apiPath}/{resourceID}" and returns the resource ID.
internal/api/helpers.go:72
↓ 4 callers
Method
scheduleFocusDragHandle
()
web/app/components/project/resource-list-item.ts:127
↓ 3 callers
Method
Create
(db *gorm.DB)
pkg/models/document_related_resource_external_link.go:22
↓ 3 callers
Method
Create
(db *gorm.DB)
pkg/models/project_related_resource_external_link.go:23
↓ 3 callers
Method
DeleteFile
DeleteFile deletes a Google Drive file
pkg/googleworkspace/drive_helpers.go:427
↓ 3 callers
Method
Find
Find finds all file revisions for a provided document, and assigns them to the receiver.
pkg/models/document_file_revision.go:62
↓ 3 callers
Method
GetRelatedResources
GetRelatedResources returns typed related resources for document d.
pkg/models/document.go:409
↓ 3 callers
Method
ListFiles
ListFiles lists files in a Google Drive folder using the provided query.
pkg/googleworkspace/drive_helpers.go:261
↓ 3 callers
Function
New
New initializes Hermes indices and returns a new Algolia client for indexing data.
pkg/algolia/client.go:104
↓ 3 callers
Function
NewConfig
NewConfig parses an HCL configuration file and returns the Hermes config.
internal/config/config.go:339
↓ 3 callers
Function
NewFlagSet
NewFlagSet creates a new flag set.
internal/cmd/base/base.go:112
↓ 3 callers
Function
RemoveStringSliceDuplicates
RemoveStringSliceDuplicates removes duplicate strings from a string slice.
internal/helpers/helpers.go:4
↓ 3 callers
Method
ReplaceHeader
ReplaceHeader replaces the document header, which is assumed to be the first table in the document. The resulting table looks like this: |----------
pkg/document/replace_header.go:46
↓ 3 callers
Method
ReplaceRelatedResources
ReplaceRelatedResources replaces related resources for document d.
pkg/models/document.go:325
↓ 3 callers
Function
SaveDocumentRedirectDetails
SaveDocumentRedirectDetails saves the short path of the document as the key and the document ID as the value in Algolia.
pkg/links/data.go:31
↓ 3 callers
Function
SendReviewRequestedEmail
( d ReviewRequestedEmailData, to []string, from string, s *gw.Service, )
internal/email/email.go:196
↓ 3 callers
Method
Upsert
Upsert updates or inserts the indexer metadata.
pkg/models/indexer_metadata.go:33
↓ 3 callers
Method
animate
()
web/app/components/project/index.ts:37
↓ 3 callers
Function
animateTransform
( sprite: Sprite, opts?: Partial<AnimateTransformOptions>, )
web/app/utils/ember-animated/animate-transform.ts:146
↓ 3 callers
Function
dasherizeStatus
(status string)
internal/email/email.go:284
↓ 3 callers
Method
disableAndRevertChanges
()
web/app/components/editable-field.ts:208
↓ 3 callers
Method
disableEditing
()
web/app/components/editable-field.ts:198
↓ 3 callers
Function
executeJiraRequest
(url string, srv server.Server)
internal/api/v2/jira_issue.go:203
↓ 3 callers
Method
getAssociations
getAssociations gets associations.
pkg/models/document_review.go:152
↓ 3 callers
Method
getAssociations
getAssociations gets associations.
pkg/models/document_group_review.go:145
↓ 3 callers
Function
getModelAttr
( store: StoreService, positional: GetModelAttrArgs, named?: { fallback?: string; }, )
web/app/utils/get-model-attr.ts:10
↓ 3 callers
Method
handleQuery
()
web/app/components/related-resources/add.ts:494
↓ 3 callers
Function
highlightElement
(target: Element)
web/app/utils/ember-animated/highlight-element.ts:10
↓ 3 callers
Function
openModal
()
web/tests/integration/components/related-resources-test.ts:385
↓ 3 callers
Function
parseDocumentsURLPath
parseDocumentsURLPath parses the document ID and subcollection request type from a documents/drafts API URL path.
internal/api/documents.go:905
↓ 3 callers
Function
parseDocumentsURLPath
parseDocumentsURLPath parses the document ID and subcollection request type from a documents/drafts API URL path.
internal/api/v2/documents.go:1141
↓ 3 callers
Function
parseResourceIDFromURL
parseResourceIDFromURL parses a URL path with the format "/api/v2/{apiPath}/{resourceID}" and returns the resource ID.
internal/api/v2/helpers.go:73
↓ 3 callers
Function
rerenderTile
()
web/tests/integration/components/project/tile-test.ts:134
↓ 3 callers
Function
scrollIntoViewIfNeeded
( element: Element, options?: ScrollIntoViewOptions, )
web/app/utils/scroll-into-view-if-needed.ts:8
↓ 3 callers
Method
showFlashSuccess
(title: string, message: string)
web/app/components/document/sidebar.ts:618
↓ 3 callers
Method
toggleApproverVisibility
()
web/app/components/document/sidebar.ts:766
↓ 3 callers
Method
updateHeight
()
web/app/modifiers/auto-height-textarea.ts:47
↓ 3 callers
Method
updateState
(state: TooltipState)
web/app/modifiers/tooltip.ts:234
↓ 3 callers
Method
validate
* Validates the form and updates the `formErrors` property.
web/app/components/new/doc-form.ts:109
↓ 2 callers
Function
ConfigHandler
ConfigHandler returns runtime configuration for the Hermes frontend.
web/web.go:77
↓ 2 callers
Method
CreateShortcut
CreateShortcut creates a Google Drive shortcut.
pkg/googleworkspace/drive_helpers.go:65
↓ 2 callers
Function
DeleteDocumentRedirectDetails
DeleteDocumentRedirectDetails deletes document redirect details from Algolia.
pkg/links/data.go:11
↓ 2 callers
Method
Flags
()
internal/cmd/commands/indexer/indexer.go:40
↓ 2 callers
Method
Flags
()
internal/cmd/commands/operator/migrate_algolia_to_postgresql.go:57
↓ 2 callers
Method
Flags
()
internal/cmd/commands/server/server.go:63
↓ 2 callers
Method
Get
(db *gorm.DB)
pkg/models/document_file_revision.go:86
↓ 2 callers
Method
GetDocType
()
pkg/hashicorpdocs/common.go:28
↓ 2 callers
Method
GetFiles
GetFiles returns all files in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:134
↓ 2 callers
Method
GetFolders
GetDocs returns all folders in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:143
↓ 2 callers
Method
GetProduct
()
pkg/hashicorpdocs/common.go:33
↓ 2 callers
Method
GetRelatedResources
GetRelatedResources returns typed related resources for project p.
pkg/models/project.go:132
↓ 2 callers
Method
GetUpdatedDocsBetween
GetUpdatedDocsBetween returns all docs in a Google Drive folder that have been modified after a provided timestamp string (in RFC 3339 date-time) "aft
pkg/googleworkspace/drive_helpers.go:209
↓ 2 callers
Method
Handle
(pattern string, handler http.Handler)
internal/cmd/commands/server/server.go:329
↓ 2 callers
Function
ModelsToAutoMigrate
()
pkg/models/gorm.go:3
↓ 2 callers
Function
NewCommand
NewCommand returns a new instance of a base.Command type.
internal/cmd/base/base.go:39
↓ 2 callers
Function
NewConfig
New creates an instance of Datadog configuration.
internal/datadog/datadog.go:26
↓ 2 callers
Function
SendNewOwnerEmail
( data NewOwnerEmailData, to []string, from string, svc *gw.Service, )
internal/email/email.go:138
↓ 2 callers
Function
SendSubscriberDocumentPublishedEmail
( d SubscriberDocumentPublishedEmailData, to []string, from string, s *gw.Service, )
internal/email/email.go:240
↓ 2 callers
Method
ShareFileWithDomain
ShareFileWithDomain shares a Google Drive file with a domain.
pkg/googleworkspace/drive_helpers.go:381
↓ 2 callers
Method
Update
Update updates the document review in database db.
pkg/models/document_review.go:139
↓ 2 callers
Method
Upsert
Upsert updates or inserts the receiver into database db.
pkg/models/document_type.go:79
↓ 2 callers
Method
WaitForInterrupt
WaitForInterrupt waits for an interrupt signal and runs a provided shutdown function. While the graceful shutdown is in progress, another interrupt ca
internal/cmd/base/base.go:74
↓ 2 callers
Method
_select
()
web/app/modifiers/select-on-focus.ts:29
↓ 2 callers
Method
addRelatedExternalLink
(resource?: RelatedExternalLink)
web/app/components/related-resources/add.ts:397
↓ 2 callers
Method
addResource
(resource: RelatedResource)
web/app/components/project/index.ts:234
↓ 2 callers
Method
animate
()
web/app/utils/ember-animated/animate-transform.ts:44
↓ 2 callers
Function
assertDocumentInfo
(doc: HermesDocument | RelatedHermesDocument)
web/tests/integration/components/doc/tile-medium-test.ts:77
↓ 2 callers
Method
assertResourceIsDocument
* A method that asserts that a given resource is a Hermes Document. * Called in Hermes Document–specific getters to confirm we're working * with
web/app/components/document/sidebar/related-resources/list-item/resource.ts:75
↓ 2 callers
Method
assignMenuItemIDs
(items: NodeListOf<Element>)
web/app/components/x/dropdown-list/index.ts:278
↓ 2 callers
Function
authorizeDocumentPatchRequest
authorizeDocumentPatchRequest authorizes a PATCH request to a document.
internal/api/v2/documents.go:1199
↓ 2 callers
Function
blinkElement
(element?: Element | null)
web/app/utils/blink-element.ts:10
↓ 2 callers
Method
buildFacetFilters
* Returns an array of facet filters based on the current parameters, * and whether the owner is looking at their own docs.
web/app/services/algolia.ts:238
↓ 2 callers
Function
buildLabelAndValueString
buildLabelAndValueString builds a string containing a label and value from a Google Doc paragraph containing text in the form of `Label: Value`.
pkg/hashicorpdocs/rfc.go:435
↓ 2 callers
Function
captureItems
()
web/tests/acceptance/authenticated/projects/project-test.ts:467
← previous
next →
101–200 of 1,102, ranked by callers