2022-03-18 08:32:00 +00:00
|
|
|
/*
|
2022-12-29 10:46:18 +00:00
|
|
|
Package ns provides functionality of FrostFS name system.
|
2022-03-18 08:32:00 +00:00
|
|
|
|
2022-12-29 10:46:18 +00:00
|
|
|
DNS type is designed to resolve FrostFS-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)
|
|
|
|
// ...
|
|
|
|
|
2022-12-29 10:46:18 +00:00
|
|
|
NNS type is designed to resolve FrostFS-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
|