forked from TrueCloudLab/frostfs-node
aarifullin
6c76c9b457
* Make tree, object and container services use SubjectProvider interface. * Fix unit-tests. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
16 lines
439 B
Go
16 lines
439 B
Go
package frostfsid
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-contract/frostfsid/client"
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
|
)
|
|
|
|
const (
|
|
SubjectNotFoundErrorMessage = "subject not found"
|
|
)
|
|
|
|
// SubjectProvider interface provides methods to get subject from FrostfsID contract.
|
|
type SubjectProvider interface {
|
|
GetSubject(util.Uint160) (*client.Subject, error)
|
|
GetSubjectExtended(util.Uint160) (*client.SubjectExtended, error)
|
|
}
|