Documentation ¶
Index ¶
- Constants
- type ErrApi
- type ErrBadCommD
- type ErrExpiredDeals
- type ErrExpiredTicket
- type ErrInvalidDeals
- type Log
- type Piece
- type SealSeed
- type SealTicket
- type Sealing
- func (m *Sealing) AllocatePiece(size uint64) (sectorID uint64, offset uint64, err error)
- func (m *Sealing) ForceSectorState(ctx context.Context, id uint64, state api.SectorState) error
- func (m *Sealing) GetSectorInfo(sid uint64) (SectorInfo, error)
- func (m *Sealing) ListSectors() ([]SectorInfo, error)
- func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface{}, error)
- func (m *Sealing) PledgeSector() error
- func (m *Sealing) Run(ctx context.Context) error
- func (m *Sealing) SealPiece(ctx context.Context, size uint64, r io.Reader, sectorID uint64, dealID uint64) error
- func (m *Sealing) Stop(ctx context.Context) error
- type SectorCommitFailed
- type SectorCommitted
- type SectorComputeProofFailed
- type SectorFatalError
- type SectorFaultReported
- type SectorFaultedFinal
- type SectorFaulty
- type SectorForceState
- type SectorInfo
- type SectorPacked
- type SectorPackingFailed
- type SectorPreCommitFailed
- type SectorPreCommitted
- type SectorProving
- type SectorRestart
- type SectorRetryPreCommit
- type SectorRetrySeal
- type SectorRetryWaitSeed
- type SectorSealFailed
- type SectorSealed
- type SectorSeedReady
- type SectorStart
- type TicketFn
Constants ¶
View Source
const SectorStorePrefix = "/sectors"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrApi ¶ added in v0.2.6
type ErrApi struct {
// contains filtered or unexported fields
}
TODO: For now we handle this by halting state execution, when we get jsonrpc reconnecting
We should implement some wait-for-api logic
type ErrBadCommD ¶ added in v0.2.6
type ErrBadCommD struct {
// contains filtered or unexported fields
}
type ErrExpiredDeals ¶ added in v0.2.6
type ErrExpiredDeals struct {
// contains filtered or unexported fields
}
type ErrExpiredTicket ¶ added in v0.2.6
type ErrExpiredTicket struct {
// contains filtered or unexported fields
}
type ErrInvalidDeals ¶ added in v0.2.6
type ErrInvalidDeals struct {
// contains filtered or unexported fields
}
type Log ¶ added in v0.2.6
type SealTicket ¶
func (*SealTicket) MarshalCBOR ¶
func (t *SealTicket) MarshalCBOR(w io.Writer) error
func (*SealTicket) SB ¶
func (t *SealTicket) SB() sectorbuilder.SealTicket
func (*SealTicket) UnmarshalCBOR ¶
func (t *SealTicket) UnmarshalCBOR(r io.Reader) error
type Sealing ¶
type Sealing struct {
// contains filtered or unexported fields
}
func (*Sealing) AllocatePiece ¶
func (*Sealing) ForceSectorState ¶
func (*Sealing) GetSectorInfo ¶
func (m *Sealing) GetSectorInfo(sid uint64) (SectorInfo, error)
func (*Sealing) ListSectors ¶
func (m *Sealing) ListSectors() ([]SectorInfo, error)
func (*Sealing) Plan ¶
func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface{}, error)
func (*Sealing) PledgeSector ¶
type SectorCommitFailed ¶
type SectorCommitFailed struct {
// contains filtered or unexported fields
}
type SectorCommitted ¶
type SectorCommitted struct {
// contains filtered or unexported fields
}
type SectorComputeProofFailed ¶ added in v0.2.6
type SectorComputeProofFailed struct {
// contains filtered or unexported fields
}
type SectorFatalError ¶
type SectorFatalError struct {
// contains filtered or unexported fields
}
type SectorFaultReported ¶
type SectorFaultReported struct {
// contains filtered or unexported fields
}
type SectorFaultedFinal ¶
type SectorFaultedFinal struct{}
type SectorFaulty ¶
type SectorFaulty struct{}
type SectorForceState ¶
type SectorForceState struct {
// contains filtered or unexported fields
}
type SectorInfo ¶
type SectorInfo struct { State api.SectorState SectorID uint64 Nonce uint64 // TODO: remove Pieces []Piece // PreCommit CommD []byte CommR []byte Proof []byte Ticket SealTicket PreCommitMessage *cid.Cid // WaitSeed Seed SealSeed // Committing CommitMessage *cid.Cid // Faults FaultReportMsg *cid.Cid // Debug LastErr string Log []Log }
func (*SectorInfo) MarshalCBOR ¶
func (t *SectorInfo) MarshalCBOR(w io.Writer) error
func (*SectorInfo) UnmarshalCBOR ¶
func (t *SectorInfo) UnmarshalCBOR(r io.Reader) error
type SectorPacked ¶
type SectorPacked struct {
// contains filtered or unexported fields
}
type SectorPackingFailed ¶ added in v0.2.6
type SectorPackingFailed struct {
// contains filtered or unexported fields
}
type SectorPreCommitFailed ¶
type SectorPreCommitFailed struct {
// contains filtered or unexported fields
}
type SectorPreCommitted ¶
type SectorPreCommitted struct {
// contains filtered or unexported fields
}
type SectorProving ¶
type SectorProving struct{}
type SectorRestart ¶
type SectorRestart struct{}
type SectorRetryPreCommit ¶ added in v0.2.6
type SectorRetryPreCommit struct{}
type SectorRetrySeal ¶ added in v0.2.6
type SectorRetrySeal struct{}
type SectorRetryWaitSeed ¶ added in v0.2.6
type SectorRetryWaitSeed struct{}
type SectorSealFailed ¶
type SectorSealFailed struct {
// contains filtered or unexported fields
}
type SectorSealed ¶
type SectorSealed struct {
// contains filtered or unexported fields
}
type SectorSeedReady ¶
type SectorSeedReady struct {
// contains filtered or unexported fields
}
type SectorStart ¶
type SectorStart struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.