package
0.5.2
Repository: https://github.com/pkg6/go-flysystem.git
Documentation: pkg.go.dev

# README

Why is there this JWTS

In a certain company, due to the previous integration of OSS direct transmission, but when migrating to Google, the direct transmission function was not found yet. Therefore, we decided to write our own interface to provide the client with direct transmission

Method List

BuildToken(aud, disk, bucket string) (*TokenResponse, error)
ParseToken(token string) (*FlysystemClaims, error)
WithTokenUploadMultipart(fs *flysystem.Flysystem, token, fileName string, file *multipart.FileHeader) (*Response, error) 
WithTokenUploadReader(fs *flysystem.Flysystem, token, fileName string, reader io.Reader) (*Response, error)
WithTokenUploadFilePath(fs *flysystem.Flysystem, token, fileName, filePath string) (*Response, error)
WithTokenUploadBase64(fs *flysystem.Flysystem, token, fileName, base64 string) (*Response, error)
WithTokenDelete(fs *flysystem.Flysystem, token, fileName string) (*Response, error)
Delete(fs *flysystem.Flysystem, disk, bucket, fileName string) (*Response, error) 
UploadBase64(fs *flysystem.Flysystem, disk, bucket, fileName, base64Str string) (*Response, error)
UploadReader(fs *flysystem.Flysystem, disk, bucket, fileName string, reader io.Reader) (*Response, error)
UploadByte(fs *flysystem.Flysystem, disk, bucket, fileName string, contents []byte) (*Response, error) 

Code message

codeMessage
203Token is empty
403Token parsing failed
411file.Open()
305Driver not found
204Write error
412Base64 parsing failed
404gfs.Delete err