Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAServer

type CAServer struct {
	URL            string
	GRPCServer     *grpc.Server
	Authenticators []security.Authenticator

	KeyCertBundle util.KeyCertBundle
	// contains filtered or unexported fields
}

    CAServer is a mock CA server.

    func NewCAServer

    func NewCAServer(port int, opts ...grpc.ServerOption) (*CAServer, error)

      NewCAServer creates a new CA server that listens on port.

      func NewCAServerWithKeyCert

      func NewCAServerWithKeyCert(port int, key, cert []byte, opts ...grpc.ServerOption) (*CAServer, error)

      func (*CAServer) Check

        Check handles health check requests.

        func (*CAServer) CreateCertificate

        func (s *CAServer) CreateCertificate(ctx context.Context, request *pb.IstioCertificateRequest) (
        	*pb.IstioCertificateResponse, error)

          CreateCertificate handles CSR.

          func (*CAServer) RejectCSR

          func (s *CAServer) RejectCSR(reject bool)

            RejectCSR specifies whether to send error response to CSR.

            func (*CAServer) SendEmptyCert

            func (s *CAServer) SendEmptyCert()

              SendEmptyCert force CA server send empty cert chain.

              func (*CAServer) Watch

                Watch handles health check streams.

                Source Files