blockio

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New() *Config

New creates a new blockio config instance

func (*Config) Enabled

func (c *Config) Enabled() bool

Enabled returns true if blockio is enabled in the system

func (*Config) Load

func (c *Config) Load(path string) error

Load loads and validates blockio config

func (*Config) Reload

func (c *Config) Reload() error

Reload (re-)reads the configuration file and rescans block devices in the system

func (*Config) ReloadRequired

func (c *Config) ReloadRequired() bool

ReloadRequired returns true if reloading configuration and rescanning devices is required

func (*Config) SetReload

func (c *Config) SetReload(reload bool)

SetReload sets the blockio reload option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL