discovery

package
v1.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v1.3.6

type Configuration struct {
	Interval time.Duration
}

type ResultOntology added in v1.3.5

type ResultOntology struct {
	Result *structpb.ListValue `json:"result"`
}

type Service

type Service struct {
	discovery.UnimplementedDiscoveryServer

	Configurations map[discovery.Discoverer]*Configuration
	// TODO(oxisto) do not expose this. just makes tests easier for now
	AssessmentStream assessment.Assessment_AssessEvidencesClient

	EvidenceStoreStream evidence.EvidenceStore_StoreEvidencesClient
	// contains filtered or unexported fields
}

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

func NewService added in v1.3.3

func NewService() *Service

func (Service) Query added in v1.3.2

func (s Service) Query(_ context.Context, request *discovery.QueryRequest) (response *discovery.QueryResponse, err error)

func (Service) Shutdown added in v1.3.4

func (s Service) Shutdown()

func (*Service) Start

Start starts discovery

func (Service) StartDiscovery added in v1.3.3

func (s Service) StartDiscovery(discoverer discovery.Discoverer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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