MCPcopy Index your code

hub / github.com/grafana/tanka / functions

Functions2,094 in github.com/grafana/tanka

↓ 807 callersMethodSelect
(name string)
dagger/internal/querybuilder/querybuilder.go:56
↓ 716 callersMethodArg
(name string, value any)
dagger/internal/querybuilder/querybuilder.go:66
↓ 323 callersMethodExecute
(ctx context.Context)
dagger/internal/querybuilder/querybuilder.go:175
↓ 314 callersMethodBind
(v interface{})
dagger/internal/querybuilder/querybuilder.go:78
↓ 126 callersFunctionselectNode
selectNode returns a query selection for node(id:) scoped to the given type via an inline fragment.
dagger/internal/dagger/dagger.gen.go:17390
↓ 85 callersMethodFlags
Flags returns all options apart from Values as their respective `helm template` flag equivalent
pkg/helm/template.go:86
↓ 73 callersFunctionassertNotNil
assertNotNil panic if the given value is nil. This function is used to validate that input with pointer type are not nil. See https://github.com/dagge
dagger/internal/dagger/dagger.gen.go:43
↓ 61 callersMethodString
()
pkg/helm/spec.go:92
↓ 60 callersMethodRun
Execute the service function
dagger/internal/dagger/dagger.gen.go:15485
↓ 59 callersMethodRoot
()
dagger/internal/querybuilder/querybuilder.go:40
↓ 55 callersFunctionmkobj
(kind string, name string, ns string)
pkg/process/sort_test.go:132
↓ 44 callersMethodMetadata
Metadata returns the metadata of this object
pkg/kubernetes/manifest/manifest.go:161
↓ 43 callersFunctionabsPath
(t testing.TB, path string)
pkg/jsonnet/find_importers_test.go:360
↓ 37 callersMethodEnd
The match's end offset within the matched lines.
dagger/internal/dagger/dagger.gen.go:13994
↓ 36 callersMethodName
Name of the loader
pkg/tanka/load.go:197
↓ 36 callersMethodStart
Start the service and wait for its health checks to succeed. Services bound to a Container do not need to be manually started.
dagger/internal/dagger/dagger.gen.go:14361
↓ 28 callersMethodInfo
Info returns known informational data about the client. Best effort based, fields of `Info` that cannot be stocked with valuable data, e.g. due to an
pkg/kubernetes/client/client.go:40
↓ 27 callersMethodGet
Get the specified object(s) from the cluster
pkg/kubernetes/client/client.go:10
↓ 26 callersFunctionm
(apiVersion, kind, name, namespace string)
pkg/kubernetes/diff_test.go:138
↓ 24 callersMethodKind
Kind returns the kind of the API object
pkg/kubernetes/manifest/manifest.go:143
↓ 23 callersFunctioncallNative
callNative calls a native function used by jsonnet VM.
pkg/jsonnet/native/funcs_test.go:12
↓ 22 callersMethodString
String returns the List as a yaml stream. In case of an error, it is returned as a string instead.
pkg/kubernetes/manifest/manifest.go:273
↓ 20 callersMethodStat
Return file status
dagger/internal/dagger/dagger.gen.go:7472
↓ 19 callersFunctionNew
New creates a new Environment object with internal values already set
pkg/spec/v1alpha1/environment.go:12
↓ 18 callersFunctionLoad
Load loads the Environment at `path`. It automatically detects whether to load inline or statically
pkg/tanka/load.go:31
↓ 13 callersMethodDebug
Whether to start the SDK runtime in debug mode with an interactive terminal.
dagger/internal/dagger/dagger.gen.go:13626
↓ 13 callersFunctionEvaluateFile
EvaluateFile evaluates the Jsonnet code in the given file and returns the result in JSON form. It disregards opts.ImportPaths in favor of automaticall
pkg/jsonnet/eval.go:83
↓ 13 callersFunctiongenerateWorkflowArgs
(ctx context.Context)
cmd/tk/args.go:16
↓ 13 callersFunctiontestDataDeep
testDataDeep is super deeply nested on multiple levels
pkg/process/data_test.go:64
↓ 12 callersMethodAdd
Add adds every Chart in reqs to the Manifest after validation, and runs Vendor afterwards
pkg/helm/charts.go:231
↓ 12 callersMethodError
If the check failed, this is the error
dagger/internal/dagger/dagger.gen.go:1433
↓ 12 callersFunctionFailSpanWithError
(span trace.Span, err error)
internal/telemetry/otel.go:114
↓ 11 callersMethodBase
()
pkg/process/extract.go:109
↓ 11 callersMethodClose
Close may run tasks once the client is no longer needed.
pkg/kubernetes/client/client.go:43
↓ 11 callersMethodError
()
pkg/tanka/errors.go:14
↓ 11 callersMethodNamespace
Namespace retrieves a namespace from the cluster
pkg/kubernetes/client/client.go:32
↓ 11 callersFunctionrunCmd
(t *testing.T, dir string, cmd string, args ...string)
acceptance-tests/helpers_test.go:12
↓ 10 callersFunctionAttributesFromProto
AttributesFromProto transforms a slice of OTLP attribute key-values into a slice of KeyValues
dagger/internal/telemetry/transform.go:730
↓ 10 callersFunctionExportEnvironments
(ctx context.Context, envs []*v1alpha1.Environment, to string, opts *ExportEnvOpts)
pkg/tanka/export.go:71
↓ 10 callersFunctionInitChartfile
(path string)
pkg/helm/charts.go:347
↓ 10 callersMethodMatchString
(string)
pkg/process/filter.go:32
↓ 10 callersFunctionloadFixture
(name string)
pkg/process/data_test.go:18
↓ 9 callersFunctionFindEnvs
FindEnvs returns metadata of all environments recursively found in 'path'. Each directory is tested and included if it is a valid environment, either
pkg/tanka/find.go:31
↓ 9 callersMethodctl
ctl returns an `exec.Cmd` for `kubectl`. It also forces the correct context and injects our patched $KUBECONFIG for the default namespace.
pkg/kubernetes/client/exec.go:21
↓ 9 callersFunctionevalJsonnet
EvalJsonnet evaluates the jsonnet environment at the given file system path
pkg/tanka/evaluators.go:48
↓ 9 callersFunctionjsonnetFlags
(fs *pflag.FlagSet)
cmd/tk/flags.go:65
↓ 9 callersFunctiontimeUnixNano
timeUnixNano returns t as a Unix time, the number of nanoseconds elapsed since January 1, 1970 UTC as uint64. The result is undefined if the Unix time
dagger/internal/telemetry/transform.go:1405
↓ 8 callersMethodConnect
()
pkg/tanka/load.go:230
↓ 8 callersMethodDiff
Diff takes the desired state and returns the differences from the cluster
pkg/kubernetes/diff.go:16
↓ 8 callersFunctionFindRoot
FindRoot returns the absolute path of the project root, being the directory that directly holds `tkrc.yaml` if it exists, otherwise the directory that
pkg/jsonnet/jpath/dirs.go:27
↓ 8 callersMethodSet
Set allows to set values on an InjectedCode, even when it is nil
pkg/jsonnet/eval.go:26
↓ 8 callersMethodValue
()
dagger/internal/querybuilder/marshal.go:36
↓ 7 callersMethodInstrumentationScope
()
dagger/internal/telemetry/transform.go:594
↓ 7 callersMethodVendor
Vendor pulls all Charts specified in the manifest into the local charts directory. It fetches the repository index before doing so.
pkg/helm/charts.go:116
↓ 7 callersFunctionaddCommandsWithLogLevelOption
(rootCmd *cli.Command, cmds ...*cli.Command)
cmd/tk/main.go:92
↓ 7 callersFunctiontryMSISlice
(v *objx.Value, what string)
pkg/kubernetes/client/context.go:189
↓ 6 callersMethodAnnotations
Annotations of the manifest
pkg/kubernetes/manifest/manifest.go:241
↓ 6 callersFunctionEntrypoint
Entrypoint returns the absolute path of the environments entrypoint file (the one passed to jsonnet.EvaluateFile)
pkg/jsonnet/jpath/jpath.go:60
↓ 6 callersMethodFile
Creates a file with the specified contents.
dagger/internal/dagger/dagger.gen.go:12556
↓ 6 callersFunctionFindFiles
FindFiles takes a file / directory and finds all Jsonnet files
pkg/jsonnet/files.go:12
↓ 6 callersFunctionMakeRawVM
MakeRawVM returns a Jsonnet VM with some extensions of Tanka, including: - extended importer - extCode and tlaCode applied - native functions register
pkg/jsonnet/implementations/goimpl/vm.go:13
↓ 6 callersFunctionMustStrExps
(strs ...string)
pkg/process/filter.go:96
↓ 6 callersFunctionStrExps
(strs ...string)
pkg/process/filter.go:74
↓ 6 callersMethodWrite
(p []byte)
pkg/kubernetes/util/diff.go:123
↓ 6 callersFunctionfind
find attempts to find an object in list whose prop equals expected. If found, the value is unmarshalled to ptr, otherwise errNotFound is returned.
pkg/kubernetes/client/context.go:210
↓ 6 callersFunctioniterator
(iter attribute.Iterator)
dagger/internal/telemetry/transform.go:158
↓ 6 callersFunctionmkGenerateObj
(kind string, generateName string, ns string)
pkg/process/sort_test.go:147
↓ 6 callersFunctionsecret
(name string, data map[string]interface{})
pkg/kubernetes/manifest/manifest_test.go:170
↓ 6 callersFunctiontestDataRegular
testDataRegular is a regular output of jsonnet without special things, but it is nested.
pkg/process/data_test.go:38
↓ 6 callersFunctionworkflowFlags
(fs *pflag.FlagSet)
cmd/tk/flags.go:26
↓ 5 callersMethodAddRepos
(repos ...Repo)
pkg/helm/charts.go:273
↓ 5 callersFunctionColordiff
Colordiff colorizes unified diff output (diff -u -N)
pkg/term/colordiff.go:13
↓ 5 callersMethodError
()
pkg/process/filter.go:109
↓ 5 callersFunctionFindBase
FindBase returns the absolute path of the environments base directory, the one which directly holds the entrypoint file.
pkg/jsonnet/jpath/dirs.go:58
↓ 5 callersMethodLabels
Labels of the manifest
pkg/kubernetes/manifest/manifest.go:236
↓ 5 callersFunctionResolve
Resolve the given path and resolves the jPath around it. This means it: - figures out the project root (the one with .jsonnetfile, vendor/ and lib/) -
pkg/jsonnet/jpath/jpath.go:17
↓ 5 callersMethodWithMountedFile
Retrieves this container plus a file mounted at the given path.
dagger/internal/dagger/dagger.gen.go:3316
↓ 5 callersMethodcmd
cmd returns a prepared exec.Cmd to use the `helm` binary
pkg/helm/helm.go:246
↓ 5 callersFunctionevalSymlinks
evalSymlinks returns the path after following all symlinks. It caches the results to avoid unnecessary work.
pkg/jsonnet/find_importers.go:233
↓ 5 callersFunctionloadChartfile
()
cmd/tk/toolCharts.go:192
↓ 5 callersFunctiontestDataFlat
testDataFlat is a flat manifest that does not need reconciliation
pkg/process/data_test.go:43
↓ 4 callersFunctionAttrLoader
(v string)
internal/telemetry/attributes.go:12
↓ 4 callersFunctionAttrPath
(v string)
internal/telemetry/attributes.go:8
↓ 4 callersFunctionDetectLoader
DetectLoader detects whether the environment is inline or static and picks the approriate loader
pkg/tanka/load.go:168
↓ 4 callersMethodError
()
pkg/kubernetes/client/diff_test.go:64
↓ 4 callersMethodExitCode
()
pkg/kubernetes/client/diff.go:18
↓ 4 callersFunctionExtract
Extract scans the raw Jsonnet evaluation result (JSON tree) for objects that look like Kubernetes objects and extracts those into a flat map, indexed
pkg/process/extract.go:20
↓ 4 callersMethodField
Lookup the field at the given path, and return its value.
dagger/internal/dagger/dagger.gen.go:9806
↓ 4 callersFunctionFindImporterForFiles
FindImporterForFiles finds the entrypoints (main.jsonnet files) that import the given files. It looks through imports transitively, so if a file is im
pkg/jsonnet/find_importers.go:33
↓ 4 callersFunctionKeyValues
KeyValues transforms a slice of attribute KeyValues into OTLP key-values.
dagger/internal/telemetry/transform.go:433
↓ 4 callersMethodKind
The kind of type this is (e.g. primitive, list, object).
dagger/internal/dagger/dagger.gen.go:15044
↓ 4 callersMethodNameLabel
()
pkg/spec/v1alpha1/environment.go:36
↓ 4 callersMethodResource
Resource returns information about the entity that produced the span.
dagger/internal/telemetry/transform.go:604
↓ 4 callersFunctionSort
Sort orders manifests in a stable order, taking order-dependencies of these into consideration. This is best-effort based: - Use the static kindOrder
pkg/process/sort.go:52
↓ 4 callersMethodSpanContext
()
dagger/internal/telemetry/transform.go:533
↓ 4 callersFunctionStaticDiffer
StaticDiffer returns a differ that reports all resources as either created or deleted.
pkg/kubernetes/diff.go:183
↓ 4 callersFunctionTracer
(name string)
internal/telemetry/otel.go:110
↓ 4 callersFunctionaddDiffFlags
(fs *pflag.FlagSet, opts *tanka.DiffBaseOpts)
cmd/tk/flags.go:34
↓ 4 callersFunctionbuildEvalScript
buildEvalScript constructs the jsonnet snippet that wraps the user's EvalScript around an `import` of the entrypoint.
pkg/tanka/evaluators.go:26
↓ 4 callersFunctioncheckFiles
(t testing.TB, dir string, files []string)
pkg/tanka/export_test.go:241
next →1–100 of 2,094, ranked by callers