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.
Package tlslib provides the canonical implementation of a common TLS server.
Index ¶
- Constants
- type FirmwareManifest
- type FirmwareManifestData
- type Option
- type Server
- func (s *Server) CreateFakeOmaha(ctx context.Context, req *tls.CreateFakeOmahaRequest) (_ *tls.FakeOmaha, err error)
- func (s *Server) DeleteFakeOmaha(ctx context.Context, req *tls.DeleteFakeOmahaRequest) (*empty.Empty, error)
- func (s *Server) ExecDutCommand(req *tls.ExecDutCommandRequest, stream tls.Common_ExecDutCommandServer) error
- func (s *Server) FetchCrashes(req *tls.FetchCrashesRequest, stream tls.Common_FetchCrashesServer) error
- func (s *Server) GracefulStop()
- func (s *Server) ProvisionDut(ctx context.Context, req *tls.ProvisionDutRequest) (*longrunning.Operation, error)
- func (s *Server) ProvisionLacros(ctx context.Context, req *tls.ProvisionLacrosRequest) (*longrunning.Operation, error)
- func (s *Server) Serve(l net.Listener) error
Constants ¶
const ( GsPath lacrosSourceType = iota DeviceFilePath )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirmwareManifest ¶
type FirmwareManifest map[string]FirmwareManifestData
type FirmwareManifestData ¶
type FirmwareManifestData struct { Host struct { Versions struct { Ro string `json:"ro"` Rw string `json:"rw"` } `json:"versions"` Keys struct { Root string `json:"root"` Recovery string `json:"recovery"` } `json:"keys"` Image string `json:"image"` } `json:"host"` Ec struct { Versions struct { Ro string `json:"ro"` Rw string `json:"rw"` } `json:"versions"` Image string `json:"image"` } `json:"ec"` SignatureId string `json:"signature_id"` }
type Server ¶
type Server struct { tls.UnimplementedCommonServer // contains filtered or unexported fields }
A Server is an implementation of a common TLS server.
func NewServer ¶
NewServer creates a new instance of common TLS server.
dutSSHKeyPath is an additional ssh key path to the alternate DUT SSH key. This key will be used if the default well-known key doesn't work.
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.
Source Files
¶
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). |