Documentation ¶
Index ¶
- func GenerateIPFSNodeKeyPair() ([]byte, []byte, error)
- func GenerateIPNSKeyPair() ([]byte, []byte, error)
- func GetIPFSNodeIdentity(pubb []byte) peer.ID
- func GetIPFSNodeIdentityFromPublicKeyName(key string) (peer.ID, error)
- func GetIPNSPublicKeyName(pubb []byte) (string, error)
- func GetIPNSRecordFromW3S(ctx context.Context, authToken string, name string) (cid.Cid, error)
- func PinIPFSBlockToW3S(ctx context.Context, ipfs iface.CoreAPI, authToken string, ...) error
- func PinIPLDBlockToW3S(ctx context.Context, ipfsNode iface.CoreAPI, authToken string, ...) (cid.Cid, error)
- func PublishIPNSRecordForDAGNode(ctx context.Context, ipfscore IPFSCore, authtoken string, cid cid.Cid, ...) error
- func PublishIPNSRecordForDAGNodeToW3S(ctx context.Context, authToken string, cid cid.Cid, privkey []byte, ...) error
- func PutNostrEventAsIPLDLink(ctx context.Context, ipfs IPFSCore, evt nostr.Event) (datamodel.Link, error)
- type IPFSCore
- func (store *IPFSCore) Get(ctx context.Context, key string) ([]byte, error)
- func (store *IPFSCore) Has(ctx context.Context, key string) (bool, error)
- func (store *IPFSCore) OpenRead(lnkCtx linking.LinkContext, lnk datamodel.Link) (io.Reader, error)
- func (store *IPFSCore) OpenWrite(lnkCtx linking.LinkContext, lnk datamodel.Link) (io.Writer, linking.BlockWriteCommitter, error)
- func (store *IPFSCore) Put(ctx context.Context, key string, data []byte) error
- type IPFSLinkWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIPFSNodeKeyPair ¶
func GenerateIPNSKeyPair ¶
func GetIPFSNodeIdentity ¶
func GetIPNSPublicKeyName ¶
func GetIPNSRecordFromW3S ¶
func PinIPFSBlockToW3S ¶
func PinIPLDBlockToW3S ¶
Types ¶
type IPFSCore ¶
type IPFSCore struct { Ctx context.Context Api iface.CoreAPI Node ipfsCore.IpfsNode Shutdown func() LS linking.LinkSystem W3S w3s.Client }
func StartIPFSNode ¶
type IPFSLinkWriter ¶
type IPFSLinkWriter struct {
// contains filtered or unexported fields
}
func (*IPFSLinkWriter) BlockWriteCommit ¶
func (w *IPFSLinkWriter) BlockWriteCommit(lnk datamodel.Link) error
Click to show internal directories.
Click to hide internal directories.