forked from TrueCloudLab/frostfs-sdk-go
7a2a76af95
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
26 lines
565 B
Go
26 lines
565 B
Go
/*
|
|
Package ns provides functionality of NeoFS name system.
|
|
|
|
DNS type is designed to resolve NeoFS-related names using Domain Name System:
|
|
|
|
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:
|
|
|
|
var nns NNS
|
|
|
|
err := nns.Dial(nnsServerAddress)
|
|
// ...
|
|
|
|
var containerDomain container.Domain
|
|
containerDomain.SetName(containerName)
|
|
|
|
containerID, err := nns.ResolveContainerDomain(containerDomain)
|
|
// ...
|
|
*/
|
|
package ns
|