MCPcopy Index your code

hub / github.com/GoogleCloudPlatform/khi / functions

Functions3,847 in github.com/GoogleCloudPlatform/khi

↓ 669 callersMethodRef
Ref returns the typed reference associated with this implementation ID.
pkg/core/task/taskid/taskid.go:76
↓ 463 callersMethodRun
(ctx context.Context)
pkg/core/task/task.go:66
↓ 272 callersMethodset
* Set the value for the parameter with the given id.
web/src/app/dialogs/new-inspection/components/service/parameter-store.ts:61
↓ 270 callersMethodString
String returns the string representation of the reference ID.
pkg/core/task/taskid/taskid.go:40
↓ 235 callersMethodGetPath
GetPath resolves or creates a TimelinePath in the underlying pool.
pkg/model/khifile/v6/timeline_accumulator.go:37
↓ 176 callersMethodAdd
Add a task definition to current TaskSet. Returns an error when duplicated task Id is assigned on the task.
pkg/core/task/taskset.go:68
↓ 156 callersFunctionMustForceConvertSRGBHex
MustForceConvertSRGBHex converts an sRGB hex color string to a Color. Deprecated: The timeline style uses the display-p3 color space. Directly mappin
pkg/model/khifile/v6/style/colorutil.go:33
↓ 143 callersFunctionP
P returns the pointer of given value. This is helper to get the pointer from literal because Go doesn't allow &"foo".
pkg/testutil/util.go:57
↓ 142 callersMethodHasRevision
HasRevision asserts that a matching StagingRevision was staged on the expected path.
pkg/testutil/testchangeset/changeset_asserter.go:106
↓ 141 callersFunctionAssertTimeline
AssertTimeline starts a fluent assertion chain for the given TimelineChangeSet.
pkg/testutil/testchangeset/changeset_asserter.go:82
↓ 135 callersMethodNew
New allocates a fresh uint32 ID in the given namespace. IDs start from 1. Note: This method panics if the namespace is invalid.
pkg/model/khifile/v6/ids.go:58
↓ 126 callersFunctionNewStandardScalarNode
NewStandardScalarNode instantiates the value of StandardScalarNode from the given value.
pkg/common/structured/standard.go:107
↓ 125 callersFunctionWithValue
WithValue returns a new context with the provided value stored under the given key. Warns when nil pointer values are stored as this may be confused w
pkg/common/khictx/khictx.go:45
↓ 117 callersFunctionMustGetValue
MustGetValue retrieves a typed value from the context. Panics if the value doesn't exist or can't be converted to type T.
pkg/common/khictx/khictx.go:55
↓ 112 callersMethodReadStringOrDefault
ReadStringOrDefault retrieves a string value from the specified field path. Returns the provided default value if the field doesn't exist or an error
pkg/common/structured/reader.go:125
↓ 111 callersFunctionNewLogWithFieldSetsForTest
NewLogWithFieldSetsForTest generates an empty Log with given FieldSet. This is for testing purposes to instantiate a log already parsed.
pkg/model/log/log.go:70
↓ 109 callersFunctionGetFieldSet
GetFieldSet returns the read FieldSet associated with the log. It returns an error when the FieldSet wasn't found on the log.
pkg/model/log/log.go:90
↓ 101 callersMethodwithChildren
(children: GraphObject[])
web/src/app/pages/graph/architecture-graph/graph/base/base-containers.ts:523
↓ 85 callersMethodhas
* Checks if a key exists in the cache without updating its recentness. * * @param key - The key to check. * @returns `true` if the key exists, `
web/src/app/common/lru-cache.ts:107
↓ 83 callersMethodwithStyle
(style: ElementStyle)
web/src/app/pages/graph/architecture-graph/graph/base/element.ts:92
↓ 82 callersMethodnext
* Gets the next revision in chronological order on this timeline, or null if this is the latest.
web/src/app/store/domain/timeline.ts:56
↓ 80 callersFunctionSet
Set stores a value. The key's type parameter must match the value's type.
pkg/common/typedmap/typedmap.go:189
↓ 76 callersMethodGetId
()
pkg/generated/khifile/v6/log.pb.go:133
↓ 76 callersMethodHasEvent
HasEvent asserts that an event was staged on the expected path.
pkg/testutil/testchangeset/changeset_asserter.go:88
↓ 76 callersFunctionNewNodeReader
NewNodeReader creates a new NodeReader instance from a given Node.
pkg/common/structured/reader.go:43
↓ 75 callersMethodfind
(id: string)
web/src/app/pages/graph/architecture-graph/graph/graph-root.ts:170
↓ 74 callersMethodDone
Done stops the periodic updates. It returns an error if the updator was not started.
pkg/core/inspection/progressutil/progress_updator.go:72
↓ 73 callersMethodget
* Retrieves the value associated with the specified key. * * If the key exists, the entry is marked as the most recently used (MRU) * by moving
web/src/app/common/lru-cache.ts:54
↓ 72 callersFunctionMustRegisterRevisionState
MustRegisterRevisionState registers a RevisionState, assigns a unique ID to it, and returns the generated pointer.
pkg/model/khifile/v6/style/timeline.go:336
↓ 71 callersMethodAddRevision
AddRevision stages a resource revision on the specified path.
pkg/model/khifile/v6/changeset.go:128
↓ 70 callersMethodReadString
ReadString retrieves a string value from the specified field path. Returns an error if the field doesn't exist or cannot be cast to a string.
pkg/common/structured/reader.go:91
↓ 70 callersMethodReferenceIDString
ReferenceIDString returns the reference ID portion without any implementation hash.
pkg/core/task/taskid/taskid.go:42
↓ 66 callersMethodAddEvent
AddEvent stages a timeline event on the specified path for the log associated with this changeset.
pkg/model/khifile/v6/changeset.go:123
↓ 64 callersMethodType
()
pkg/common/structured/structure.go:37
↓ 63 callersFunctionGet
Get retrieves a value in a type-safe way. Works with both TypedMap and ReadonlyTypedMap.
pkg/common/typedmap/typedmap.go:150
↓ 63 callersMethodUntypedID
()
pkg/core/task/task.go:46
↓ 62 callersFunctionMustGetFieldSet
MustGetFieldSet returns the read FieldSet associated with the log. It will go panic when the FieldSet was not found on the log.
pkg/model/log/log.go:100
↓ 59 callersMethodinitialize
* Initializes the store with the raw logs. * Assumes logs are already sorted by timestamp. * @param logs The iterable of raw logs. * @param c
web/src/app/store/domain/log-store.ts:280
↓ 58 callersFunctionFromYAML
(yamlStr string)
pkg/common/structured/yaml.go:40
↓ 52 callersFunctionMustRegisterTimelineType
MustRegisterTimelineType registers a TimelineType, assigns a unique ID to it, and returns the generated pointer. This allows for global inline initial
pkg/model/khifile/v6/style/timeline.go:208
↓ 52 callersFunctionProject
Project creates a new ResourceContainer for a Google Cloud project with the given project ID.
pkg/api/googlecloud/resourcecontainer.go:50
↓ 51 callersFunctionparseHexColor
(hex: string)
web/src/app/store/mock/mock-util.ts:56
↓ 50 callersMethodgetTimeline
* Retrieves a specific timeline domain adapter by its ID. * @param id The unique timeline identifier. * @returns The readonly domain element ada
web/src/app/store/domain/timeline-store.ts:572
↓ 49 callersMethodChildren
()
pkg/common/structured/structure.go:39
↓ 49 callersMethodcreate
* Creates a new writable LogStore instance.
web/src/app/store/domain/log-store.ts:117
↓ 48 callersMethodcompile
* Compiles the CEL expression and keeps it as internal state. * * @param celExpr - The CEL expression string to compile * @returns success/er
web/src/app/store/domain/filter/cel-env.ts:302
↓ 47 callersMethodaddStrings
* Adds multiple strings to the pool. * @param strings An iterable of objects containing id and value.
web/src/app/store/domain/intern-pool-store.ts:200
↓ 46 callersFunctionNewTypedMap
NewTypedMap creates a new empty TypedMap.
pkg/common/typedmap/typedmap.go:77
↓ 45 callersMethodhdrColorToCSSColor
* Convert HDR RGB color to CSS color string. * @param color HDR RGB color array ([r, g, b, a] or [r, g, b]). All elements must be in [0, 1]. * @
web/src/app/timeline/components/canvas/convertutil.ts:60
↓ 44 callersMethodWait
()
pkg/core/task/interface.go:26
↓ 42 callersFunctionAlphabeticalSortPolicy
AlphabeticalSortPolicy returns a TimelineSortOpt that configures a timeline type to sort its child timelines alphabetically. prioritizedNames is a lis
pkg/model/khifile/v6/style/timeline.go:155
↓ 41 callersMethodResolve
Resolve returns the token newly resolved.
pkg/common/token/resolver.go:24
↓ 41 callersFunctioncreateTestNode
(overrides: Partial<MergeNode>)
web/src/app/shared/components/yaml-viewer/diff-renderer.spec.ts:33
↓ 41 callersMethodevaluate
* Evaluates a raw Log element against the compiled CEL expression. * * @param log - Raw Log element * @returns True if the log passes the fil
web/src/app/store/domain/filter/cel-env.ts:333
↓ 40 callersMethodClose
Close releases any resources (like goroutines from iterators) associated with the generator.
pkg/model/khifile/v6/generator.go:38
↓ 39 callersFunctionString
String is a similar to flag.String but it also parse value from specified environment variable when the parameter was not provided explicitly on comma
pkg/common/flag/flag.go:77
↓ 37 callersFunctionMustRegisterVerb
MustRegisterVerb registers a Verb, assigns a unique ID to it, and returns the generated pointer.
pkg/model/khifile/v6/style/timeline.go:280
↓ 36 callersFunctionAssertLog
AssertLog starts a fluent assertion chain for the given LogChangeSet.
pkg/testutil/testchangeset/changeset_asserter.go:34
↓ 36 callersMethodGet
Get retrieves or creates a multi-level TimelinePath starting from the given parent. If parent is nil, it starts from the root. This method provides a
pkg/model/khifile/v6/timeline_path.go:81
↓ 36 callersMethodHasSummary
HasSummary asserts that the LogChangeSet has the expected summary.
pkg/testutil/testchangeset/changeset_asserter.go:40
↓ 36 callersMethodSerialize
(node Node)
pkg/common/structured/serializer.go:24
↓ 35 callersFunction$label
(txt: string)
web/src/app/pages/graph/architecture-graph/graph/builder-alias.ts:58
↓ 35 callersMethodKind
FieldSetKind identifies the set of fields. It must be same if the result type has same fields.
pkg/model/log/log.go:32
↓ 34 callersMethodGetReader
()
pkg/task/inspection/inspectioncore/contract/result_repository.go:26
↓ 33 callersFunction$rect
()
web/src/app/pages/graph/architecture-graph/graph/builder-alias.ts:85
↓ 33 callersMethodGetBuilder
GetBuilder retrieves the TimelineBuilder associated with the given path. Note: The returned TimelineBuilder is a shared instance. Callers must use its
pkg/model/khifile/v6/timeline_registry.go:51
↓ 32 callersFunctionbuildMergeTree
( left: unknown, right: unknown, delta: Delta | undefined, path: string, key: string, )
web/src/app/shared/components/yaml-viewer/diff-util.ts:132
↓ 32 callersMethodwithMargin
( top: number, right: number, bottom: number, left: number, )
web/src/app/pages/graph/architecture-graph/graph/base/base-containers.ts:547
↓ 31 callersMethodlogs
* Returns an iterator for all logs in the store.
web/src/app/store/domain/log-store.ts:382
↓ 31 callersFunctionnewDebugTask
(id string, dependencies []string, labelOpt ...LabelOpt)
pkg/core/task/taskset_test.go:114
↓ 30 callersMethodforEach
* Iterates over the cache entries. * @param callback - The callback function to execute for each entry.
web/src/app/common/lru-cache.ts:123
↓ 29 callersFunction$empty
()
web/src/app/pages/graph/architecture-graph/graph/builder-alias.ts:81
↓ 29 callersFunctionNewStandardMap
NewStandardMap returns a map node from given key and values with keeping the order of map keys.
pkg/common/structured/standard.go:299
↓ 28 callersFunctionGetValue
GetValue retrieves a typed value from the context. Returns error if the value doesn't exist or can't be converted to type T.
pkg/common/khictx/khictx.go:29
↓ 28 callersMethodReset
Reset clears the internal state when a table ends or a format error occurs.
pkg/core/inspection/logutil/tabulate.go:68
↓ 27 callersFunction$alignedGroup
( direction: Direction, )
web/src/app/pages/graph/architecture-graph/graph/builder-alias.ts:34
↓ 27 callersMethodHasLogType
HasLogType asserts that the LogChangeSet has the expected log type.
pkg/testutil/testchangeset/changeset_asserter.go:58
↓ 27 callersMethodgetLog
* Gets a log entry adapter by its ID. * @param id The ID of the log. * @returns The log entry adapter.
web/src/app/store/domain/log-store.ts:363
↓ 27 callersFunctionrenderNode
( node: MergeNode, indent: number, isArrayElement: boolean, result: YamlLine[], collapsiblePath?: st
web/src/app/shared/components/yaml-viewer/diff-renderer.ts:98
↓ 26 callersMethodBuild
Build writes the accumulated data to the provided io.Writer in KHI v6 format.
pkg/model/khifile/v6/builder.go:58
↓ 25 callersMethodAddPattern
AddPattern adds a pattern to the finder. It returns ErrPatternAlreadyExists if the pattern has already been added.
pkg/common/patternfinder/interface.go:30
↓ 25 callersMethodSet
Set records that the value is associated starting from time t. It preserves chronological order using binary search insertion.
pkg/common/timeseries.go:41
↓ 25 callersMethodSetSeverity
SetSeverity updates the staged severity style.
pkg/model/khifile/v6/changeset.go:84
↓ 25 callersMethodgetAttribute
()
web/src/app/pages/graph/architecture-graph/graph/base/base-containers.ts:478
↓ 24 callersFunctionmatchLogField
( l: CELLog | undefined, pathKey: string, val: string | string[], )
web/src/app/store/domain/filter/cel-functions.ts:91
↓ 24 callersMethodput
* Adds or updates an element with the specified key and value. * * - If the key already exists, its value is updated and it is marked as most recen
web/src/app/common/lru-cache.ts:76
↓ 23 callersMethodLen
()
pkg/common/structured/structure.go:40
↓ 23 callersFunctionNew
New instantiates a new Token without expiration time.
pkg/common/token/token.go:39
↓ 23 callersMethodSetFieldSetReader
SetFieldSetReader reads set of fields with the FieldSetReader and keep it in the log.
pkg/model/log/log.go:79
↓ 23 callersMethodSetSummary
SetSummary updates the staged summary string.
pkg/model/khifile/v6/changeset.go:69
↓ 23 callersFunctionbisectLeft
( arr: readonly T[], target: U, comparator: (item: T, target: U) => number, lo = 0, hi = arr.length,
web/src/app/common/misc-util.ts:57
↓ 22 callersMethodHasTimestamp
HasTimestamp asserts that the LogChangeSet has the expected timestamp.
pkg/testutil/testchangeset/changeset_asserter.go:67
↓ 22 callersFunctionNewLogFromYAMLString
NewLogFromYAMLString instantiates a new Log from the given YAML string.
pkg/model/log/log.go:61
↓ 22 callersMethodwithAnchor
(anchor: Vector2)
web/src/app/pages/graph/architecture-graph/graph/base/base-containers.ts:513
↓ 22 callersMethodwithPivot
(pivot: Vector2)
web/src/app/pages/graph/architecture-graph/graph/base/base-containers.ts:518
↓ 21 callersFunctionGetOrDefault
GetOrDefault retrieves a value or returns the default if not found. Works with both TypedMap and ReadonlyTypedMap.
pkg/common/typedmap/typedmap.go:168
↓ 21 callersMethodStringField
StringField returns the string value of a specific field, or an error if not found or not a string.
pkg/core/inspection/logutil/type.go:81
↓ 21 callersFunctionbodyCompareWithStringExpectedValue
(expected string, options ...cmp.Option)
pkg/server/server_test.go:185
↓ 21 callersMethodsetup
* Called to initialize WebGL resources (shaders, buffers, etc.). * This may be called multiple times if the WebGL context is lost and restored.
web/src/app/timeline/components/canvas/glcontextmanager.ts:44
↓ 20 callersFunctioncreateMockInspectionData
()
web/src/app/store/mock/inspection-data.mock.ts:48
next →1–100 of 3,847, ranked by callers