Documentation
¶
Index ¶
- type Service
- func (s *Service) ListEvidences(_ context.Context, _ *evidence.ListEvidencesRequest) (*evidence.ListEvidencesResponse, error)
- func (s *Service) StoreEvidence(_ context.Context, e *evidence.Evidence) (*evidence.StoreEvidenceResponse, 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 evidence 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 evidence storage
func (*Service) StoreEvidence ¶
func (s *Service) StoreEvidence(_ context.Context, e *evidence.Evidence) (*evidence.StoreEvidenceResponse, error)
StoreEvidence is a method implementation of the evidenceServer interface: It receives an evidence 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.