Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = makeAll()
All returns a slice of all known storage classes, including REPLICATED.
View Source
var AllRS = All[1:]
AllRS returns a slice of all RS storage classes.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class interface { // ID returns the enum for this class. ID() core.StorageClass // Has returns true if the tract is stored as this class. Has(tract *fb.TractF) bool // Clear removes this class' data for the tract. Clear(tract *fb.Tract) // Set sets the RS pointer for this storage class. Set(tract *fb.Tract, cid core.RSChunkID) core.Error // RSParams returns the RS parameters for this class. RSParams() (n int, m int) // GetRS gets the RS pointer for this storage class. GetRS(tract *fb.TractF) core.RSChunkID }
Class is a representation of a storage class that allows manipulation of the tract metadata for that class.
Click to show internal directories.
Click to hide internal directories.