mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Fixed '--subnet' flag not adding hosts to scan
This commit is contained in:
parent
0c30d4dc3a
commit
dd829cd10e
4 changed files with 43 additions and 26 deletions
28
internal/cache/storage.go
vendored
Normal file
28
internal/cache/storage.go
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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]) {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue