evidences

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStorage added in v1.7.3

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 NewService

func NewService(opts ...service.Option[Service]) (svc *Service)

func (*Service) GetEvidence added in v1.7.3

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 added in v1.3.11

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL