Documentation

Overview

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Package tlslib provides the canonical implementation of a common TLS server.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Option

    type Option func(*Server) error

      Option to use to create a new TLS server.

      type Server

      type Server struct {
      	tls.UnimplementedCommonServer
      	// contains filtered or unexported fields
      }

        A Server is an implementation of a common TLS server.

        func NewServer

        func NewServer(ctx context.Context, c *grpc.ClientConn, options ...Option) (*Server, error)

          NewServer creates a new instance of common TLS server.

          func (*Server) ExecDutCommand

          func (s *Server) ExecDutCommand(req *tls.ExecDutCommandRequest, stream tls.Common_ExecDutCommandServer) error

            ExecDutCommand implements TLS ExecDutCommand API.

            func (*Server) FetchCrashes

            func (s *Server) FetchCrashes(req *tls.FetchCrashesRequest, stream tls.Common_FetchCrashesServer) error

              FetchCrashes implements TLS FetchCrashes API.

              func (*Server) GracefulStop

              func (s *Server) GracefulStop()

                GracefulStop stops TLS server gracefully.

                func (*Server) ProvisionDut

                func (s *Server) ProvisionDut(ctx context.Context, req *tls.ProvisionDutRequest) (*longrunning.Operation, error)

                  ProvisionDut implements TLS provision API.

                  func (*Server) Serve

                  func (s *Server) Serve(l net.Listener) error

                    Serve starts the TLS server and serves client requests.