MCPcopy Create free account

hub / github.com/amp-labs/connectors / functions

Functions8,532 in github.com/amp-labs/connectors

↓ 45 callersMethodArrayRequired
ArrayRequired returns the integer at key. Examples: ArrayRequired("") // current node ArrayRequired("count") // direct lookup New(node,
internal/jsonquery/queries.go:355
↓ 45 callersMethodIntegerOptional
IntegerOptional returns the integer at key if present. Examples: IntegerOptional("") // current node IntegerOptional("count")
internal/jsonquery/queries.go:154
↓ 44 callersFunctionCalculateQueryParamStats
CalculateQueryParamStats produces statistics on objects and their query parameters. queryParamRegistry - holds query parameter name to the list of obj
tools/scrapper/models.go:94
↓ 44 callersMethodClose
()
providers/kit/client.go:14
↓ 44 callersFunctionNewDenyPathStrategy
NewDenyPathStrategy produces a path matching strategy that will deny only those paths that matched the list. Others will be allowed. You can use star
tools/fileconv/api3/strategy.go:42
↓ 44 callersMethodNil
Nil adds a nil marker (byte value 0) to the hash. Used to explicitly represent nil values in the hash computation.
memstore/hashing.go:60
↓ 44 callersMethodObjectRequired
ObjectRequired returns the object at key. Examples: ObjectRequired("") // current node ObjectRequired("user") // direct lookup New(node,
internal/jsonquery/queries.go:117
↓ 44 callersMethodSaveQueryParamStats
(stats *QueryParamStats)
tools/scrapper/files.go:63
↓ 43 callersMethodArrayToMap
(arr []*ajson.Node)
internal/jsonquery/converters.go:15
↓ 42 callersMethodFind
Find looks up the endpoint for the object. The resulting endpoint will have fully formed URL respecting object name and record id which could be empty
providers/google/internal/core/commands.go:21
↓ 42 callersMethodHTTPClient
HTTPClient returns the underlying HTTP client. This is useful for proxy requests.
connectors.go:23
↓ 42 callersFunctionNewCompareResult
NewCompareResult creates a successful comparison result instance.
test/utils/testutils/comparison.go:49
↓ 42 callersFunctionWithSchemas
WithSchemas configures the connector with pre-parsed JSON schemas. Use this option when you have already parsed jsonschema.Schema objects. This is an
memstore/params.go:81
↓ 41 callersFunctionDoCtx
DoCtx runs the given functions in parallel and returns the first error encountered. If no error is encountered, it returns nil. In the event that an e
internal/simultaneously/simultaneously.go:35
↓ 41 callersFunctionNewSetFromList
NewSetFromList creates a set from slice.
internal/datautils/set.go:24
↓ 41 callersMethodSetBaseURL
SetBaseURL fans the override out to any active module adapter so that unit tests pointing at a mock server reach the same host the top-level connector
providers/goto/connector.go:87
↓ 41 callersMethodWrite
Write creates or updates a record. nolint:cyclop,funlen,nestif // Complexity from create/update branching and ID/timestamp generation logic
memstore/connector.go:278
↓ 40 callersMethodGetString
(key string)
common/stringMap.go:111
↓ 40 callersMethodLen
()
common/stringMap.go:39
↓ 39 callersMethodValidate
()
common/xml.go:124
↓ 38 callersMethodError
Error packs every field into one string so the existing server-side log pattern `logger.Error("...", "error", err)` surfaces all diagnostic detail wit
providers/microsoft/errors.go:166
↓ 38 callersFunctionNewOAuthHTTPClient
NewOAuthHTTPClient returns a new http client, with automatic OAuth authentication. Specifically this means that the client will automatically refresh
common/oauth.go:31
↓ 38 callersMethodSet
(key K, value V)
internal/datautils/cache.go:25
↓ 38 callersMethodTextWithDefault
TextWithDefault returns a string under the key regardless of JSON data type. If data is not a string it will be converted to such.
internal/jsonquery/defaults.go:36
↓ 38 callersFunctionValidateCreateUpdateDelete
ValidateCreateUpdateDelete is a comprehensive test scenario utilizing Read/Write/Delete connector operations. Flow: 1. Create an object using the "CP
test/utils/testscenario/crud.go:80
↓ 38 callersFunctionWithOAuthClient
WithOAuthClient sets the http client to use for the connector. Its usage is optional.
common/oauth.go:61
↓ 37 callersFunctionWithOAuthConfig
WithOAuthConfig sets the oauth config to use for the connector. It's required, unless a token source is provided.
common/oauth.go:77
↓ 37 callersFunctionWithOAuthToken
WithOAuthToken sets the oauth token to use for the connector. It's required, unless a token source is provided.
common/oauth.go:69
↓ 36 callersMethodDelete
Delete removes a record by its ID for the specified object type. Parameters: - objectName: The type of object containing the record (e.g., "contact",
memstore/storage.go:113
↓ 36 callersMethodFormatRFC3339inUTC
nolint:gochecknoglobals FormatRFC3339inUTC will convert time to UTC respecting the time zone difference and only then apply time.RFC3339 format.
internal/datautils/timing.go:14
↓ 36 callersMethodLookupArrayFieldName
LookupArrayFieldName will give you the field name which holds the array of objects in provider response. Ex: CustomerSubscriptions is located under fi
internal/staticschema/core.go:321
↓ 36 callersMethodRead
Read reads a page of data from the connector. This can be called multiple times to read all the data. The caller is responsible for paging, by passing
connectors.go:94
↓ 36 callersMethodWithAuthenticatedClient
WithAuthenticatedClient sets up an HTTP client that uses your implementation of authentication.
common/paramsbuilder/authclient.go:33
↓ 35 callersFunctionFromRawURL
FromRawURL creates an independent copy of a net/url.URL as *urlbuilder.URL. Unlike direct pointer use, mutations to the returned URL—including path c
common/urlbuilder/url.go:68
↓ 35 callersFunctionMakeMarshaledDataFunc
MakeMarshaledDataFunc constructs a MarshalFromNodeFunc that converts records into ReadResultRow slices. It applies an optional RecordTransformer to ea
common/parse.go:240
↓ 34 callersFunctionBodyBytes
BodyBytes returns a check that expects the request body to match the provided template bytes. If ignore rules are provided, they are applied when com
test/utils/mockutils/mockcond/body.go:35
↓ 34 callersFunctionNewIdField
NewIdField creates an IdFieldQuery for a flat ID field at the root level. This is the common case where the ID is directly accessible as record[field]
common/readhelper/id.go:32
↓ 33 callersMethodFindURLPath
(moduleID common.ModuleID, objectName string)
internal/staticschema/core.go:286
↓ 33 callersMethodSaveSchemas
SaveSchemas is useful method when creating or updating static schema file. Deprecated. Use FlushSchemas. Common URL path stored as a module path will
internal/staticschema/files.go:28
↓ 30 callersMethodClone
()
common/printable.go:290
↓ 30 callersFunctionFromMap
FromMap converts golang map into Map resolving generic types on its own. Example: Given: dictionary = make(map[string]string) Then statements are
internal/datautils/maps.go:23
↓ 30 callersFunctionRecordDataToMap
RecordDataToMap converts WriteParams.RecordData into a map[string]any. When possible use WriteParams.GetRecord instead. If RecordData is already a m
common/types.go:308
↓ 30 callersMethodSetUnitTestBaseURL
SetUnitTestBaseURL should be used for setting up unit tests. To better handle diverse Module vs Provider BaseURLs use SetUnitTestMockServerBaseURL. De
internal/components/transport.go:59
↓ 29 callersFunctionQueryParamsMissing
(keys ...string)
test/utils/mockutils/mockcond/queries.go:16
↓ 29 callersMethodText
Text provides inner text of this node.
common/xquery/queries.go:108
↓ 29 callersFunctionconstructTestConnector
(serverURL string)
providers/salesforce/read_test.go:562
↓ 28 callersMethodValue
()
common/scanning/readers.go:13
↓ 27 callersMethodBuild
(t *testing.T, testCaseName string)
test/utils/testconn/connector.go:18
↓ 27 callersFunctionCapitalizeFirstLetterEveryWord
CapitalizeFirstLetterEveryWord makes all words start with capital except some prepositions.
tools/fileconv/api3/parameters.go:63
↓ 27 callersMethodFields
()
providers/dynamicsbusiness/responses.go:69
↓ 27 callersMethodHTTPClient
()
providers/pipedrive/client.go:10
↓ 27 callersMethodHTTPClient
()
providers/stripe/client.go:12
↓ 27 callersMethodJSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client.
providers/kit/client.go:6
↓ 27 callersMethodLookupURLPath
LookupURLPath will give you the URL path for the object located under the module. NOTE: empty module id is treated as root module. Deprecated. Use Fi
internal/staticschema/core.go:274
↓ 27 callersMethodObjectNames
ObjectNames provides a registry of object names grouped by module.
internal/staticschema/core.go:249
↓ 27 callersMethodRun
Run provides a procedure to test connectors.ObjectMetadataConnector
providers/microsoft/internal/batch/operation_test.go:111
↓ 25 callersMethodDo
(req *http.Request)
common/auth.go:21
↓ 25 callersMethodIsUpdate
IsUpdate reports whether the write operation is an update rather than a Create. Write is considered an update when a non-empty RecordId is provided.
common/types.go:289
↓ 24 callersMethodAddFieldMetadata
AddFieldMetadata updates Fields and FieldsMap fields ensuring data consistency.
common/types.go:726
↓ 24 callersMethodHTTPClient
()
providers/gong/client.go:10
↓ 24 callersMethodSelect
(objectNames []string)
providers/salesforce/internal/pardot/metadata.go:55
↓ 23 callersFunctionCapitalizeFirstLetter
(text string)
common/naming/formatting.go:25
↓ 23 callersFunctionCheckOutputWithError
CheckOutputWithError verifies both output values and returned errors produced by a test case. Special handling: - If expectedErr is nil, any actual e
test/utils/testutils/checks.go:50
↓ 23 callersFunctionCustomMappingObjectCheck
CustomMappingObjectCheck builds ObjectArrayLocator using mapping, which knows exceptions and patterns to determine response field name. Ex: CustomM
tools/fileconv/api3/parameters.go:51
↓ 23 callersMethodGetJSONReader
(filepath string)
common/scanning/credscanning/fields.go:133
↓ 23 callersMethodIntegerWithDefault
(key string, defaultValue int64)
internal/jsonquery/defaults.go:8
↓ 23 callersFunctionMakeRecordsFunc
MakeRecordsFunc returns a function that extracts an array of record nodes from a JSON document. The jsonPath defines where the records array resides.
common/parse.go:292
↓ 23 callersMethodMerge
Merge combines another CompareResult into the receiver. Updates OK status (true only if both were true) and concatenates all Diff messages. Ignores n
test/utils/testutils/comparison.go:179
↓ 23 callersMethodString
String adds a string value to the hash. The string is written as UTF-8 bytes.
memstore/hashing.go:51
↓ 23 callersMethodgetRestApiURL
(paths ...string)
providers/salesforce/connector.go:184
↓ 22 callersMethodAddOne
AddOne will add single value to the unique set.
internal/datautils/set.go:39
↓ 22 callersMethodApplyToRequest
(req *http.Request)
common/http.go:44
↓ 22 callersFunctionContentMIME
ContentMIME is a setup handler, which configures custom media type.
test/utils/mockutils/mockserver/handlers.go:34
↓ 22 callersMethodError
()
providers/salesforce/internal/crm/core/errors.go:90
↓ 22 callersFunctionExtractOptionalRecordsFromPath
(jsonPath string, nestedPath ...string)
common/parse.go:302
↓ 22 callersMethodGetFirstQueryParam
(name string)
common/urlbuilder/url.go:109
↓ 22 callersMethodHTTPClient
()
providers/closecrm/client.go:10
↓ 22 callersMethodHTTPClient
()
providers/attio/client.go:10
↓ 22 callersMethodHashable
Hashable adds a hashable type to the hash computation. Nil values are represented as byte 0, non-nil values as byte 1 followed by the result of callin
memstore/hashing.go:198
↓ 22 callersFunctionMakeIdentityFilterFunc
MakeIdentityFilterFunc returns a RecordsFilterFunc that allows all records to pass through unchanged. It delegates pagination control entirely to the
common/readhelper/filter.go:129
↓ 22 callersFunctionNewHTTPError
NewHTTPError creates a new error with the given HTTP status.
common/types.go:569
↓ 22 callersFunctionPageSizeWithDefaultStr
PageSizeWithDefaultStr returns the user-specified page size from params, converted to a string. If params.PageSize is empty value, defaultPageSize is
common/readhelper/page-size.go:11
↓ 22 callersMethodRead
Read retrieves records for an object with pagination and filtering. nolint:cyclop,funlen,gocognit // Complexity from pagination, filtering, field sel
memstore/connector.go:147
↓ 22 callersMethodSuccess
Success fulfills the promise with a successful value. Use this when the async computation succeeded and you have a value to provide. Example: fut,
internal/future/promise.go:100
↓ 22 callersMethodwrite
write writes bytes to the hash and accumulates any errors. Errors are rare with standard hash implementations but are tracked for completeness.
memstore/hashing.go:240
↓ 21 callersMethodClose
()
test/utils/testconn/outline.go:55
↓ 21 callersMethodGetPostAuthInfo
(ctx context.Context)
test/utils/testconn/connector.go:29
↓ 21 callersFunctionMakeTimeFilterFunc
MakeTimeFilterFunc returns a RecordsFilterFunc that filters records based on timestamp boundaries. It uses the provided TimeOrder to determine whether
common/readhelper/filter.go:151
↓ 21 callersFunctionNewAPIKeyClient
( ctx context.Context, reader *credscanning.ProviderCredentials, provider providers.Provider, )
test/utils/creds.go:70
↓ 21 callersFunctionNewTimeBoundary
NewTimeBoundary constructs a TimeBoundary using the provided options. By default, both Since and Until are inclusive. Examples: b := NewTimeBounda
common/readhelper/time.go:51
↓ 21 callersFunctionParseResultFiltered
ParseResultFiltered parses the response from a provider into a ReadResult. A 2xx return type is assumed. The sizeFunc returns the total number of reco
common/parse.go:123
↓ 21 callersMethodProvider
Provider returns the connector provider.
connectors.go:26
↓ 20 callersMethodKeys
()
internal/datautils/maps.go:66
↓ 20 callersMethodMustString
(credKey string)
common/scanning/registry.go:203
↓ 20 callersMethodWithOauthClient
WithOauthClient option that sets up client that utilises Oauth2 authentication.
common/paramsbuilder/client.go:19
↓ 20 callersFunctionbail
(label string, err error)
test/gusto/write/main.go:479
↓ 19 callersMethodHTTPClient
()
providers/freshdesk/client.go:10
↓ 19 callersFunctionNewOauth2Client
( ctx context.Context, reader *credscanning.ProviderCredentials, configProvider func(*credscanning.Provider
test/utils/creds.go:40
↓ 19 callersFunctionNewObjectMetadata
NewObjectMetadata constructs ObjectMetadata. This will automatically infer fields map from field metadata map. This construct exists for such convenie
common/types.go:717
↓ 19 callersFunctionWithArrayItemAutoSelection
WithArrayItemAutoSelection enables automatic selection of the array field in API responses if it is the only array type present. Default: Disabled. U
tools/fileconv/api3/parameters.go:236
← previousnext →101–200 of 8,532, ranked by callers