Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var TaskGraphMetadataContextKey = typedmap.NewTypedKey[TaskGraphMetadata]("khi.google.com/task-graph-metadata")
TaskGraphMetadataContextKey is the key to get the TaskGraphMetadata.
var TaskImplementationIDContextKey = typedmap.NewTypedKey[taskid.UntypedTaskImplementationID]("khi.google.com/task-implementation-id")
TaskImplementationIDContextKey is the key to get the current task implementation ID.
var TaskResultMapContextKey = typedmap.NewTypedKey[*typedmap.TypedMap]("khi.google.com/task-result-map")
TaskResultMapContextKey is the key to get the result of each task run before.
Functions ¶
This section is empty.
Types ¶
type TaskGraphMetadata ¶ added in v0.59.0
type TaskGraphMetadata interface {
// IsBound returns true if the task reference was bound to the graph.
IsBound(referenceID string) bool
// BoundReferenceIDsForTaskImplWithTag returns the list of task reference IDs providing the tag bound specifically to the given task implementation ID.
BoundReferenceIDsForTaskImplWithTag(taskImplementationID string, tag string) []string
}
TaskGraphMetadata provides information about the resolved task graph.