github.com/zignig/go-ipfs@v0.0.0-20141111235910-c9e5fdf55a52/core/commands2/name.go (about) 1 package commands 2 3 import cmds "github.com/jbenet/go-ipfs/commands" 4 5 type IpnsEntry struct { 6 Name string 7 Value string 8 } 9 10 var nameCmd = &cmds.Command{ 11 Description: "IPFS namespace (IPNS) tool", 12 Help: `IPNS is a PKI namespace, where names are the hashes of public keys, and 13 the private key enables publishing new (signed) values. In both publish 14 and resolve, the default value of <name> is your own identity public key. 15 16 17 Examples: 18 19 Publish a <ref> to your identity name: 20 21 > ipfs name publish QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 22 published name QmbCMUZw6JFeZ7Wp9jkzbye3Fzp2GGcPgC3nmeUjfVF87n to QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 23 24 Publish a <ref> to another public key: 25 26 > ipfs name publish QmbCMUZw6JFeZ7Wp9jkzbye3Fzp2GGcPgC3nmeUjfVF87n QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 27 published name QmbCMUZw6JFeZ7Wp9jkzbye3Fzp2GGcPgC3nmeUjfVF87n to QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 28 29 Resolve the value of your identity: 30 31 > ipfs name resolve 32 QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 33 34 Resolve the value of another name: 35 36 > ipfs name resolve QmbCMUZw6JFeZ7Wp9jkzbye3Fzp2GGcPgC3nmeUjfVF87n 37 QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy 38 39 `, 40 41 Subcommands: map[string]*cmds.Command{ 42 "publish": publishCmd, 43 "resolve": resolveCmd, 44 }, 45 }