teststorj

package
v1.114.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockNode

func MockNode(s string) *pb.Node

MockNode returns a pb node with an ID consisting of the string and padding to the node ID length.

func NodeIDFromBytes

func NodeIDFromBytes(b []byte) storj.NodeID

NodeIDFromBytes returns a node ID consisting of the bytes and padding to the node ID length.

func NodeIDFromString

func NodeIDFromString(s string) storj.NodeID

NodeIDFromString returns node ID consisting of the strings and padding to the node ID length.

func NodeIDsFromBytes

func NodeIDsFromBytes(bs ...[]byte) (ids storj.NodeIDList)

NodeIDsFromBytes returns node IDs consisting of the byte slices and padding to the node ID length.

func NodeIDsFromStrings

func NodeIDsFromStrings(strs ...string) (ids storj.NodeIDList)

NodeIDsFromStrings returns node IDs consisting of the strings and padding to the node ID length.

func PieceIDFromBytes

func PieceIDFromBytes(b []byte) storj.PieceID

PieceIDFromBytes converts a byte slice into a piece ID.

func PieceIDFromString

func PieceIDFromString(s string) storj.PieceID

PieceIDFromString decodes a hex encoded piece ID string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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