assessment

package
v1.3.14 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DefaultEvidenceStoreAddress specifies the default gRPC address of the evidence store.
	DefaultEvidenceStoreAddress = "localhost:9090"

	// DefaultEvidenceStoreAddress specifies the default gRPC address of the orchestrator.
	DefaultOrchestratorAddress = "localhost:9090"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// Embedded for FWD compatibility
	assessment.UnimplementedAssessmentServer
	// contains filtered or unexported fields
}

Service is an implementation of the Clouditor Assessment service. It should not be used directly, but rather the NewService constructor should be used. It implements the AssessmentServer interface.

func NewService added in v1.3.4

func NewService(opts ...ServiceOption) *Service

NewService creates a new assessment service with default values.

func (*Service) AssessEvidence added in v1.3.6

AssessEvidence is a method implementation of the assessment interface: It assesses a single evidence

func (*Service) AssessEvidences added in v1.3.6

func (s *Service) AssessEvidences(stream assessment.Assessment_AssessEvidencesServer) (err error)

AssessEvidences is a method implementation of the assessment interface: It assesses multiple evidences (stream)

func (*Service) ListAssessmentResults added in v1.3.5

ListAssessmentResults is a method implementation of the assessment interface

func (*Service) RegisterAssessmentResultHook added in v1.3.11

func (s *Service) RegisterAssessmentResultHook(assessmentResultsHook func(result *assessment.AssessmentResult, err error))

type ServiceOption added in v1.3.14

type ServiceOption func(*Service)

ServiceOption is a functional option type to configure the assessment service.

func WithEvidenceStoreAddress added in v1.3.14

func WithEvidenceStoreAddress(address string) ServiceOption

WithEvidenceStoreAddress is an option to configure the evidence store gRPC address.

func WithOrchestratorAddress added in v1.3.14

func WithOrchestratorAddress(address string) ServiceOption

WithEvidenceStoreAddress is an option to configure the orchestrator gRPC address.

Jump to

Keyboard shortcuts

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