client

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package client contains a client implementation for making requests against desktop proxy instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a structure used by the kvdi-app for sending traffic to and from the kvdi-proxy instances.

func New

func New(logger logr.Logger, addr string) *Client

New returns a new proxy client to send requests to the given address.

func (*Client) AudioProxy

func (p *Client) AudioProxy() (*proxyproto.Conn, error)

AudioProxy returns a new connection for proxying a display stream.

func (*Client) DisplayProxy

func (p *Client) DisplayProxy() (*proxyproto.Conn, error)

DisplayProxy returns a new connection for proxying a display stream.

func (*Client) GetFile

GetFile will retrieve a file on the desktop's filesystem.

func (*Client) PutFile

func (p *Client) PutFile(req *proxyproto.FPutRequest) error

PutFile will send a file to the desktop's filesystem.

func (*Client) StatFile

func (p *Client) StatFile(req *proxyproto.FStatRequest) (io.ReadCloser, error)

StatFile will stat a path on the desktop's filesystem. The returned reader contains json to be presented to the requestor.

Jump to

Keyboard shortcuts

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