MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NewStorageManager

Function NewStorageManager

pkg/api/storage.go:59–66  ·  view source on GitHub ↗

NewStorageManager creates a new storage manager.

()

Source from the content-addressed store, hash-verified

57
58// NewStorageManager creates a new storage manager.
59func NewStorageManager() *StorageManager {
60 return &StorageManager{
61 AllStorages: make([]*Storage, 0),
62 UniqueStorages: make([]*Storage, 0),
63 SharedStorages: make([]*Storage, 0),
64 LocalStorages: make([]*Storage, 0),
65 }
66}
67
68// AddStorage adds a storage entry and handles deduplication.
69func (sm *StorageManager) AddStorage(storage *Storage) {

Callers 4

GetClusterStatusMethod · 0.85
FastGetClusterStatusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected