44package inventory
55
66import (
7- "k8s.io/cli-runtime /pkg/resource "
7+ "k8s.io/apimachinery /pkg/apis/meta/v1/unstructured "
88 "sigs.k8s.io/cli-utils/pkg/common"
99 "sigs.k8s.io/cli-utils/pkg/object"
1010)
@@ -26,7 +26,7 @@ func NewFakeInventoryClient(initObjs []object.ObjMetadata) *FakeInventoryClient
2626}
2727
2828// GetClusterObjs returns currently stored set of objects.
29- func (fic * FakeInventoryClient ) GetClusterObjs (inv * resource. Info ) ([]object.ObjMetadata , error ) {
29+ func (fic * FakeInventoryClient ) GetClusterObjs (inv * unstructured. Unstructured ) ([]object.ObjMetadata , error ) {
3030 if fic .Err != nil {
3131 return []object.ObjMetadata {}, fic .Err
3232 }
@@ -36,7 +36,7 @@ func (fic *FakeInventoryClient) GetClusterObjs(inv *resource.Info) ([]object.Obj
3636// Merge stores the passed objects with the current stored cluster inventory
3737// objects. Returns the set difference of the current set of objects minus
3838// the passed set of objects, or an error if one is set up.
39- func (fic * FakeInventoryClient ) Merge (inv * resource. Info , objs []object.ObjMetadata ) ([]object.ObjMetadata , error ) {
39+ func (fic * FakeInventoryClient ) Merge (inv * unstructured. Unstructured , objs []object.ObjMetadata ) ([]object.ObjMetadata , error ) {
4040 if fic .Err != nil {
4141 return []object.ObjMetadata {}, fic .Err
4242 }
@@ -47,7 +47,7 @@ func (fic *FakeInventoryClient) Merge(inv *resource.Info, objs []object.ObjMetad
4747
4848// Replace the stored cluster inventory objs with the passed obj, or an
4949// error if one is set up.
50- func (fic * FakeInventoryClient ) Replace (inv * resource. Info , objs []object.ObjMetadata ) error {
50+ func (fic * FakeInventoryClient ) Replace (inv * unstructured. Unstructured , objs []object.ObjMetadata ) error {
5151 if fic .Err != nil {
5252 return fic .Err
5353 }
@@ -56,7 +56,7 @@ func (fic *FakeInventoryClient) Replace(inv *resource.Info, objs []object.ObjMet
5656}
5757
5858// DeleteInventoryObj returns an error if one is forced; does nothing otherwise.
59- func (fic * FakeInventoryClient ) DeleteInventoryObj (inv * resource. Info ) error {
59+ func (fic * FakeInventoryClient ) DeleteInventoryObj (inv * unstructured. Unstructured ) error {
6060 if fic .Err != nil {
6161 return fic .Err
6262 }
@@ -65,7 +65,7 @@ func (fic *FakeInventoryClient) DeleteInventoryObj(inv *resource.Info) error {
6565
6666func (fic * FakeInventoryClient ) SetDryRunStrategy (drs common.DryRunStrategy ) {}
6767
68- func (fic * FakeInventoryClient ) ApplyInventoryNamespace (info * resource. Info ) error {
68+ func (fic * FakeInventoryClient ) ApplyInventoryNamespace (inv * unstructured. Unstructured ) error {
6969 if fic .Err != nil {
7070 return fic .Err
7171 }
0 commit comments