mocks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarIO

type CarIO struct {
	mock.Mock
}

CarIO is an autogenerated mock type for the CarIO type

func (*CarIO) LoadCar

func (_m *CarIO) LoadCar(bs pieceio.WriteStore, r io.Reader) (cid.Cid, error)

LoadCar provides a mock function with given fields: bs, r

func (*CarIO) PrepareCar

func (_m *CarIO) PrepareCar(ctx context.Context, bs pieceio.ReadStore, payloadCid cid.Cid, node ipld.Node, userOnNewCarBlocks ...car.OnNewCarBlockFunc) (pieceio.PreparedCar, error)

PrepareCar provides a mock function with given fields: ctx, bs, payloadCid, node, userOnNewCarBlocks

func (*CarIO) WriteCar

func (_m *CarIO) WriteCar(ctx context.Context, bs pieceio.ReadStore, payloadCid cid.Cid, node ipld.Node, w io.Writer, userOnNewCarBlocks ...car.OnNewCarBlockFunc) error

WriteCar provides a mock function with given fields: ctx, bs, payloadCid, node, w, userOnNewCarBlocks

type PieceIO

type PieceIO struct {
	mock.Mock
}

PieceIO is an autogenerated mock type for the PieceIO type

func (*PieceIO) GeneratePieceCommitment

func (_m *PieceIO) GeneratePieceCommitment(rt abi.RegisteredSealProof, payloadCid cid.Cid, selector ipld.Node) (cid.Cid, abi.UnpaddedPieceSize, error)

GeneratePieceCommitment provides a mock function with given fields: rt, payloadCid, selector

func (*PieceIO) ReadPiece

func (_m *PieceIO) ReadPiece(r io.Reader) (cid.Cid, error)

ReadPiece provides a mock function with given fields: r

type PreparedCar

type PreparedCar struct {
	mock.Mock
}

PreparedCar is an autogenerated mock type for the PreparedCar type

func (*PreparedCar) Dump

func (_m *PreparedCar) Dump(w io.Writer) error

Dump provides a mock function with given fields: w

func (*PreparedCar) Size

func (_m *PreparedCar) Size() uint64

Size provides a mock function with given fields:

type ReadStore

type ReadStore struct {
	mock.Mock
}

ReadStore is an autogenerated mock type for the ReadStore type

func (*ReadStore) Get

func (_m *ReadStore) Get(_a0 cid.Cid) (blocks.Block, error)

Get provides a mock function with given fields: _a0

type SectorCalculator

type SectorCalculator struct {
	mock.Mock
}

SectorCalculator is an autogenerated mock type for the SectorCalculator type

func (*SectorCalculator) GeneratePieceCommitment

func (_m *SectorCalculator) GeneratePieceCommitment(piece io.Reader, pieceSize uint64) ([]byte, error)

GeneratePieceCommitment provides a mock function with given fields: piece, pieceSize

type WriteStore

type WriteStore struct {
	mock.Mock
}

WriteStore is an autogenerated mock type for the WriteStore type

func (*WriteStore) Put

func (_m *WriteStore) Put(_a0 blocks.Block) error

Put provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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