storageclass

package
v0.0.0-...-fd5963e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: MIT Imports: 4 Imported by: 0

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.

func Get

func Get(id core.StorageClass) Class

Get returns the Class with the given id.

Jump to

Keyboard shortcuts

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