ffiselect

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FFISelect struct {
	GenerateSinglePartitionWindowPoStWithVanilla func(
		ctx context.Context,
		proofType abi.RegisteredPoStProof,
		minerID abi.ActorID,
		randomness abi.PoStRandomness,
		proofs [][]byte,
		partitionIndex uint,
	) (*ffi.PartitionProof, error)

	SealPreCommitPhase2 func(
		ctx context.Context,
		phase1Output []byte,
		cacheDirPath string,
		sealedSectorPath string,
	) (out storiface.SectorCids, err error)

	SealCommitPhase2 func(
		ctx context.Context,
		phase1Output []byte,
		sectorNum abi.SectorNumber,
		minerID abi.ActorID,
	) ([]byte, error)

	GenerateWinningPoStWithVanilla func(
		ctx context.Context,
		proofType abi.RegisteredPoStProof,
		minerID abi.ActorID,
		randomness abi.PoStRandomness,
		proofs [][]byte,
	) ([]proof.PoStProof, error)

	EncodeInto func(
		ctx context.Context,
		proofType abi.RegisteredUpdateProof,
		newReplicaPath string,
		newReplicaCachePath string,
		sectorKeyPath string,
		sectorKeyCachePath string,
		stagedDataPath string,
		pieces []abi.PieceInfo,
	) (out storiface.SectorCids, err error)

	GenerateUpdateProofWithVanilla func(
		ctx context.Context,
		proofType abi.RegisteredUpdateProof,
		key, sealed, unsealed cid.Cid,
		vproofs [][]byte,
	) ([]byte, error)

	SelfTest func(ctx context.Context, val1 int, val2 cid.Cid) (cid.Cid, error)
}
View Source
var IsCuda = build.IsOpencl != "1"
View Source
var IsTest = false

Functions

func WithLogCtx

func WithLogCtx(ctx context.Context, kvs ...any) context.Context

Types

type FFICall

type FFICall struct {
	Fn   string
	Args []interface{}
}

This is not the one you're looking for.

type LogWriter

type LogWriter struct {
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(logctx []any, errOut io.Writer) *LogWriter

func (*LogWriter) Write

func (lw *LogWriter) Write(p []byte) (n int, err error)

type ValErr

type ValErr struct {
	Val []interface{}
	Err string
}

Directories

Path Synopsis
This is a wrapper around the FFI functions that allows them to be called by reflection.
This is a wrapper around the FFI functions that allows them to be called by reflection.

Jump to

Keyboard shortcuts

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