working commit

This commit is contained in:
2026-01-24 19:21:27 +02:00
parent d704a76bee
commit f2e33d9ff1
5 changed files with 71 additions and 6 deletions
+9 -4
View File
@@ -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