mirror of
https://github.com/rancher/steve.git
synced 2025-08-08 17:57:21 +00:00
* [v2.9] Backport PR 271: Index more sqlite cache fields. * go mod tidy Signed-off-by: Silvio Moioli <silvio@moioli.net> --------- Signed-off-by: Silvio Moioli <silvio@moioli.net> Co-authored-by: Silvio Moioli <silvio@moioli.net>
17 lines
449 B
Go
17 lines
449 B
Go
package common
|
|
|
|
import (
|
|
"github.com/rancher/steve/pkg/summarycache"
|
|
"github.com/rancher/wrangler/v3/pkg/summary"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
type FakeSummaryCache struct {
|
|
SummarizedObject *summary.SummarizedObject
|
|
Relationships []summarycache.Relationship
|
|
}
|
|
|
|
func (f *FakeSummaryCache) SummaryAndRelationship(runtime.Object) (*summary.SummarizedObject, []summarycache.Relationship) {
|
|
return f.SummarizedObject, f.Relationships
|
|
}
|