From 88fb71b43627bbd9c7f408e901d9ed5e8447a9fb Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 7 Aug 2024 19:03:27 -0600 Subject: [PATCH] Removed storage file --- internal/cache/storage.go | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 internal/cache/storage.go diff --git a/internal/cache/storage.go b/internal/cache/storage.go deleted file mode 100644 index 06b42a9..0000000 --- a/internal/cache/storage.go +++ /dev/null @@ -1,28 +0,0 @@ -package cache - -import "github.com/google/uuid" - -type Storage[T any] interface { - Save(id uuid.UUID, val T, varargs ...T) error - Get(id uuid.UUID) (T, error) - Update(id uuid.UUID, val T) error - Delete(id uuid.UUID) error -} - -type Compute struct{} -type BMC struct{} - -type Node[T any] struct { -} - -type NodeStorage struct { - Storage[Node[Compute]] -} - -type BMCStorage struct { - Storage[Node[BMC]] -} - -func (ns *NodeStorage) Save(id uuid.UUID, val Node[Compute], varargs ...Node[Compute]) { - -}