Documentation ¶
Index ¶
- type Server
- func NewAPEServer(router policyengine.ChainRouter, reader containers, ir ir, nm netmap.Source, ...) Server
- func NewAuditService(next Server, log *logger.Logger, enabled *atomic.Bool) Server
- func NewExecutionService(exec ServiceExecutor, respSvc *response.Service) Server
- func NewSignService(key *ecdsa.PrivateKey, svc Server) Server
- type ServiceExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { Put(context.Context, *container.PutRequest) (*container.PutResponse, error) Get(context.Context, *container.GetRequest) (*container.GetResponse, error) Delete(context.Context, *container.DeleteRequest) (*container.DeleteResponse, error) List(context.Context, *container.ListRequest) (*container.ListResponse, error) }
Server is an interface of the FrostFS API Container service server.
func NewAPEServer ¶ added in v0.38.0
func NewAPEServer(router policyengine.ChainRouter, reader containers, ir ir, nm netmap.Source, frostFSIDClient frostfsidcore.SubjectProvider, srv Server) Server
func NewAuditService ¶ added in v0.42.0
func NewExecutionService ¶
func NewExecutionService(exec ServiceExecutor, respSvc *response.Service) Server
NewExecutionService wraps ServiceExecutor and returns Container Service interface.
func NewSignService ¶
func NewSignService(key *ecdsa.PrivateKey, svc Server) Server
type ServiceExecutor ¶
type ServiceExecutor interface { Put(context.Context, *session.Token, *container.PutRequestBody) (*container.PutResponseBody, error) Delete(context.Context, *session.Token, *container.DeleteRequestBody) (*container.DeleteResponseBody, error) Get(context.Context, *container.GetRequestBody) (*container.GetResponseBody, error) List(context.Context, *container.ListRequestBody) (*container.ListResponseBody, error) }
Click to show internal directories.
Click to hide internal directories.