Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorApiResponse ¶
type ErrorApiResponse struct {
ErrMessage string `json:"errorMessage"`
Data []ErrorDetails `json:"data"`
}
type ErrorDetails ¶
type ErrorDetails struct {
Container string `json:"container"`
Timestamp int64 `json:"timestamp"`
Code string `json:"code"`
Message string `json:"message"`
Details string `json:"details"`
}
ErrorDetails is used to provide information for a container error including timestamp, error code, message and details
type PipelineRuntimeCache ¶
type PipelineRuntimeCache interface {
// StartCacheRefresher starts the cache refresher to update the local cache with the runtime errors.
StartCacheRefresher(ctx context.Context) error
// GetLocalCache returns the local cache of runtime errors for each vertex.
GetLocalCache() map[string][]ReplicaErrors
}
PipelineRuntimeCache is an interface for caching and retrieving the runtime information.
func NewRuntime ¶
func NewRuntime(ctx context.Context, pl *v1alpha1.Pipeline) PipelineRuntimeCache
type PodTracker ¶
type PodTracker struct {
// contains filtered or unexported fields
}
PodTracker tracks the active pods for each vertex in a pipeline.
func NewPodTracker ¶
func NewPodTracker(ctx context.Context, pl *v1alpha1.Pipeline) *PodTracker
NewPodTracker creates a new pod tracker instance.
func (*PodTracker) GetActivePodsCountForVertex ¶
func (pt *PodTracker) GetActivePodsCountForVertex(vertexName string) int
GetActivePodsCountForVertex returns the number of active pods for a vertex
type ReplicaErrors ¶
type ReplicaErrors struct {
Replica string `json:"replica"`
ContainerErrors []ErrorDetails `json:"containerErrors"`
}
ReplicaErrors is used to provide all the container errors for a replica
Click to show internal directories.
Click to hide internal directories.