mirror of
https://github.com/rancher/steve.git
synced 2025-07-05 02:56:35 +00:00
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
|
||
|
}
|