Documentation ¶
Index ¶
- Constants
- Variables
- type Dealer
- type Jiffy
- func (j *Jiffy) GetReplicas(ctx context.Context, info abi.PieceInfo) ([]Replica, error)
- func (j *Jiffy) GetSegment(ctx context.Context, info abi.PieceInfo) (*Segment, error)
- func (j *Jiffy) ListSegments(ctx context.Context) ([]*Segment, error)
- func (j *Jiffy) Retrieve(ctx context.Context, info abi.PieceInfo) (io.ReadSeekCloser, error)
- func (j *Jiffy) Segment(ctx context.Context, closer io.ReadCloser) (*Segment, error)
- func (j *Jiffy) Shutdown(ctx context.Context) error
- func (j *Jiffy) Start(ctx context.Context) error
- type Offload
- type Offloader
- type Option
- type Piece
- type Replica
- type ReplicaStatus
- type Replicator
- type Retriever
- type Segment
- type Segmentor
- type Segments
- type Wallet
Constants ¶
View Source
const ( KiB = 1 << 10 MiB = KiB * KiB GiB = KiB * MiB )
Variables ¶
View Source
var ( // ErrSegmentTooLarge signals that segment data exceeds the maximum allowed. ErrSegmentTooLarge = errors.New("segment data exceeds the maximum allowed") //ErrSegmentNotFound signals that the segment corresponding to a given piece CID is not found. ErrSegmentNotFound = errors.New("segment not found") )
Functions ¶
This section is empty.
Types ¶
type Jiffy ¶
type Jiffy struct {
// contains filtered or unexported fields
}
func (*Jiffy) GetReplicas ¶
func (*Jiffy) GetSegment ¶
type Option ¶
type Option func(*options) error
Option represents a configurable parameter in Motion service.
type Piece ¶
type Piece struct { Info abi.PieceInfo Capacity abi.PaddedPieceSize Segments Segments // TotalSegmentedSize is the sum of all Segment.SegmentedSize segments in this piece. TotalSegmentedSize uint64 }
func NewPiece ¶
func NewPiece(capacity abi.PaddedPieceSize) *Piece
type Replica ¶
type Replica struct { DealProposal boostly.DealProposal LastProviderStatus *boostly.DealStatusResponse LastChainStatus *telefil.StateMarketStorageDeal LastChecked time.Time LastError error }
func (*Replica) MatchesProposalOnChain ¶
func (*Replica) Status ¶
func (r *Replica) Status(head abi.ChainEpoch) ReplicaStatus
type ReplicaStatus ¶
type ReplicaStatus int
const ( // Unknown signals that the replica status is not known due to error during verification. See Replica.LastError. Unknown ReplicaStatus = iota // Accepted signals that the deal proposal has been accepted by the provider and is in process of being executed. Accepted // Slashed signals that the deal corresponding to the replica has been slashed. Slashed // Expired signals that the deal corresponding to the replica has expired. Expired // Published signals that the deal corresponding to the replica has been published on chain. Published // Active signals that the deal corresponding to the replica is active. Active )
func (ReplicaStatus) String ¶
func (rs ReplicaStatus) String() string
type Replicator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.