packageifaceimport("context""io"options"github.com/ipfs/go-ipfs/core/coreapi/interface/options")// BlockStat contains information about a blocktypeBlockStatinterface{// Size is the size of a blockSize()int// Path returns path to the blockPath()Path}// BlockAPI specifies the interface to the block layertypeBlockAPIinterface{// Put imports raw block data, hashing it using specified settings.Put(context.Context,io.Reader,...options.BlockPutOption)(Path,error)// Get attempts to resolve the path and return a reader for data in the blockGet(context.Context,Path)(io.Reader,error)// Rm removes the block specified by the path from local blockstore.// By default an error will be returned if the block can't be found locally.//// NOTE: If the specified block is pinned it won't be removed and no error// will be returnedRm(context.Context,Path,...options.BlockRmOption)error// Stat returns information onStat(context.Context,Path)(BlockStat,error)}