Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestDiskID1 = "fsid" TestOrphanedReplicaDirectoryName = "test-volume-r-000000000" )
View Source
const (
NodeMonitorSyncPeriod = 30 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func GetDiskNamesFromDiskMap ¶
func GetDiskNamesFromDiskMap(diskInfoMap map[string]*CollectedDiskInfo) []string
Types ¶
type CollectedDiskInfo ¶
type CollectedDiskInfo struct { Path string NodeOrDiskEvicted bool DiskStat *util.DiskStat DiskUUID string Condition *longhorn.Condition OrphanedReplicaDirectoryNames map[string]string }
func NewDiskInfo ¶
type GenerateDiskConfig ¶
type GenerateDiskConfig func(string) (*util.DiskConfig, error)
type GetDiskConfig ¶
type GetDiskConfig func(string) (*util.DiskConfig, error)
type NodeMonitor ¶
type NodeMonitor struct {
// contains filtered or unexported fields
}
func NewFakeNodeMonitor ¶
func NewFakeNodeMonitor(logger logrus.FieldLogger, ds *datastore.DataStore, nodeName string, syncCallback func(key string)) (*NodeMonitor, error)
func NewNodeMonitor ¶
func NewNodeMonitor(logger logrus.FieldLogger, ds *datastore.DataStore, nodeName string, syncCallback func(key string)) (*NodeMonitor, error)
func (*NodeMonitor) Close ¶
func (m *NodeMonitor) Close()
func (*NodeMonitor) GetCollectedData ¶
func (m *NodeMonitor) GetCollectedData() (interface{}, error)
func (*NodeMonitor) Start ¶
func (m *NodeMonitor) Start()
func (*NodeMonitor) SyncCollectedData ¶
func (m *NodeMonitor) SyncCollectedData() error
Click to show internal directories.
Click to hide internal directories.