1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-10 10:41:37 +00:00
steve/pkg/resources/virtual/common/testutil.go

17 lines
449 B
Go
Raw Normal View History

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
}