grpc

package
v0.0.0-...-0000b31 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 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 Server

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

Server implements pb.IstioCAService and provides the service on the specified port.

func New

func New(ca ca.CertificateAuthority, hostname string, port int) *Server

New creates a new instance of `IstioCAServiceServer`.

func (*Server) HandleCSR

func (s *Server) HandleCSR(ctx context.Context, request *pb.Request) (*pb.Response, error)

HandleCSR handles an incoming certificate signing request (CSR). It does proper validation (e.g. authentication) and upon validated, signs the CSR and returns the resulting certificate. If not approved, reason for refusal to sign is returned as part of the response object.

func (*Server) Run

func (s *Server) Run() error

Run starts a GRPC server on the specified port.

Jump to

Keyboard shortcuts

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