Documentation
¶
Overview ¶
Package rtfscluster provides utility functions for interacting with IPFS cluster APIs
Index ¶
- type ClusterManager
- func (cm *ClusterManager) DecodeHashString(cidString string) (gocid.Cid, error)
- func (cm *ClusterManager) GenClient() error
- func (cm *ClusterManager) GenRestAPIConfig()
- func (cm *ClusterManager) ListPeers(ctx context.Context) ([]*api.ID, error)
- func (cm *ClusterManager) Pin(ctx context.Context, cid gocid.Cid) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterManager ¶
ClusterManager is a helper interface to interact with the cluster apis
func Initialize ¶
func Initialize(ctx context.Context, hostAddress, hostPort string) (*ClusterManager, error)
Initialize is used to init, and return a cluster manager object
func (*ClusterManager) DecodeHashString ¶
func (cm *ClusterManager) DecodeHashString(cidString string) (gocid.Cid, error)
DecodeHashString is used to take a hash string, and turn it into a CID
func (*ClusterManager) GenClient ¶
func (cm *ClusterManager) GenClient() error
GenClient is used to generate a client to interact with the cluster
func (*ClusterManager) GenRestAPIConfig ¶
func (cm *ClusterManager) GenRestAPIConfig()
GenRestAPIConfig is used to generate the api cfg needed to interact with the cluster
Click to show internal directories.
Click to hide internal directories.