Documentation
¶
Overview ¶
Package rdpclient implements an RDP client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { }
Client is the dummy RDP client.
func (*Client) GetClientLastActive ¶
GetClientLastActive returns the time of the last recorded activity.
func (*Client) Run ¶
Run starts the rdp client and blocks until the client disconnects, then runs the cleanup.
func (*Client) UpdateClientActivity ¶
func (c *Client) UpdateClientActivity()
UpdateClientActivity updates the client activity timestamp.
type Config ¶
type Config struct { // Addr is the network address of the RDP server, in the form host:port. Addr string // UserCertGenerator generates user certificates for RDP authentication. GenerateUserCert GenerateUserCertFn CertTTL time.Duration // AuthorizeFn is called to authorize a user connecting to a Windows desktop. AuthorizeFn func(login string) error // Conn handles TDP messages between Windows Desktop Service // and a Teleport Proxy. Conn *tdp.Conn // Encoder is an optional override for PNG encoding. Encoder *png.Encoder // AllowClipboard indicates whether the RDP connection should enable // clipboard sharing. AllowClipboard bool // AllowDirectorySharing indicates whether the RDP connection should enable // directory sharing. AllowDirectorySharing bool // Log is the logger for status messages. Log logrus.FieldLogger }
Config for creating a new Client.
Click to show internal directories.
Click to hide internal directories.