MCPcopy Index your code

hub / github.com/direktiv/direktiv / functions

Functions2,579 in github.com/direktiv/direktiv

↓ 241 callersMethodError
()
pkg/datastore/mirrors.go:30
↓ 204 callersMethodget
(w http.ResponseWriter, r *http.Request)
pkg/api/variables.go:32
↓ 195 callersMethodError
()
pkg/flow/errors/notFound.go:15
↓ 166 callersMethodString
()
pkg/model/enums.go:118
↓ 145 callersFunctiontwMergeClsx
(...inputs: ClassValue[])
ui/src/util/helpers.ts:22
↓ 136 callersMethodContext
()
pkg/core/circuit.go:49
↓ 118 callersMethodGet
Get gets a single namespace secret from the store. if no record found, it returns ErrNotFound error.
pkg/datastore/secrets.go:24
↓ 94 callersFunctionretry10
(description, handler)
tests/common/retry.js:41
↓ 93 callersMethodInfo
()
pkg/flow/states/instance.go:41
↓ 88 callersMethodDataStore
()
pkg/database/database.go:49
↓ 79 callersMethodSet
Set either creates (if not exists) a secret or updates the existing one. Param name should be unique.
pkg/datastore/secrets.go:27
↓ 71 callersFunctionuseNamespace
()
ui/src/util/store/namespace.ts:29
↓ 69 callersFunctioncreateFile
({ name, yaml, namespace, type, path = "/", }: { name: string; yaml: string; namespace: string
ui/e2e/utils/files.ts:8
↓ 68 callersFunctionwriteInternalError
(w http.ResponseWriter, err error)
pkg/api/errors.go:65
↓ 65 callersMethodAdd
(key string, value string)
pkg/gateway/plugins/inbound/js-inbound.go:49
↓ 62 callersFunctionuseApiKey
()
ui/src/util/store/apiKey.ts:30
↓ 60 callersFunctionapiFactory
({ url, method, schema, responseParser = defaultResponseParser, }: FactoryParams<TUrlParams,
ui/src/api/apiFactory.ts:81
↓ 56 callersFunctionwriteError
(w http.ResponseWriter, err *Error)
pkg/api/errors.go:21
↓ 52 callersMethodRuntimeVariables
()
pkg/datastore/datastore.go:22
↓ 51 callersFunctiontoast
({ ...props }: Toast)
ui/src/design/Toast/index.tsx:263
↓ 49 callersMethodRun
(ctx context.Context, wakedata []byte)
pkg/flow/states/logic.go:47
↓ 48 callersMethodError
()
pkg/sidecar/types.go:32
↓ 48 callersMethodFileStore
()
pkg/mirror/callbacks.go:18
↓ 46 callersMethodRollback
()
pkg/database/database.go:61
↓ 45 callersMethodClose
()
pkg/flow/timers.go:52
↓ 45 callersFunctionLogInstanceError
(ctx context.Context, msg string, err error)
pkg/telemetry/logs.go:118
↓ 44 callersMethodLog
(ctx context.Context, level log.Level, a string, x ...interface{})
pkg/flow/states/instance.go:26
↓ 44 callersMethodupdate
(w http.ResponseWriter, r *http.Request)
pkg/api/variables.go:195
↓ 42 callersFunctionLogInstance
(ctx context.Context, level LogLevel, msg string)
pkg/telemetry/logs.go:114
↓ 40 callersFunctiondeleteNamespace
(namespace: string)
ui/e2e/utils/namespace.ts:25
↓ 39 callersFunctioncreateNamespace
(name: string = createNamespaceName())
ui/e2e/utils/namespace.ts:10
↓ 38 callersMethodErrorDefinitions
()
pkg/model/state-common.go:59
↓ 35 callersFunctionextractContextNamespace
(r *http.Request)
pkg/api/api.go:278
↓ 35 callersFunctionwriteJSON
(w http.ResponseWriter, v any)
pkg/api/api.go:246
↓ 34 callersMethodValidate
()
pkg/model/state-common.go:58
↓ 33 callersFunctioncreateInstance
({ namespace, path, payload, }: { namespace: string; path: string; payload?: string; })
ui/e2e/instances/utils/index.ts:4
↓ 32 callersMethodID
()
pkg/flow/memory.go:111
↓ 32 callersFunctionLogActivity
(level LogLevel, namespace, pid, msg string)
pkg/telemetry/logs.go:78
↓ 31 callersFunctionwriteDataStoreError
(w http.ResponseWriter, err error)
pkg/api/errors.go:99
↓ 30 callersMethodBeginTx
(ctx context.Context, opts ...*sql.TxOptions)
pkg/database/database.go:65
↓ 30 callersMethodall
(w http.ResponseWriter, r *http.Request)
pkg/api/services.go:25
↓ 30 callersFunctionuseToast
()
ui/src/design/Toast/index.tsx:292
↓ 28 callersFunctionuseMutationWithPermissions
( useMutationParams: UseMutationParam<TData, TError, TVariables> )
ui/src/api/useMutationWithPermissions.ts:19
↓ 26 callersMethodInstanceStore
()
pkg/database/database.go:53
↓ 26 callersFunctiononChange
(instance)
ui/src/components/Logs/useLogVirtualizer.ts:54
↓ 25 callersMethodForRootID
ForRootID returns a query object to do further queries on root.
pkg/filestore/filestore.go:43
↓ 24 callersMethodDelete
Delete deletes the file (or the directory).
pkg/filestore/file.go:81
↓ 24 callersMethodType
()
pkg/core/gateway.go:54
↓ 24 callersFunctionuseTheme
()
ui/src/util/store/theme.ts:37
↓ 23 callersMethodCommit
(ctx context.Context)
pkg/database/database.go:57
↓ 23 callersMethodCreate
Create creates a new namespace. Returned errors could be ErrDuplicatedNamespaceName when namespace name is already exists or ErrInvalidNamespaceName o
pkg/datastore/namespaces.go:44
↓ 23 callersMethodSecrets
()
pkg/datastore/datastore.go:19
↓ 23 callersFunctiondescribePagination
({ totalPages, currentPage: current, neighbours = 1, }: { totalPages: number; currentPage: number;
ui/src/components/Pagination/describePagination.ts:29
↓ 22 callersMethodForInstanceID
ForInstanceID creates an InstanceDataQuery object, from which queries related to a specific instance can be created.
pkg/instancestore/instance.go:241
↓ 22 callersMethodNamespaces
()
pkg/datastore/datastore.go:14
↓ 22 callersFunctionNewTestDBWithNamespace
nolint:usetesting
pkg/database/database.go:136
↓ 22 callersMethodparse
()
pkg/mirror/parser.go:84
↓ 21 callersMethodContext
(ctx context.Context)
pkg/flow/memory.go:367
↓ 21 callersFunctionforceLeadingSlash
(path?: string)
ui/src/api/files/utils.ts:46
↓ 20 callersMethodNamespace
()
pkg/flow/memory.go:40
↓ 20 callersMethodProcessEvents
( ctx context.Context, // The context for the event processing operation TODO: document tracing requirements
pkg/events/process.go:20
↓ 20 callersMethodScan
(src any)
pkg/instancestore/instance.go:52
↓ 20 callersMethodSleep
(ctx context.Context, d time.Duration, x interface{})
pkg/flow/states/instance.go:24
↓ 20 callersMethodString
()
pkg/datastore/eventsstore.go:86
↓ 20 callersFunctionhandleSubmit
(item: PatchSchemaType)
ui/src/pages/namespace/Explorer/Service/ServiceEditor/Form/Patches/index.tsx:41
↓ 20 callersFunctionjqOne
(input interface{}, command interface{})
pkg/flow/states/helpers.go:37
↓ 20 callersFunctionuseQueryWithPermissions
( useQueryParams: UseQueryParam<TQueryFnData, TError, TData, TQueryKey> )
ui/src/api/useQueryWithPermissions.ts:46
↓ 20 callersFunctionwaitForTrigger
(t *testing.T, c chan triggerMock)
pkg/events/process_test.go:594
↓ 19 callersMethodMirror
Mirror returns datastore.MirrorStore, is responsible for reading and writing mirrors information.
pkg/datastore/datastore.go:17
↓ 19 callersMethodcommonValidate
()
pkg/model/state-common.go:133
↓ 18 callersMethodGetInstanceData
()
pkg/flow/states/instance.go:16
↓ 18 callersFunctiongetFilenameFromPath
(path: string)
ui/src/api/files/utils.ts:13
↓ 18 callersFunctionnewTesterInstance
()
pkg/flow/states/instance_test.go:31
↓ 17 callersMethodCrashInstance
(ctx context.Context, im *instanceMemory, err error)
pkg/flow/engine.go:454
↓ 17 callersMethodGetFile
GetFile grabs a file from the root.
pkg/filestore/filestore.go:68
↓ 17 callersMethodLogf
Logf logs a formatted message, appending a newline, and writes it to the configured writers.
pkg/cmdserver/pkg/server/logging.go:64
↓ 17 callersFunctionWriteInternalError
WriteInternalError writes error gateway response.
pkg/gateway/plugins.go:71
↓ 17 callersMethodbeginSQLTx
(ctx context.Context, opts ...*sql.TxOptions)
pkg/flow/server.go:402
↓ 17 callersFunctionjsonToYaml
(json: Record<string, unknown>)
ui/src/pages/namespace/Explorer/utils.ts:8
↓ 16 callersMethodAppend
Append adds a new traces to the store.
pkg/datastore/traces.go:21
↓ 16 callersMethodDone
()
pkg/core/circuit.go:45
↓ 16 callersMethodForFile
ForFile returns a query object to do further queries on that file.
pkg/filestore/filestore.go:49
↓ 16 callersFunctionanalyzePath
(path?: string)
ui/src/util/router/utils.ts:1
↓ 16 callersFunctionretry50
(description, handler)
tests/common/retry.js:45
↓ 16 callersFunctionuseUpdatedAt
( date: moment.MomentInput, fallbackForInvalidDates = "-" )
ui/src/hooks/useUpdatedAt.ts:11
↓ 15 callersMethodForNamespace
ForNamespace returns a query object to do further queries on root.
pkg/filestore/filestore.go:46
↓ 15 callersMethodStart
Start lunches a goroutine and tracking it via a sync.WaitGroup. It enables simplified api to lunch graceful go routines.
pkg/core/circuit.go:20
↓ 15 callersFunctionaddYamlFileExtension
(name: string)
ui/src/pages/namespace/Explorer/Tree/utils.ts:6
↓ 15 callersMethoddelete
(w http.ResponseWriter, r *http.Request)
pkg/api/filesystem.go:130
↓ 15 callersFunctionnewEventWithMeta
(subj, t string, id uuid.UUID, context map[string]any)
pkg/events/process_test.go:611
↓ 15 callersFunctionuseFile
({ path, enabled = true, namespace: givenNamespace, }: { path?: string; enabled?: boolean; namespa
ui/src/api/files/query/file.ts:39
↓ 14 callersMethodGetID
()
pkg/service/client.go:24
↓ 14 callersFunctionRegisterState
(st model.StateType, initializer func(instance Instance, state model.State) (Logic, error))
pkg/flow/states/logic.go:13
↓ 14 callersMethodWrite
Write writes the provided byte slice to the configured writers.
pkg/cmdserver/pkg/server/logging.go:76
↓ 14 callersMethoddt
()
pkg/flow/states/instance_test.go:43
↓ 14 callersFunctionprettifyJsonString
(jsonString: string)
ui/src/util/helpers.ts:76
↓ 14 callersFunctionwaitForSuccessToast
(page: Page)
ui/e2e/explorer/workflow/utils.ts:3
↓ 13 callersMethodEventListener
()
pkg/datastore/datastore.go:25
↓ 13 callersMethodGetByID
GetByID gets a single namespace object from store. if no record found, it returns datastore.ErrNotFound error.
pkg/datastore/namespaces.go:29
↓ 13 callersMethodSetMemory
(ctx context.Context, x interface{})
pkg/flow/states/instance.go:21
next →1–100 of 2,579, ranked by callers