Removed storage file

This commit is contained in:
David Allen 2024-08-07 19:03:27 -06:00
parent 890e3392ed
commit 88fb71b436
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -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]) {
}