workload

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package workload contains service specific code for the Workload Configuration Collection Module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

NewServer creates a new workload server with default values.

func WithOAuth2Authorizer added in v0.2.0

func WithOAuth2Authorizer(config *clientcredentials.Config) service.ServiceOption[Server]

WithOAuth2Authorizer is an option to use an OAuth 2.0 authorizer

Types

type Server added in v0.2.0

type Server struct {
	collection.UnimplementedCollectionServer
	// contains filtered or unexported fields
}

Server is an implementation of the Workload Configuration service.

func (*Server) Authorizer added in v0.2.0

func (srv *Server) Authorizer() clapi.Authorizer

Authorizer implements UsesAuthorizer

func (*Server) SetAuthorizer added in v0.2.0

func (srv *Server) SetAuthorizer(auth clapi.Authorizer)

SetAuthorizer implements UsesAuthorizer

func (*Server) StartCollecting added in v0.2.0

func (srv *Server) StartCollecting(_ context.Context, req *collection.StartCollectingRequest) (
	resp *collection.StartCollectingResponse, err error)

StartCollecting starts collecting configurations from Kubernetes and OpenStack, creates evidences and sends the evidences to the Evaluation Manager.

func (*Server) StopCollecting added in v0.2.0

StopCollecting stops collecting configurations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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