SYMBOL INDEX (175 symbols across 15 files) FILE: collector/cache.go type metricCache (line 9) | type metricCache struct method add (line 14) | func (c *metricCache) add(m metric) { method merge (line 20) | func (c *metricCache) merge(other *metricCache) { method replace (line 35) | func (c *metricCache) replace(other *metricCache) { method index (line 41) | func (c *metricCache) index() map[string]struct{} { function newMetricCache (line 52) | func newMetricCache() *metricCache { FILE: collector/collector.go constant defaultEnabled (line 16) | defaultEnabled = true constant defaultDisabled (line 17) | defaultDisabled = false constant namespace (line 18) | namespace = `zfs` constant helpDefaultStateEnabled (line 19) | helpDefaultStateEnabled = `enabled` constant helpDefaultStateDisabled (line 20) | helpDefaultStateDisabled = `disabled` constant subsystemDataset (line 22) | subsystemDataset = `dataset` constant subsystemPool (line 23) | subsystemPool = `pool` constant propertyUnsupportedDesc (line 25) | propertyUnsupportedDesc = `!!! This property is unsupported, results are... constant propertyUnsupportedMsg (line 26) | propertyUnsupportedMsg = `Unsupported dataset property, results are lik... constant helpIssue (line 27) | helpIssue = `Please file an issue at https://github.com/pd... type factoryFunc (line 50) | type factoryFunc type transformFunc (line 52) | type transformFunc type State (line 55) | type State struct type Collector (line 63) | type Collector interface type metric (line 68) | type metric struct type property (line 73) | type property struct method push (line 80) | func (p property) push(ch chan<- metric, value string, labelValues ...... type propertyStore (line 98) | type propertyStore struct method find (line 104) | func (p *propertyStore) find(name string) (property, error) { function registerCollector (line 120) | func registerCollector(collector string, isDefaultEnabled bool, defaultP... function expandMetricName (line 143) | func expandMetricName(prefix string, context ...string) string { function newProperty (line 147) | func newProperty(subsystem, metricName, helpText string, transform trans... FILE: collector/collector_test.go function callCollector (line 17) | func callCollector(ctx context.Context, collector prometheus.Collector, ... function defaultConfig (line 31) | func defaultConfig(z zfs.Client) ZFSConfig { function stringPointer (line 40) | func stringPointer(s string) *string { function boolPointer (line 44) | func boolPointer(b bool) *bool { FILE: collector/dataset.go constant defaultFilesystemProps (line 13) | defaultFilesystemProps = `available,logicalused,quota,referenced,used,us... constant defaultSnapshotProps (line 14) | defaultSnapshotProps = `logicalused,referenced,used,written` constant defaultVolumeProps (line 15) | defaultVolumeProps = `available,logicalused,referenced,used,usedbyda... function init (line 188) | func init() { type datasetCollector (line 194) | type datasetCollector struct method describe (line 201) | func (c *datasetCollector) describe(ch chan<- *prometheus.Desc) { method update (line 212) | func (c *datasetCollector) update(ch chan<- metric, pools []string, ex... method updatePoolMetrics (line 234) | func (c *datasetCollector) updatePoolMetrics(ch chan<- metric, pool st... method updateDatasetMetrics (line 253) | func (c *datasetCollector) updateDatasetMetrics(ch chan<- metric, pool... function newDatasetCollector (line 269) | func newDatasetCollector(kind zfs.DatasetKind, l *slog.Logger, c zfs.Cli... function newFilesystemCollector (line 279) | func newFilesystemCollector(l *slog.Logger, c zfs.Client, props []string... function newSnapshotCollector (line 283) | func newSnapshotCollector(l *slog.Logger, c zfs.Client, props []string) ... function newVolumeCollector (line 287) | func newVolumeCollector(l *slog.Logger, c zfs.Client, props []string) (C... FILE: collector/dataset_test.go type datasetResults (line 13) | type datasetResults struct function TestDatsetMetrics (line 18) | func TestDatsetMetrics(t *testing.T) { FILE: collector/pool.go constant defaultPoolProps (line 13) | defaultPoolProps = `allocated,dedupratio,fragmentation,free,freeing,heal... function init (line 122) | func init() { type poolCollector (line 126) | type poolCollector struct method describe (line 132) | func (c *poolCollector) describe(ch chan<- *prometheus.Desc) { method update (line 143) | func (c *poolCollector) update(ch chan<- metric, pools []string, exclu... method updatePoolMetrics (line 165) | func (c *poolCollector) updatePoolMetrics(ch chan<- metric, pool strin... function newPoolCollector (line 186) | func newPoolCollector(l *slog.Logger, c zfs.Client, props []string) (Col... FILE: collector/pool_test.go function TestPoolMetrics (line 12) | func TestPoolMetrics(t *testing.T) { FILE: collector/transform.go type poolHealthCode (line 10) | type poolHealthCode constant poolOnline (line 13) | poolOnline poolHealthCode = iota constant poolDegraded (line 14) | poolDegraded constant poolFaulted (line 15) | poolFaulted constant poolOffline (line 16) | poolOffline constant poolUnavail (line 17) | poolUnavail constant poolRemoved (line 18) | poolRemoved constant poolSuspended (line 19) | poolSuspended function transformNumeric (line 22) | func transformNumeric(value string) (float64, error) { function transformHealthCode (line 29) | func transformHealthCode(status string) (float64, error) { function transformBool (line 53) | func transformBool(value string) (float64, error) { function transformPercentage (line 64) | func transformPercentage(value string) (float64, error) { function transformMultiplier (line 76) | func transformMultiplier(value string) (float64, error) { FILE: collector/zfs.go type regexpCollection (line 16) | type regexpCollection method MatchString (line 18) | func (c regexpCollection) MatchString(input string) bool { type ZFSConfig (line 29) | type ZFSConfig struct type ZFS (line 39) | type ZFS struct method Describe (line 52) | func (c *ZFS) Describe(ch chan<- *prometheus.Desc) { method Collect (line 72) | func (c *ZFS) Collect(ch chan<- prometheus.Metric) { method sendCached (line 165) | func (c *ZFS) sendCached(ch chan<- prometheus.Metric, cacheIndex map[s... method getPools (line 176) | func (c *ZFS) getPools(pools []string) ([]string, error) { method execute (line 205) | func (c *ZFS) execute(ctx context.Context, name string, collector Coll... method publishCollectorMetrics (line 213) | func (c *ZFS) publishCollectorMetrics(ctx context.Context, name string... function NewZFS (line 249) | func NewZFS(config ZFSConfig) (*ZFS, error) { FILE: collector/zfs_test.go function TestZFSCollectInvalidPools (line 12) | func TestZFSCollectInvalidPools(t *testing.T) { FILE: zfs/dataset.go type DatasetKind (line 8) | type DatasetKind constant DatasetFilesystem (line 12) | DatasetFilesystem DatasetKind = `filesystem` constant DatasetVolume (line 14) | DatasetVolume DatasetKind = `volume` constant DatasetSnapshot (line 16) | DatasetSnapshot DatasetKind = `snapshot` type datasetsImpl (line 19) | type datasetsImpl struct method Pool (line 24) | func (d datasetsImpl) Pool() string { method Kind (line 28) | func (d datasetsImpl) Kind() DatasetKind { method Properties (line 32) | func (d datasetsImpl) Properties(props ...string) ([]DatasetProperties... type datasetPropertiesImpl (line 40) | type datasetPropertiesImpl struct method DatasetName (line 45) | func (p *datasetPropertiesImpl) DatasetName() string { method Properties (line 49) | func (p *datasetPropertiesImpl) Properties() map[string]string { type datasetHandler (line 54) | type datasetHandler struct method processLine (line 59) | func (h *datasetHandler) processLine(pool string, line []string) error { method datasets (line 70) | func (h *datasetHandler) datasets() []DatasetProperties { function newDatasetPropertiesImpl (line 80) | func newDatasetPropertiesImpl(name string) *datasetPropertiesImpl { function newDatasetsImpl (line 87) | func newDatasetsImpl(pool string, kind DatasetKind) datasetsImpl { function newDatasetHandler (line 94) | func newDatasetHandler() *datasetHandler { FILE: zfs/mock_zfs/mock_zfs.go type MockClient (line 20) | type MockClient struct method EXPECT (line 39) | func (m *MockClient) EXPECT() *MockClientMockRecorder { method Datasets (line 44) | func (m *MockClient) Datasets(pool string, kind zfs.DatasetKind) zfs.D... method Pool (line 58) | func (m *MockClient) Pool(name string) zfs.Pool { method PoolNames (line 72) | func (m *MockClient) PoolNames() ([]string, error) { type MockClientMockRecorder (line 27) | type MockClientMockRecorder struct method Datasets (line 52) | func (mr *MockClientMockRecorder) Datasets(pool, kind any) *gomock.Call { method Pool (line 66) | func (mr *MockClientMockRecorder) Pool(name any) *gomock.Call { method PoolNames (line 81) | func (mr *MockClientMockRecorder) PoolNames() *gomock.Call { function NewMockClient (line 32) | func NewMockClient(ctrl *gomock.Controller) *MockClient { type MockPool (line 87) | type MockPool struct method EXPECT (line 106) | func (m *MockPool) EXPECT() *MockPoolMockRecorder { method Name (line 111) | func (m *MockPool) Name() string { method Properties (line 125) | func (m *MockPool) Properties(props ...string) (zfs.PoolProperties, er... type MockPoolMockRecorder (line 94) | type MockPoolMockRecorder struct method Name (line 119) | func (mr *MockPoolMockRecorder) Name() *gomock.Call { method Properties (line 138) | func (mr *MockPoolMockRecorder) Properties(props ...any) *gomock.Call { function NewMockPool (line 99) | func NewMockPool(ctrl *gomock.Controller) *MockPool { type MockPoolProperties (line 144) | type MockPoolProperties struct method EXPECT (line 163) | func (m *MockPoolProperties) EXPECT() *MockPoolPropertiesMockRecorder { method Properties (line 168) | func (m *MockPoolProperties) Properties() map[string]string { type MockPoolPropertiesMockRecorder (line 151) | type MockPoolPropertiesMockRecorder struct method Properties (line 176) | func (mr *MockPoolPropertiesMockRecorder) Properties() *gomock.Call { function NewMockPoolProperties (line 156) | func NewMockPoolProperties(ctrl *gomock.Controller) *MockPoolProperties { type MockDatasets (line 182) | type MockDatasets struct method EXPECT (line 201) | func (m *MockDatasets) EXPECT() *MockDatasetsMockRecorder { method Kind (line 206) | func (m *MockDatasets) Kind() zfs.DatasetKind { method Pool (line 220) | func (m *MockDatasets) Pool() string { method Properties (line 234) | func (m *MockDatasets) Properties(props ...string) ([]zfs.DatasetPrope... type MockDatasetsMockRecorder (line 189) | type MockDatasetsMockRecorder struct method Kind (line 214) | func (mr *MockDatasetsMockRecorder) Kind() *gomock.Call { method Pool (line 228) | func (mr *MockDatasetsMockRecorder) Pool() *gomock.Call { method Properties (line 247) | func (mr *MockDatasetsMockRecorder) Properties(props ...any) *gomock.C... function NewMockDatasets (line 194) | func NewMockDatasets(ctrl *gomock.Controller) *MockDatasets { type MockDatasetProperties (line 253) | type MockDatasetProperties struct method EXPECT (line 272) | func (m *MockDatasetProperties) EXPECT() *MockDatasetPropertiesMockRec... method DatasetName (line 277) | func (m *MockDatasetProperties) DatasetName() string { method Properties (line 291) | func (m *MockDatasetProperties) Properties() map[string]string { type MockDatasetPropertiesMockRecorder (line 260) | type MockDatasetPropertiesMockRecorder struct method DatasetName (line 285) | func (mr *MockDatasetPropertiesMockRecorder) DatasetName() *gomock.Call { method Properties (line 299) | func (mr *MockDatasetPropertiesMockRecorder) Properties() *gomock.Call { function NewMockDatasetProperties (line 265) | func NewMockDatasetProperties(ctrl *gomock.Controller) *MockDatasetPrope... type Mockhandler (line 305) | type Mockhandler struct method EXPECT (line 324) | func (m *Mockhandler) EXPECT() *MockhandlerMockRecorder { method processLine (line 329) | func (m *Mockhandler) processLine(pool string, line []string) error { type MockhandlerMockRecorder (line 312) | type MockhandlerMockRecorder struct method processLine (line 337) | func (mr *MockhandlerMockRecorder) processLine(pool, line any) *gomock... function NewMockhandler (line 317) | func NewMockhandler(ctrl *gomock.Controller) *Mockhandler { FILE: zfs/pool.go type PoolStatus (line 12) | type PoolStatus constant PoolOnline (line 16) | PoolOnline PoolStatus = `ONLINE` constant PoolDegraded (line 18) | PoolDegraded PoolStatus = `DEGRADED` constant PoolFaulted (line 20) | PoolFaulted PoolStatus = `FAULTED` constant PoolOffline (line 22) | PoolOffline PoolStatus = `OFFLINE` constant PoolUnavail (line 24) | PoolUnavail PoolStatus = `UNAVAIL` constant PoolRemoved (line 26) | PoolRemoved PoolStatus = `REMOVED` constant PoolSuspended (line 28) | PoolSuspended PoolStatus = `SUSPENDED` type poolImpl (line 31) | type poolImpl struct method Name (line 35) | func (p poolImpl) Name() string { method Properties (line 39) | func (p poolImpl) Properties(props ...string) (PoolProperties, error) { type poolPropertiesImpl (line 47) | type poolPropertiesImpl struct method Properties (line 51) | func (p *poolPropertiesImpl) Properties() map[string]string { method processLine (line 56) | func (p *poolPropertiesImpl) processLine(pool string, line []string) e... function poolNames (line 66) | func poolNames() ([]string, error) { function newPoolImpl (line 95) | func newPoolImpl(name string) poolImpl { function newPoolPropertiesImpl (line 101) | func newPoolPropertiesImpl() *poolPropertiesImpl { FILE: zfs/zfs.go type Client (line 18) | type Client interface type Pool (line 25) | type Pool interface type PoolProperties (line 31) | type PoolProperties interface type Datasets (line 36) | type Datasets interface type DatasetProperties (line 43) | type DatasetProperties interface type handler (line 48) | type handler interface type clientImpl (line 52) | type clientImpl struct method PoolNames (line 54) | func (z clientImpl) PoolNames() ([]string, error) { method Pool (line 58) | func (z clientImpl) Pool(name string) Pool { method Datasets (line 62) | func (z clientImpl) Datasets(pool string, kind DatasetKind) Datasets { function execute (line 66) | func execute(pool string, h handler, cmd string, args ...string) error { function New (line 109) | func New() Client { FILE: zfs_exporter.go function main (line 23) | func main() {