Documentation ¶
Index ¶
Constants ¶
const DeleteFile = "DeleteFile"
DeleteFile is the Payload value from the Printer to Delete a file normally a *LCK file
const DestDir = "destDir"
DestDir is the Payload value from the Printer for the files dir on the filesystem
const DestName = "destName"
DestName is the Payload value from the Printer for the filename on the filesystem
const ListDirectory = "ListDir"
ListDirectory is the Payload value from the Printer to List Directory Values to avoid filename collisions
const MakeDir = "MakeDir"
MakeDir is the Payload value from the Printer to Make a Directory if it doesn't exit
const Operation = "theOperation"
Operation is the Payload field from the Printer for the the operation to happen, ListDir, MakeDir etc
const PutFile = "PutFile"
PutFile is the Payload value from the Printer to upload a file
const RemoveDir = "RemoveDir"
RemoveDir is the Payload value from the Printer to Delete a directory
const Sendfile = "sendfile"
Sendfile is the Payload field from the Printer for the the file itself
const XRXBADNAME = "XRXBADNAME"
XRXBADNAME is the filename is bad due to to FS constraints
const XRXDIREXISTS = "XRXDIREXISTS"
XRXDIREXISTS is the directory exists already
const XRXERROR = "XRXERROR"
XRXERROR is the default error message
const XRXNOTFOUND = "XRXNOTFOUND"
XRXNOTFOUND is the not found error message
Variables ¶
This section is empty.
Functions ¶
func HandleRequests ¶
HandleRequests takes the XeroxApi and handles all the List, Del, Remove, Put actions
Types ¶
type XeroxApi ¶
type XeroxApi interface { ListDirectory(directory string) (string, error) CleanPath(directory string) string DeleteDir(directory string) error PutFile(r *http.Request, directory string) ([]byte, error) MakeDirectory(directory string) error }
XeroxApi Interface for all Printer to Server Interactions
func NewFileSystemClient ¶
NewFileSystemClient creates a new UNIX FileSystem client
func NewGoogleClient ¶
NewGoogleClient creates a new Google Drive client