Documentation ¶
Index ¶
- Variables
- func Collect(serviceId string, nonce []byte) ([]byte, error)
- func NewServer(opts ...service.ServiceOption[Server]) apicollection.CollectionServer
- func WithAdditionalGRPCOpts(opts ...grpc.DialOption) service.ServiceOption[Server]
- func WithOAuth2Authorizer(config *clientcredentials.Config) service.ServiceOption[Server]
- type Server
- func (srv *Server) Authorizer() clapi.Authorizer
- func (srv *Server) SetAuthorizer(auth clapi.Authorizer)
- func (s *Server) StartCollecting(_ context.Context, req *apicollection.StartCollectingRequest) (res *apicollection.StartCollectingResponse, err error)
- func (s *Server) StopCollecting(_ context.Context, req *apicollection.StopCollectingRequest) (*emptypb.Empty, error)
- type SystemComponentsIntegrity
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RemoteIntegrityComponent = "Remote Integrity Collection Module"
)
Functions ¶
func NewServer ¶
func NewServer(opts ...service.ServiceOption[Server]) apicollection.CollectionServer
func WithAdditionalGRPCOpts ¶
func WithAdditionalGRPCOpts(opts ...grpc.DialOption) service.ServiceOption[Server]
WithAdditionalGRPCOpts is an option to configure additional gRPC options.
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 { apicollection.UnimplementedCollectionServer // contains filtered or unexported fields }
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 (s *Server) StartCollecting(_ context.Context, req *apicollection.StartCollectingRequest) ( res *apicollection.StartCollectingResponse, err error)
func (*Server) StopCollecting ¶ added in v0.2.0
func (s *Server) StopCollecting(_ context.Context, req *apicollection.StopCollectingRequest) (*emptypb.Empty, error)
type SystemComponentsIntegrity ¶
type SystemComponentsIntegrity struct {
Status bool `json:"status"`
}
type Value ¶
type Value struct { voc.Resource SystemComponentsIntegrity `json:"systemComponentsIntegrity"` }
Click to show internal directories.
Click to hide internal directories.