Documentation ¶
Overview ¶
Package protoless provides some helpers for comparing specific proto objects. It is a bridge between needing more complex sorting (not just on top-level proto keys, like apiServer.sort) and pushing queries into Bun (which takes more work).
Index ¶
- func CheckpointMetricNameLess(ai, aj *checkpointv1.Checkpoint, metricName string) bool
- func CheckpointReportTimeLess(a, b *checkpointv1.Checkpoint) bool
- func CheckpointSearcherMetricLess(ai, aj *checkpointv1.Checkpoint) bool
- func CheckpointSearcherMetricNullsLast(ai, aj *checkpointv1.Checkpoint) (order bool, done bool)
- func CheckpointStepsCompletedLess(a, b *checkpointv1.Checkpoint) bool
- func CheckpointTrialIDLess(ai, aj *checkpointv1.Checkpoint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointMetricNameLess ¶
func CheckpointMetricNameLess(ai, aj *checkpointv1.Checkpoint, metricName string) bool
CheckpointMetricNameLess compares checkpoints by a metric name, falling back to report time when equal. Order makes sure nulls are always last.
func CheckpointReportTimeLess ¶
func CheckpointReportTimeLess(a, b *checkpointv1.Checkpoint) bool
CheckpointReportTimeLess compares checkpoints by their report time.
func CheckpointSearcherMetricLess ¶
func CheckpointSearcherMetricLess(ai, aj *checkpointv1.Checkpoint) bool
CheckpointSearcherMetricLess compares checkpoints by their searcher metric, falling back to report time when equal. Order makes sure nulls are always last.
func CheckpointSearcherMetricNullsLast ¶
func CheckpointSearcherMetricNullsLast(ai, aj *checkpointv1.Checkpoint) (order bool, done bool)
CheckpointSearcherMetricNullsLast compares checkpoints by their searcher metric, return done if one was null and the proper ordering.
func CheckpointStepsCompletedLess ¶
func CheckpointStepsCompletedLess(a, b *checkpointv1.Checkpoint) bool
CheckpointStepsCompletedLess compares checkpoints by their number of steps completed, falling back to report time when equal.
func CheckpointTrialIDLess ¶
func CheckpointTrialIDLess(ai, aj *checkpointv1.Checkpoint) bool
CheckpointTrialIDLess compares checkpoints by their ID, falling back to report time when equal.
Types ¶
This section is empty.