Documentation ¶
Index ¶
- type Service
- func (s *Service) ListEvidences(_ context.Context, _ *evidence.ListEvidencesRequest) (*evidence.ListEvidencesResponse, error)
- func (s *Service) RegisterEvidenceHook(evidenceHook evidence.EvidenceHookFunc)
- func (s *Service) StoreEvidence(_ context.Context, req *evidence.StoreEvidenceRequest) (resp *evidence.StoreEvidenceResponse, err error)
- func (s *Service) StoreEvidences(stream evidence.EvidenceStore_StoreEvidencesServer) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { evidence.UnimplementedEvidenceStoreServer // contains filtered or unexported fields }
Service is an implementation of the Clouditor req service (evidenceServer)
func NewService ¶
func NewService() *Service
func (*Service) ListEvidences ¶
func (s *Service) ListEvidences(_ context.Context, _ *evidence.ListEvidencesRequest) (*evidence.ListEvidencesResponse, error)
ListEvidences is a method implementation of the evidenceServer interface: It returns the evidences lying in the req storage
func (*Service) RegisterEvidenceHook ¶ added in v1.3.11
func (s *Service) RegisterEvidenceHook(evidenceHook evidence.EvidenceHookFunc)
func (*Service) StoreEvidence ¶
func (s *Service) StoreEvidence(_ context.Context, req *evidence.StoreEvidenceRequest) (resp *evidence.StoreEvidenceResponse, err error)
StoreEvidence is a method implementation of the evidenceServer interface: It receives a req and stores it
func (*Service) StoreEvidences ¶
func (s *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.