Documentation ¶
Index ¶
- func MockNode(s string) *pb.Node
- func NodeIDFromBytes(b []byte) storj.NodeID
- func NodeIDFromString(s string) storj.NodeID
- func NodeIDsFromBytes(bs ...[]byte) (ids storj.NodeIDList)
- func NodeIDsFromStrings(strs ...string) (ids storj.NodeIDList)
- func PieceIDFromBytes(b []byte) storj.PieceID
- func PieceIDFromString(s string) storj.PieceID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockNode ¶
MockNode returns a pb node with an ID consisting of the string and padding to the node ID length.
func NodeIDFromBytes ¶
NodeIDFromBytes returns a node ID consisting of the bytes and padding to the node ID length.
func NodeIDFromString ¶
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 ¶
PieceIDFromBytes converts a byte slice into a piece ID.
func PieceIDFromString ¶
PieceIDFromString decodes a hex encoded piece ID string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.