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 ¶
func (fhx *FHServer) UploadFile(fr *filehandler.FileRequest, fsrv filehandler.Fileservice_UploadFileServer) (err error)
function designed to upload a file from the server to the machine the client is running on.
Click to show internal directories.
Click to hide internal directories.