Class IPFSClusterConnector
java.lang.Object
wrappers.IPFSClusterConnector
Low level wrapper for the IPFS Cluster API.
See IPFS Cluster API Docs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InputStream stream, String pinName) Adds a file to ipfs through the cluster, meaning its automatically pinned Due to not needing the CID, nothing is returnedgetCIDUsingName(String name) Retrieves a CID based on the pin name If there are multiple pinslongvoidDeletes a pin from the specified CID
-
Constructor Details
-
IPFSClusterConnector
-
-
Method Details
-
getCIDUsingName
Retrieves a CID based on the pin name If there are multiple pins- Parameters:
name- The pin name- Returns:
- The CID
- Throws:
IOExceptionIPFSException
-
add
Adds a file to ipfs through the cluster, meaning its automatically pinned Due to not needing the CID, nothing is returned- Parameters:
stream- The input stream containing the data to be uploadedpinName- The name of the pin- Throws:
IOExceptionIPFSException
-
unpin
Deletes a pin from the specified CID- Parameters:
CID- The CID to remove the pin from- Throws:
IOExceptionIPFSException
-
getMinFreeSpace
- Throws:
IOExceptionIPFSException
-