2022-03-18 08:32:00 +00:00
|
|
|
/*
|
2022-04-12 08:25:18 +00:00
|
|
|
Package ns provides functionality of NeoFS name system.
|
2022-03-18 08:32:00 +00:00
|
|
|
|
|
|
|
DNS type is designed to resolve NeoFS-related names using Domain Name System:
|
2022-08-24 14:17:40 +00:00
|
|
|
|
2022-03-18 08:32:00 +00:00
|
|
|
const containerName = "some-container"
|
|
|
|
|
|
|
|
var dns DNS
|
|
|
|
|
|
|
|
containerID, err := dns.ResolveContainerName(containerName)
|
|
|
|
// ...
|
|
|
|
|
|
|
|
NNS type is designed to resolve NeoFS-related names using Neo Name Service:
|
2022-08-24 14:17:40 +00:00
|
|
|
|
2022-03-18 08:32:00 +00:00
|
|
|
var nns NNS
|
|
|
|
|
|
|
|
err := nns.Dial(nnsServerAddress)
|
|
|
|
// ...
|
|
|
|
|
2022-10-27 14:08:45 +00:00
|
|
|
var containerDomain container.Domain
|
|
|
|
containerDomain.SetName(containerName)
|
|
|
|
|
|
|
|
containerID, err := nns.ResolveContainerDomain(containerDomain)
|
2022-03-18 08:32:00 +00:00
|
|
|
// ...
|
|
|
|
*/
|
2022-04-12 08:25:18 +00:00
|
|
|
package ns
|