Documentation ¶
Index ¶
- Variables
- type InnerRingFetcher
- type Option
- func WithContainerSource(v container.Source) Option
- func WithEACLValidatorOptions(v ...eacl.Option) Option
- func WithLocalStorage(v *engine.StorageEngine) Option
- func WithNetmapState(v netmap.State) Option
- func WithNextService(v objectSvc.ServiceServer) Option
- func WithSenderClassifier(v SenderClassifier) Option
- type SenderClassifier
- type Service
- func (b Service) Delete(ctx context.Context, request *object.DeleteRequest) (*object.DeleteResponse, error)
- func (b Service) Get(request *object.GetRequest, stream objectSvc.GetObjectStream) error
- func (b Service) GetRange(request *object.GetRangeRequest, stream objectSvc.GetObjectRangeStream) error
- func (b Service) GetRangeHash(ctx context.Context, request *object.GetRangeHashRequest) (*object.GetRangeHashResponse, error)
- func (b Service) Head(ctx context.Context, request *object.HeadRequest) (*object.HeadResponse, error)
- func (b Service) Put(ctx context.Context) (object.PutObjectStreamer, error)
- func (b Service) Search(request *object.SearchRequest, stream objectSvc.SearchStream) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type InnerRingFetcher ¶
type Option ¶
type Option func(*cfg)
Option represents Service constructor option.
func WithContainerSource ¶
WithContainerSource returns option to set container source.
func WithEACLValidatorOptions ¶
WithEACLValidator returns options to set eACL validator options.
func WithLocalStorage ¶
func WithLocalStorage(v *engine.StorageEngine) Option
WithLocalStorage returns options to set local object storage.
func WithNetmapState ¶
WithNetmapState returns options to set global netmap state.
func WithNextService ¶
func WithNextService(v objectSvc.ServiceServer) Option
WithNextService returns option to set next object service.
func WithSenderClassifier ¶
func WithSenderClassifier(v SenderClassifier) Option
WithSenderClassifier returns option to set sender classifier.
type SenderClassifier ¶
type SenderClassifier struct {
// contains filtered or unexported fields
}
func NewSenderClassifier ¶
func NewSenderClassifier(ir InnerRingFetcher, nm core.Source) SenderClassifier
fixme: update classifier constructor
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service checks basic ACL rules.
func (Service) Delete ¶
func (b Service) Delete( ctx context.Context, request *object.DeleteRequest) (*object.DeleteResponse, error)
func (Service) Get ¶
func (b Service) Get(request *object.GetRequest, stream objectSvc.GetObjectStream) error
func (Service) GetRange ¶
func (b Service) GetRange(request *object.GetRangeRequest, stream objectSvc.GetObjectRangeStream) error
func (Service) GetRangeHash ¶
func (b Service) GetRangeHash( ctx context.Context, request *object.GetRangeHashRequest) (*object.GetRangeHashResponse, error)
func (Service) Head ¶
func (b Service) Head( ctx context.Context, request *object.HeadRequest) (*object.HeadResponse, error)
func (Service) Search ¶
func (b Service) Search(request *object.SearchRequest, stream objectSvc.SearchStream) error
Click to show internal directories.
Click to hide internal directories.