Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskDependenciesContextKey = typedmap.NewTypedKey[[]taskid.DependencyDescriptor]("khi.google.com/task-dependencies")
TaskDependenciesContextKey is the key to get the dependencies declared by the running task.
View Source
var TaskGraphMetadataContextKey = typedmap.NewTypedKey[TaskGraphMetadata]("khi.google.com/task-graph-metadata")
TaskGraphMetadataContextKey is the key to get the TaskGraphMetadata.
View Source
var TaskImplementationIDContextKey = typedmap.NewTypedKey[taskid.UntypedTaskImplementationID]("khi.google.com/task-implementation-id")
TaskImplementationIDContextKey is the key to get the current task implementation ID.
View Source
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.
Click to show internal directories.
Click to hide internal directories.