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

Method IsShared

pkg/api/storage.go:18–20  ·  view source on GitHub ↗

IsShared returns true if this storage is shared across multiple nodes.

()

Source from the content-addressed store, hash-verified

16
17// IsShared returns true if this storage is shared across multiple nodes.
18func (s *Storage) IsShared() bool {
19 return s.Shared == 1
20}
21
22// GetUsagePercent returns the storage usage as a percentage.
23func (s *Storage) GetUsagePercent() float64 {

Callers 6

AddStorageMethod · 0.80
UpdateMethod · 0.80
SetNodesMethod · 0.80
showNodeSummaryMethod · 0.80
showStorageSummaryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected