gnoi

package
v0.0.0-...-ca2f5af Latest Latest
Warning

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

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

Documentation

Overview

Package gnoi contains required services for running a gnoi server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents a target.

func NewServer

func NewServer(certSettings *cert.Settings, resetSettings *reset.Settings, notifyReset reset.Notifier, osSettings *os.Settings) (*Server, error)

NewServer returns a new server that can be used by the mock target.

func (*Server) PrepareAuthenticated

func (s *Server) PrepareAuthenticated() *grpc.Server

PrepareAuthenticated prepares a gRPC server with the CertificateManagement service running with full encryption and authentication.

func (*Server) PrepareEncrypted

func (s *Server) PrepareEncrypted() *grpc.Server

PrepareEncrypted prepares a gRPC server with the CertificateManagement service running with encryption but without authentication.

func (*Server) RegCertificateManagement

func (s *Server) RegCertificateManagement(g *grpc.Server)

RegCertificateManagement registers only the Certificate Management service in the gRPC Server.

func (*Server) Register

func (s *Server) Register(g *grpc.Server)

Register all implemented gRPC services.

func (*Server) RegisterCertNotifier

func (s *Server) RegisterCertNotifier(f cert.Notifier)

RegisterCertNotifier registers a function that will be called everytime the number of Certificates or CA Certificates changes.

Directories

Path Synopsis
pb
os
pb
pb

Jump to

Keyboard shortcuts

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