packageifaceimport("context"options"github.com/ipfs/go-ipfs/core/coreapi/interface/options")// IpnsEntry specifies the interface to IpnsEntriestypeIpnsEntryinterface{// Name returns IpnsEntry nameName()string// Value returns IpnsEntry valueValue()Path}// NameAPI specifies the interface to IPNS.//// IPNS is a PKI namespace, where names are the hashes of public keys, and the// private key enables publishing new (signed) values. In both publish and// resolve, the default name used is the node's own PeerID, which is the hash of// its public key.//// You can use .Key API to list and generate more names and their respective keys.typeNameAPIinterface{// Publish announces new IPNS namePublish(ctxcontext.Context,pathPath,opts...options.NamePublishOption)(IpnsEntry,error)// Resolve attempts to resolve the newest version of the specified nameResolve(ctxcontext.Context,namestring,opts...options.NameResolveOption)(Path,error)}