filehandler

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(client filehandler.FileserviceClient, targetfilename string, outfilename string) (err error)

function deisgned to download a file from the server to the client machine..

func UploadFile

func UploadFile(client filehandler.FileserviceClient, filename string) (err error)

function designed to upload a file from the client to the server.

Types

type FHServer

type FHServer struct {
	filehandler.UnimplementedFileserviceServer
}

structure defining a Filehandler Server

func (*FHServer) DownloadFile

func (fhs *FHServer) DownloadFile(fsrv filehandler.Fileservice_DownloadFileServer) (err error)

function designed to download a file from the client's machine to the server.

the filename will be transmitted via the rpc's metadata header information. the name cleansing will take place on the agent side so the server does not have to account for a different OS.

func (*FHServer) UploadFile

function designed to upload a file from the server to the machine the client is running on.

Jump to

Keyboard shortcuts

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