tlslib

package
Version: v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 36 Imported by: 0

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) CreateFakeOmaha

func (s *Server) CreateFakeOmaha(ctx context.Context, req *tls.CreateFakeOmahaRequest) (_ *tls.FakeOmaha, err error)

CreateFakeOmaha implements TLS CreateFakeOmaha API.

func (*Server) DeleteFakeOmaha

func (s *Server) DeleteFakeOmaha(ctx context.Context, req *tls.DeleteFakeOmahaRequest) (*empty.Empty, error)

DeleteFakeOmaha implements TLS DeleteFakeOmaha API.

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) ProvisionLacros

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

ProvisionLacros implements TLS provision API for Lacros.

func (*Server) Serve

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

Serve starts the TLS server and serves client requests.

Directories

Path Synopsis
internal
nebraska
Package nebraska implements a fake Omaha server based on "nebraska.py".
Package nebraska implements a fake Omaha server based on "nebraska.py".
resource
Package resource helps to manage AIP resources (https://google.aip.dev/121).
Package resource helps to manage AIP resources (https://google.aip.dev/121).

Jump to

Keyboard shortcuts

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