working commit
This commit is contained in:
@@ -22,8 +22,10 @@ func (oper *Operator) FileExists(param *FileExistsParams) (int, *FileExistsResul
|
||||
|
||||
// Put file
|
||||
type PutFileParams struct {
|
||||
Filepath string
|
||||
Source string
|
||||
ContentType string
|
||||
ContentLength string
|
||||
Filepath string
|
||||
Source io.ReadCloser
|
||||
}
|
||||
type PutFileResult struct{}
|
||||
|
||||
@@ -37,9 +39,12 @@ func (oper *Operator) PutFile(param *PutFileParams) (int, *PutFileResult, error)
|
||||
// Get file
|
||||
type GetFileParams struct {
|
||||
Filepath string
|
||||
Dest io.Writer
|
||||
}
|
||||
type GetFileResult struct{}
|
||||
type GetFileResult struct {
|
||||
ContentType string
|
||||
ContentLength string
|
||||
Source io.ReadCloser
|
||||
}
|
||||
|
||||
func (oper *Operator) GetFile(param *GetFileParams) (int, *GetFileResult, error) {
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user