32 lines
474 B
Go
32 lines
474 B
Go
|
package storiface
|
||
|
|
||
|
import "github.com/filecoin-project/go-state-types/abi"
|
||
|
|
||
|
type PathType string
|
||
|
|
||
|
const (
|
||
|
PathStorage PathType = "storage"
|
||
|
PathSealing PathType = "sealing"
|
||
|
)
|
||
|
|
||
|
type AcquireMode string
|
||
|
|
||
|
const (
|
||
|
AcquireMove AcquireMode = "move"
|
||
|
AcquireCopy AcquireMode = "copy"
|
||
|
)
|
||
|
|
||
|
type Refs struct {
|
||
|
RefCount [FileTypes]uint
|
||
|
}
|
||
|
|
||
|
type SectorLock struct {
|
||
|
Sector abi.SectorID
|
||
|
Write [FileTypes]uint
|
||
|
Read [FileTypes]uint
|
||
|
}
|
||
|
|
||
|
type SectorLocks struct {
|
||
|
Locks []SectorLock
|
||
|
}
|