Documentation ¶
Index ¶
- type Option
- type Service
- func (s *Service) Get(req *objectV2.GetRequest, stream objectSvc.GetObjectStream) error
- func (s *Service) GetRange(req *objectV2.GetRangeRequest, stream objectSvc.GetObjectRangeStream) error
- func (s *Service) GetRangeHash(ctx context.Context, req *objectV2.GetRangeHashRequest) (*objectV2.GetRangeHashResponse, error)
- func (s *Service) Head(ctx context.Context, req *objectV2.HeadRequest) (*objectV2.HeadResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*cfg)
Option represents Service constructor option.
func WithInternalService ¶
func WithKeyStorage ¶
func WithKeyStorage(ks *objutil.KeyStorage) Option
WithKeyStorage returns option to set local private key storage.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements Get operation of Object service v2.
func NewService ¶
NewService constructs Service instance from provided options.
func (*Service) Get ¶
func (s *Service) Get(req *objectV2.GetRequest, stream objectSvc.GetObjectStream) error
Get calls internal service and returns v2 object stream.
func (*Service) GetRange ¶
func (s *Service) GetRange(req *objectV2.GetRangeRequest, stream objectSvc.GetObjectRangeStream) error
GetRange calls internal service and returns v2 payload range stream.
func (*Service) GetRangeHash ¶
func (s *Service) GetRangeHash(ctx context.Context, req *objectV2.GetRangeHashRequest) (*objectV2.GetRangeHashResponse, error)
GetRangeHash calls internal service and returns v2 response.
func (*Service) Head ¶
func (s *Service) Head(ctx context.Context, req *objectV2.HeadRequest) (*objectV2.HeadResponse, error)
Head serves ForstFS API v2 compatible HEAD requests.
Click to show internal directories.
Click to hide internal directories.