Help us shape the future of Go! Take the 2026 Go Developer Survey

resource

package
v4.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationForPod

func DurationForPod(pod *corev1.Pod) wfv1.ResourcesDuration

func UpdateResourceDurations

func UpdateResourceDurations(ctx context.Context, wf *wfv1.Workflow)

Types

type Summaries

type Summaries map[string]Summary

Summaries is a map of container names to their Summary.

func (Summaries) Duration

func (ss Summaries) Duration() wfv1.ResourcesDuration

type Summary

type Summary struct {
	ResourceList   corev1.ResourceList
	ContainerState corev1.ContainerState
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL