Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/grafana/tanka
/ functions
Functions
2,094 in github.com/grafana/tanka
⨍
Functions
2,094
◇
Types & classes
481
↓ 807 callers
Method
Select
(name string)
dagger/internal/querybuilder/querybuilder.go:56
↓ 716 callers
Method
Arg
(name string, value any)
dagger/internal/querybuilder/querybuilder.go:66
↓ 323 callers
Method
Execute
(ctx context.Context)
dagger/internal/querybuilder/querybuilder.go:175
↓ 314 callers
Method
Bind
(v interface{})
dagger/internal/querybuilder/querybuilder.go:78
↓ 126 callers
Function
selectNode
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 callers
Method
Flags
Flags returns all options apart from Values as their respective `helm template` flag equivalent
pkg/helm/template.go:86
↓ 73 callers
Function
assertNotNil
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 callers
Method
String
()
pkg/helm/spec.go:92
↓ 60 callers
Method
Run
Execute the service function
dagger/internal/dagger/dagger.gen.go:15485
↓ 59 callers
Method
Root
()
dagger/internal/querybuilder/querybuilder.go:40
↓ 55 callers
Function
mkobj
(kind string, name string, ns string)
pkg/process/sort_test.go:132
↓ 44 callers
Method
Metadata
Metadata returns the metadata of this object
pkg/kubernetes/manifest/manifest.go:161
↓ 43 callers
Function
absPath
(t testing.TB, path string)
pkg/jsonnet/find_importers_test.go:360
↓ 37 callers
Method
End
The match's end offset within the matched lines.
dagger/internal/dagger/dagger.gen.go:13994
↓ 36 callers
Method
Name
Name of the loader
pkg/tanka/load.go:197
↓ 36 callers
Method
Start
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 callers
Method
Info
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 callers
Method
Get
Get the specified object(s) from the cluster
pkg/kubernetes/client/client.go:10
↓ 26 callers
Function
m
(apiVersion, kind, name, namespace string)
pkg/kubernetes/diff_test.go:138
↓ 24 callers
Method
Kind
Kind returns the kind of the API object
pkg/kubernetes/manifest/manifest.go:143
↓ 23 callers
Function
callNative
callNative calls a native function used by jsonnet VM.
pkg/jsonnet/native/funcs_test.go:12
↓ 22 callers
Method
String
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 callers
Method
Stat
Return file status
dagger/internal/dagger/dagger.gen.go:7472
↓ 19 callers
Function
New
New creates a new Environment object with internal values already set
pkg/spec/v1alpha1/environment.go:12
↓ 18 callers
Function
Load
Load loads the Environment at `path`. It automatically detects whether to load inline or statically
pkg/tanka/load.go:31
↓ 13 callers
Method
Debug
Whether to start the SDK runtime in debug mode with an interactive terminal.
dagger/internal/dagger/dagger.gen.go:13626
↓ 13 callers
Function
EvaluateFile
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 callers
Function
generateWorkflowArgs
(ctx context.Context)
cmd/tk/args.go:16
↓ 13 callers
Function
testDataDeep
testDataDeep is super deeply nested on multiple levels
pkg/process/data_test.go:64
↓ 12 callers
Method
Add
Add adds every Chart in reqs to the Manifest after validation, and runs Vendor afterwards
pkg/helm/charts.go:231
↓ 12 callers
Method
Error
If the check failed, this is the error
dagger/internal/dagger/dagger.gen.go:1433
↓ 12 callers
Function
FailSpanWithError
(span trace.Span, err error)
internal/telemetry/otel.go:114
↓ 11 callers
Method
Base
()
pkg/process/extract.go:109
↓ 11 callers
Method
Close
Close may run tasks once the client is no longer needed.
pkg/kubernetes/client/client.go:43
↓ 11 callers
Method
Error
()
pkg/tanka/errors.go:14
↓ 11 callers
Method
Namespace
Namespace retrieves a namespace from the cluster
pkg/kubernetes/client/client.go:32
↓ 11 callers
Function
runCmd
(t *testing.T, dir string, cmd string, args ...string)
acceptance-tests/helpers_test.go:12
↓ 10 callers
Function
AttributesFromProto
AttributesFromProto transforms a slice of OTLP attribute key-values into a slice of KeyValues
dagger/internal/telemetry/transform.go:730
↓ 10 callers
Function
ExportEnvironments
(ctx context.Context, envs []*v1alpha1.Environment, to string, opts *ExportEnvOpts)
pkg/tanka/export.go:71
↓ 10 callers
Function
InitChartfile
(path string)
pkg/helm/charts.go:347
↓ 10 callers
Method
MatchString
(string)
pkg/process/filter.go:32
↓ 10 callers
Function
loadFixture
(name string)
pkg/process/data_test.go:18
↓ 9 callers
Function
FindEnvs
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 callers
Method
ctl
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 callers
Function
evalJsonnet
EvalJsonnet evaluates the jsonnet environment at the given file system path
pkg/tanka/evaluators.go:48
↓ 9 callers
Function
jsonnetFlags
(fs *pflag.FlagSet)
cmd/tk/flags.go:65
↓ 9 callers
Function
timeUnixNano
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 callers
Method
Connect
()
pkg/tanka/load.go:230
↓ 8 callers
Method
Diff
Diff takes the desired state and returns the differences from the cluster
pkg/kubernetes/diff.go:16
↓ 8 callers
Function
FindRoot
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 callers
Method
Set
Set allows to set values on an InjectedCode, even when it is nil
pkg/jsonnet/eval.go:26
↓ 8 callers
Method
Value
()
dagger/internal/querybuilder/marshal.go:36
↓ 7 callers
Method
InstrumentationScope
()
dagger/internal/telemetry/transform.go:594
↓ 7 callers
Method
Vendor
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 callers
Function
addCommandsWithLogLevelOption
(rootCmd *cli.Command, cmds ...*cli.Command)
cmd/tk/main.go:92
↓ 7 callers
Function
tryMSISlice
(v *objx.Value, what string)
pkg/kubernetes/client/context.go:189
↓ 6 callers
Method
Annotations
Annotations of the manifest
pkg/kubernetes/manifest/manifest.go:241
↓ 6 callers
Function
Entrypoint
Entrypoint returns the absolute path of the environments entrypoint file (the one passed to jsonnet.EvaluateFile)
pkg/jsonnet/jpath/jpath.go:60
↓ 6 callers
Method
File
Creates a file with the specified contents.
dagger/internal/dagger/dagger.gen.go:12556
↓ 6 callers
Function
FindFiles
FindFiles takes a file / directory and finds all Jsonnet files
pkg/jsonnet/files.go:12
↓ 6 callers
Function
MakeRawVM
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 callers
Function
MustStrExps
(strs ...string)
pkg/process/filter.go:96
↓ 6 callers
Function
StrExps
(strs ...string)
pkg/process/filter.go:74
↓ 6 callers
Method
Write
(p []byte)
pkg/kubernetes/util/diff.go:123
↓ 6 callers
Function
find
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 callers
Function
iterator
(iter attribute.Iterator)
dagger/internal/telemetry/transform.go:158
↓ 6 callers
Function
mkGenerateObj
(kind string, generateName string, ns string)
pkg/process/sort_test.go:147
↓ 6 callers
Function
secret
(name string, data map[string]interface{})
pkg/kubernetes/manifest/manifest_test.go:170
↓ 6 callers
Function
testDataRegular
testDataRegular is a regular output of jsonnet without special things, but it is nested.
pkg/process/data_test.go:38
↓ 6 callers
Function
workflowFlags
(fs *pflag.FlagSet)
cmd/tk/flags.go:26
↓ 5 callers
Method
AddRepos
(repos ...Repo)
pkg/helm/charts.go:273
↓ 5 callers
Function
Colordiff
Colordiff colorizes unified diff output (diff -u -N)
pkg/term/colordiff.go:13
↓ 5 callers
Method
Error
()
pkg/process/filter.go:109
↓ 5 callers
Function
FindBase
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 callers
Method
Labels
Labels of the manifest
pkg/kubernetes/manifest/manifest.go:236
↓ 5 callers
Function
Resolve
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 callers
Method
WithMountedFile
Retrieves this container plus a file mounted at the given path.
dagger/internal/dagger/dagger.gen.go:3316
↓ 5 callers
Method
cmd
cmd returns a prepared exec.Cmd to use the `helm` binary
pkg/helm/helm.go:246
↓ 5 callers
Function
evalSymlinks
evalSymlinks returns the path after following all symlinks. It caches the results to avoid unnecessary work.
pkg/jsonnet/find_importers.go:233
↓ 5 callers
Function
loadChartfile
()
cmd/tk/toolCharts.go:192
↓ 5 callers
Function
testDataFlat
testDataFlat is a flat manifest that does not need reconciliation
pkg/process/data_test.go:43
↓ 4 callers
Function
AttrLoader
(v string)
internal/telemetry/attributes.go:12
↓ 4 callers
Function
AttrPath
(v string)
internal/telemetry/attributes.go:8
↓ 4 callers
Function
DetectLoader
DetectLoader detects whether the environment is inline or static and picks the approriate loader
pkg/tanka/load.go:168
↓ 4 callers
Method
Error
()
pkg/kubernetes/client/diff_test.go:64
↓ 4 callers
Method
ExitCode
()
pkg/kubernetes/client/diff.go:18
↓ 4 callers
Function
Extract
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 callers
Method
Field
Lookup the field at the given path, and return its value.
dagger/internal/dagger/dagger.gen.go:9806
↓ 4 callers
Function
FindImporterForFiles
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 callers
Function
KeyValues
KeyValues transforms a slice of attribute KeyValues into OTLP key-values.
dagger/internal/telemetry/transform.go:433
↓ 4 callers
Method
Kind
The kind of type this is (e.g. primitive, list, object).
dagger/internal/dagger/dagger.gen.go:15044
↓ 4 callers
Method
NameLabel
()
pkg/spec/v1alpha1/environment.go:36
↓ 4 callers
Method
Resource
Resource returns information about the entity that produced the span.
dagger/internal/telemetry/transform.go:604
↓ 4 callers
Function
Sort
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 callers
Method
SpanContext
()
dagger/internal/telemetry/transform.go:533
↓ 4 callers
Function
StaticDiffer
StaticDiffer returns a differ that reports all resources as either created or deleted.
pkg/kubernetes/diff.go:183
↓ 4 callers
Function
Tracer
(name string)
internal/telemetry/otel.go:110
↓ 4 callers
Function
addDiffFlags
(fs *pflag.FlagSet, opts *tanka.DiffBaseOpts)
cmd/tk/flags.go:34
↓ 4 callers
Function
buildEvalScript
buildEvalScript constructs the jsonnet snippet that wraps the user's EvalScript around an `import` of the entrypoint.
pkg/tanka/evaluators.go:26
↓ 4 callers
Function
checkFiles
(t testing.TB, dir string, files []string)
pkg/tanka/export_test.go:241
next →
1–100 of 2,094, ranked by callers