Documentation ¶
Index ¶
Constants ¶
View Source
const SSHPublicKey = `` /* 204-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCHandleFunc ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a LiveShare relay host server.
func NewServer ¶
func NewServer(opts ...ServerOption) (*Server, error)
NewServer creates a new Server. ServerOptions can be passed to configure the SSH password, backing service, secrets and more.
type ServerOption ¶
ServerOption is used to configure the Server.
func WithNonSecure ¶
func WithNonSecure() ServerOption
WithNonSecure configures the Server as non-secure.
func WithPassword ¶
func WithPassword(password string) ServerOption
WithPassword configures the Server password for SSH.
func WithRelaySAS ¶
func WithRelaySAS(sas string) ServerOption
WithRelaySAS configures the relay SAS configuration key.
func WithService ¶
func WithService(serviceName string, handler RPCHandleFunc) ServerOption
WithService accepts a mock RPC service for the Server to invoke.
func WithStream ¶
func WithStream(name string, stream io.ReadWriter) ServerOption
WithStream allows you to specify a mock data stream for the server.
Click to show internal directories.
Click to hide internal directories.