Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/direktiv/direktiv
/ functions
Functions
2,579 in github.com/direktiv/direktiv
⨍
Functions
2,579
◇
Types & classes
414
↓ 241 callers
Method
Error
()
pkg/datastore/mirrors.go:30
↓ 204 callers
Method
get
(w http.ResponseWriter, r *http.Request)
pkg/api/variables.go:32
↓ 195 callers
Method
Error
()
pkg/flow/errors/notFound.go:15
↓ 166 callers
Method
String
()
pkg/model/enums.go:118
↓ 145 callers
Function
twMergeClsx
(...inputs: ClassValue[])
ui/src/util/helpers.ts:22
↓ 136 callers
Method
Context
()
pkg/core/circuit.go:49
↓ 118 callers
Method
Get
Get gets a single namespace secret from the store. if no record found, it returns ErrNotFound error.
pkg/datastore/secrets.go:24
↓ 94 callers
Function
retry10
(description, handler)
tests/common/retry.js:41
↓ 93 callers
Method
Info
()
pkg/flow/states/instance.go:41
↓ 88 callers
Method
DataStore
()
pkg/database/database.go:49
↓ 79 callers
Method
Set
Set either creates (if not exists) a secret or updates the existing one. Param name should be unique.
pkg/datastore/secrets.go:27
↓ 71 callers
Function
useNamespace
()
ui/src/util/store/namespace.ts:29
↓ 69 callers
Function
createFile
({ name, yaml, namespace, type, path = "/", }: { name: string; yaml: string; namespace: string
ui/e2e/utils/files.ts:8
↓ 68 callers
Function
writeInternalError
(w http.ResponseWriter, err error)
pkg/api/errors.go:65
↓ 65 callers
Method
Add
(key string, value string)
pkg/gateway/plugins/inbound/js-inbound.go:49
↓ 62 callers
Function
useApiKey
()
ui/src/util/store/apiKey.ts:30
↓ 60 callers
Function
apiFactory
({ url, method, schema, responseParser = defaultResponseParser, }: FactoryParams<TUrlParams,
ui/src/api/apiFactory.ts:81
↓ 56 callers
Function
writeError
(w http.ResponseWriter, err *Error)
pkg/api/errors.go:21
↓ 52 callers
Method
RuntimeVariables
()
pkg/datastore/datastore.go:22
↓ 51 callers
Function
toast
({ ...props }: Toast)
ui/src/design/Toast/index.tsx:263
↓ 49 callers
Method
Run
(ctx context.Context, wakedata []byte)
pkg/flow/states/logic.go:47
↓ 48 callers
Method
Error
()
pkg/sidecar/types.go:32
↓ 48 callers
Method
FileStore
()
pkg/mirror/callbacks.go:18
↓ 46 callers
Method
Rollback
()
pkg/database/database.go:61
↓ 45 callers
Method
Close
()
pkg/flow/timers.go:52
↓ 45 callers
Function
LogInstanceError
(ctx context.Context, msg string, err error)
pkg/telemetry/logs.go:118
↓ 44 callers
Method
Log
(ctx context.Context, level log.Level, a string, x ...interface{})
pkg/flow/states/instance.go:26
↓ 44 callers
Method
update
(w http.ResponseWriter, r *http.Request)
pkg/api/variables.go:195
↓ 42 callers
Function
LogInstance
(ctx context.Context, level LogLevel, msg string)
pkg/telemetry/logs.go:114
↓ 40 callers
Function
deleteNamespace
(namespace: string)
ui/e2e/utils/namespace.ts:25
↓ 39 callers
Function
createNamespace
(name: string = createNamespaceName())
ui/e2e/utils/namespace.ts:10
↓ 38 callers
Method
ErrorDefinitions
()
pkg/model/state-common.go:59
↓ 35 callers
Function
extractContextNamespace
(r *http.Request)
pkg/api/api.go:278
↓ 35 callers
Function
writeJSON
(w http.ResponseWriter, v any)
pkg/api/api.go:246
↓ 34 callers
Method
Validate
()
pkg/model/state-common.go:58
↓ 33 callers
Function
createInstance
({ namespace, path, payload, }: { namespace: string; path: string; payload?: string; })
ui/e2e/instances/utils/index.ts:4
↓ 32 callers
Method
ID
()
pkg/flow/memory.go:111
↓ 32 callers
Function
LogActivity
(level LogLevel, namespace, pid, msg string)
pkg/telemetry/logs.go:78
↓ 31 callers
Function
writeDataStoreError
(w http.ResponseWriter, err error)
pkg/api/errors.go:99
↓ 30 callers
Method
BeginTx
(ctx context.Context, opts ...*sql.TxOptions)
pkg/database/database.go:65
↓ 30 callers
Method
all
(w http.ResponseWriter, r *http.Request)
pkg/api/services.go:25
↓ 30 callers
Function
useToast
()
ui/src/design/Toast/index.tsx:292
↓ 28 callers
Function
useMutationWithPermissions
( useMutationParams: UseMutationParam<TData, TError, TVariables> )
ui/src/api/useMutationWithPermissions.ts:19
↓ 26 callers
Method
InstanceStore
()
pkg/database/database.go:53
↓ 26 callers
Function
onChange
(instance)
ui/src/components/Logs/useLogVirtualizer.ts:54
↓ 25 callers
Method
ForRootID
ForRootID returns a query object to do further queries on root.
pkg/filestore/filestore.go:43
↓ 24 callers
Method
Delete
Delete deletes the file (or the directory).
pkg/filestore/file.go:81
↓ 24 callers
Method
Type
()
pkg/core/gateway.go:54
↓ 24 callers
Function
useTheme
()
ui/src/util/store/theme.ts:37
↓ 23 callers
Method
Commit
(ctx context.Context)
pkg/database/database.go:57
↓ 23 callers
Method
Create
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 callers
Method
Secrets
()
pkg/datastore/datastore.go:19
↓ 23 callers
Function
describePagination
({ totalPages, currentPage: current, neighbours = 1, }: { totalPages: number; currentPage: number;
ui/src/components/Pagination/describePagination.ts:29
↓ 22 callers
Method
ForInstanceID
ForInstanceID creates an InstanceDataQuery object, from which queries related to a specific instance can be created.
pkg/instancestore/instance.go:241
↓ 22 callers
Method
Namespaces
()
pkg/datastore/datastore.go:14
↓ 22 callers
Function
NewTestDBWithNamespace
nolint:usetesting
pkg/database/database.go:136
↓ 22 callers
Method
parse
()
pkg/mirror/parser.go:84
↓ 21 callers
Method
Context
(ctx context.Context)
pkg/flow/memory.go:367
↓ 21 callers
Function
forceLeadingSlash
(path?: string)
ui/src/api/files/utils.ts:46
↓ 20 callers
Method
Namespace
()
pkg/flow/memory.go:40
↓ 20 callers
Method
ProcessEvents
( ctx context.Context, // The context for the event processing operation TODO: document tracing requirements
pkg/events/process.go:20
↓ 20 callers
Method
Scan
(src any)
pkg/instancestore/instance.go:52
↓ 20 callers
Method
Sleep
(ctx context.Context, d time.Duration, x interface{})
pkg/flow/states/instance.go:24
↓ 20 callers
Method
String
()
pkg/datastore/eventsstore.go:86
↓ 20 callers
Function
handleSubmit
(item: PatchSchemaType)
ui/src/pages/namespace/Explorer/Service/ServiceEditor/Form/Patches/index.tsx:41
↓ 20 callers
Function
jqOne
(input interface{}, command interface{})
pkg/flow/states/helpers.go:37
↓ 20 callers
Function
useQueryWithPermissions
( useQueryParams: UseQueryParam<TQueryFnData, TError, TData, TQueryKey> )
ui/src/api/useQueryWithPermissions.ts:46
↓ 20 callers
Function
waitForTrigger
(t *testing.T, c chan triggerMock)
pkg/events/process_test.go:594
↓ 19 callers
Method
Mirror
Mirror returns datastore.MirrorStore, is responsible for reading and writing mirrors information.
pkg/datastore/datastore.go:17
↓ 19 callers
Method
commonValidate
()
pkg/model/state-common.go:133
↓ 18 callers
Method
GetInstanceData
()
pkg/flow/states/instance.go:16
↓ 18 callers
Function
getFilenameFromPath
(path: string)
ui/src/api/files/utils.ts:13
↓ 18 callers
Function
newTesterInstance
()
pkg/flow/states/instance_test.go:31
↓ 17 callers
Method
CrashInstance
(ctx context.Context, im *instanceMemory, err error)
pkg/flow/engine.go:454
↓ 17 callers
Method
GetFile
GetFile grabs a file from the root.
pkg/filestore/filestore.go:68
↓ 17 callers
Method
Logf
Logf logs a formatted message, appending a newline, and writes it to the configured writers.
pkg/cmdserver/pkg/server/logging.go:64
↓ 17 callers
Function
WriteInternalError
WriteInternalError writes error gateway response.
pkg/gateway/plugins.go:71
↓ 17 callers
Method
beginSQLTx
(ctx context.Context, opts ...*sql.TxOptions)
pkg/flow/server.go:402
↓ 17 callers
Function
jsonToYaml
(json: Record<string, unknown>)
ui/src/pages/namespace/Explorer/utils.ts:8
↓ 16 callers
Method
Append
Append adds a new traces to the store.
pkg/datastore/traces.go:21
↓ 16 callers
Method
Done
()
pkg/core/circuit.go:45
↓ 16 callers
Method
ForFile
ForFile returns a query object to do further queries on that file.
pkg/filestore/filestore.go:49
↓ 16 callers
Function
analyzePath
(path?: string)
ui/src/util/router/utils.ts:1
↓ 16 callers
Function
retry50
(description, handler)
tests/common/retry.js:45
↓ 16 callers
Function
useUpdatedAt
( date: moment.MomentInput, fallbackForInvalidDates = "-" )
ui/src/hooks/useUpdatedAt.ts:11
↓ 15 callers
Method
ForNamespace
ForNamespace returns a query object to do further queries on root.
pkg/filestore/filestore.go:46
↓ 15 callers
Method
Start
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 callers
Function
addYamlFileExtension
(name: string)
ui/src/pages/namespace/Explorer/Tree/utils.ts:6
↓ 15 callers
Method
delete
(w http.ResponseWriter, r *http.Request)
pkg/api/filesystem.go:130
↓ 15 callers
Function
newEventWithMeta
(subj, t string, id uuid.UUID, context map[string]any)
pkg/events/process_test.go:611
↓ 15 callers
Function
useFile
({ path, enabled = true, namespace: givenNamespace, }: { path?: string; enabled?: boolean; namespa
ui/src/api/files/query/file.ts:39
↓ 14 callers
Method
GetID
()
pkg/service/client.go:24
↓ 14 callers
Function
RegisterState
(st model.StateType, initializer func(instance Instance, state model.State) (Logic, error))
pkg/flow/states/logic.go:13
↓ 14 callers
Method
Write
Write writes the provided byte slice to the configured writers.
pkg/cmdserver/pkg/server/logging.go:76
↓ 14 callers
Method
dt
()
pkg/flow/states/instance_test.go:43
↓ 14 callers
Function
prettifyJsonString
(jsonString: string)
ui/src/util/helpers.ts:76
↓ 14 callers
Function
waitForSuccessToast
(page: Page)
ui/e2e/explorer/workflow/utils.ts:3
↓ 13 callers
Method
EventListener
()
pkg/datastore/datastore.go:25
↓ 13 callers
Method
GetByID
GetByID gets a single namespace object from store. if no record found, it returns datastore.ErrNotFound error.
pkg/datastore/namespaces.go:29
↓ 13 callers
Method
SetMemory
(ctx context.Context, x interface{})
pkg/flow/states/instance.go:21
next →
1–100 of 2,579, ranked by callers