2020-10-02 12:23:52 +00:00
|
|
|
package eacl
|
|
|
|
|
|
|
|
import (
|
2022-06-22 10:55:31 +00:00
|
|
|
containercore "github.com/nspcc-dev/neofs-node/pkg/core/container"
|
2021-11-10 07:08:33 +00:00
|
|
|
cid "github.com/nspcc-dev/neofs-sdk-go/container/id"
|
2020-10-02 12:23:52 +00:00
|
|
|
)
|
|
|
|
|
2021-07-29 15:57:53 +00:00
|
|
|
// Source is the interface that wraps
|
|
|
|
// basic methods of extended ACL table source.
|
|
|
|
type Source interface {
|
|
|
|
// GetEACL reads the table from the source by identifier.
|
2020-10-02 12:23:52 +00:00
|
|
|
// It returns any error encountered.
|
|
|
|
//
|
|
|
|
// GetEACL must return exactly one non-nil value.
|
2020-11-24 12:49:02 +00:00
|
|
|
//
|
|
|
|
// Must return pkg/core/container.ErrEACLNotFound if requested
|
2021-07-29 15:57:53 +00:00
|
|
|
// eACL table is not in source.
|
2022-06-22 10:55:31 +00:00
|
|
|
GetEACL(cid.ID) (*containercore.EACL, error)
|
2020-10-02 12:23:52 +00:00
|
|
|
}
|