2020-10-02 12:23:52 +00:00
|
|
|
package eacl
|
|
|
|
|
|
|
|
import (
|
2021-11-10 07:08:33 +00:00
|
|
|
cid "github.com/nspcc-dev/neofs-sdk-go/container/id"
|
|
|
|
"github.com/nspcc-dev/neofs-sdk-go/eacl"
|
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.
|
2021-05-31 11:03:17 +00:00
|
|
|
GetEACL(*cid.ID) (*eacl.Table, error)
|
2020-10-02 12:23:52 +00:00
|
|
|
}
|