Documentation ¶
Index ¶
- type ConfigurableSpaceKeeper
- func (csk *ConfigurableSpaceKeeper) AvailableDiskSize() (uint64, error)
- func (csk *ConfigurableSpaceKeeper) ConfigureByBitLength(BlCount map[int]int, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
- func (csk *ConfigurableSpaceKeeper) ConfigureByPath(paths []string, sizes []uint64, execPlot, execMine, autoCreate bool, ...) ([]engine.WorkSpaceInfo, error)
- func (csk *ConfigurableSpaceKeeper) ConfigureBySize(targetSize uint64, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
- func (csk *ConfigurableSpaceKeeper) Configured() bool
- func (csk *ConfigurableSpaceKeeper) IsCapacityAvailable(path string, capacity uint64) error
- func (csk *ConfigurableSpaceKeeper) WorkSpaceInfosByDirs() (dirs []string, results [][]engine.WorkSpaceInfo, err error)
- type SpaceKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurableSpaceKeeper ¶
type ConfigurableSpaceKeeper struct {
spacekeeper.SpaceKeeper
}
func NewConfigurableSpaceKeeper ¶
func NewConfigurableSpaceKeeper(sk spacekeeper.SpaceKeeper) *ConfigurableSpaceKeeper
func (*ConfigurableSpaceKeeper) AvailableDiskSize ¶
func (csk *ConfigurableSpaceKeeper) AvailableDiskSize() (uint64, error)
func (*ConfigurableSpaceKeeper) ConfigureByBitLength ¶
func (csk *ConfigurableSpaceKeeper) ConfigureByBitLength(BlCount map[int]int, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
func (*ConfigurableSpaceKeeper) ConfigureByPath ¶
func (csk *ConfigurableSpaceKeeper) ConfigureByPath(paths []string, sizes []uint64, execPlot, execMine, autoCreate bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
func (*ConfigurableSpaceKeeper) ConfigureBySize ¶
func (csk *ConfigurableSpaceKeeper) ConfigureBySize(targetSize uint64, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
func (*ConfigurableSpaceKeeper) Configured ¶
func (csk *ConfigurableSpaceKeeper) Configured() bool
func (*ConfigurableSpaceKeeper) IsCapacityAvailable ¶
func (csk *ConfigurableSpaceKeeper) IsCapacityAvailable(path string, capacity uint64) error
func (*ConfigurableSpaceKeeper) WorkSpaceInfosByDirs ¶
func (csk *ConfigurableSpaceKeeper) WorkSpaceInfosByDirs() (dirs []string, results [][]engine.WorkSpaceInfo, err error)
type SpaceKeeper ¶
type SpaceKeeper interface { spacekeeper.SpaceKeeper Configured() bool ConfigureByBitLength(BlCount map[int]int, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error) ConfigureBySize(targetSize uint64, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error) ConfigureByPath(paths []string, sizes []uint64, execPlot, execMine, autoCreate bool, cointype uint32) ([]engine.WorkSpaceInfo, error) AvailableDiskSize() (uint64, error) IsCapacityAvailable(path string, capacity uint64) error WorkSpaceInfosByDirs() (dirs []string, results [][]engine.WorkSpaceInfo, err error) }
Click to show internal directories.
Click to hide internal directories.