Documentation ¶
Index ¶
- func WithStorage(storage persistence.Storage) service.Option[Service]
- type Service
- func (svc *Service) GetEvidence(ctx context.Context, req *evidence.GetEvidenceRequest) (res *evidence.Evidence, err error)
- func (svc *Service) ListEvidences(ctx context.Context, req *evidence.ListEvidencesRequest) (res *evidence.ListEvidencesResponse, err error)
- func (svc *Service) RegisterEvidenceHook(evidenceHook evidence.EvidenceHookFunc)
- func (svc *Service) StoreEvidence(ctx context.Context, req *evidence.StoreEvidenceRequest) (res *evidence.StoreEvidenceResponse, err error)
- func (svc *Service) StoreEvidences(stream evidence.EvidenceStore_StoreEvidencesServer) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithStorage ¶
func WithStorage(storage persistence.Storage) service.Option[Service]
Types ¶
type Service ¶
type Service struct { evidence.UnimplementedEvidenceStoreServer // contains filtered or unexported fields }
Service is an implementation of the Clouditor req service (evidenceServer)
func (*Service) GetEvidence ¶
func (svc *Service) GetEvidence(ctx context.Context, req *evidence.GetEvidenceRequest) (res *evidence.Evidence, err error)
GetEvidence is a method implementation of the evidenceServer interface: It returns a particular evidence in the storage
func (*Service) ListEvidences ¶
func (svc *Service) ListEvidences(ctx context.Context, req *evidence.ListEvidencesRequest) (res *evidence.ListEvidencesResponse, err error)
ListEvidences is a method implementation of the evidenceServer interface: It returns the evidences lying in the storage
func (*Service) RegisterEvidenceHook ¶
func (svc *Service) RegisterEvidenceHook(evidenceHook evidence.EvidenceHookFunc)
func (*Service) StoreEvidence ¶
func (svc *Service) StoreEvidence(ctx context.Context, req *evidence.StoreEvidenceRequest) (res *evidence.StoreEvidenceResponse, err error)
StoreEvidence is a method implementation of the evidenceServer interface: It receives a req and stores it
func (*Service) StoreEvidences ¶
func (svc *Service) StoreEvidences(stream evidence.EvidenceStore_StoreEvidencesServer) (err error)
StoreEvidences is a method implementation of the evidenceServer interface: It receives evidences and stores them
Click to show internal directories.
Click to hide internal directories.