Documentation
¶
Index ¶
- func CreateRPCDialer() (rpc.Dialer, error)
- func DownloadPiece(ctx context.Context, t *testing.T, signer signing.Signer, ...) (data []byte)
- func InitStoragenodeDirs(t *testing.T, id storj.NodeID, config *piecestore2.OldConfig)
- func UploadPiece(ctx context.Context, t *testing.T, signer signing.Signer, ...) (id storj.PieceID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRPCDialer ¶
CreateRPCDialer creates an RPC dialer with a new identity and TLS configuration. It configures the dialer with minimal security settings suitable for testing.
func DownloadPiece ¶
func DownloadPiece(ctx context.Context, t *testing.T, signer signing.Signer, nodeURL storj.NodeURL, pieceID storj.PieceID, size int64) (data []byte)
DownloadPiece downloads a piece from a storage node. It creates an order limit for downloading, signs it, and retrieves the data. Returns the downloaded data as a byte slice.
func InitStoragenodeDirs ¶
InitStoragenodeDirs initializes the directory structure required for a storage node. It creates the necessary directories and writes a verification file with the node ID.
func UploadPiece ¶
func UploadPiece(ctx context.Context, t *testing.T, signer signing.Signer, nodeURL storj.NodeURL, data []byte) (id storj.PieceID)
UploadPiece uploads a piece of data to a storage node. It creates an order limit, signs it, and uploads the data to the specified node URL. Returns the generated piece ID.
Types ¶
This section is empty.