Documentation ¶
Index ¶
- func RegsiterDriver(name string, uploader Uploader, uploaderConfig UploaderConfig)
- type AccessToken
- type CreateFileResult
- type DirInfo
- type FileItem
- type FileListData
- type FilePart
- type FileParts
- type ImageHostingCFWorkersUploader
- func (u *ImageHostingCFWorkersUploader) GetDownloadUrl(path string) (string, error)
- func (u *ImageHostingCFWorkersUploader) GetUploadUrl(path string) (string, error)
- func (u *ImageHostingCFWorkersUploader) InitUploader(c *echo.Group) error
- func (u *ImageHostingCFWorkersUploader) Put(path string, data []byte) error
- type ImageHostingCFWorkersUploaderConfig
- type LocalFileSignJWTClaims
- type LocalUploader
- type LocalUploaderConfig
- type OpenApiResp
- type PreUploadUrlResp
- type RemoteUploader
- type RemoteUploaderConfig
- type S3Uploader
- type S3UploaderConfig
- type UploadAsyncResultResp
- type UploadCompleteResp
- type Uploader
- type UploaderConfig
- type YunPan123OpenAPIUploader
- type YunPan123OpenAPIUploaderConfig
- type YunPan123Uploader
- type YunPan123UploaderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegsiterDriver ¶
func RegsiterDriver(name string, uploader Uploader, uploaderConfig UploaderConfig)
Types ¶
type AccessToken ¶
type CreateFileResult ¶
type FileListData ¶
type ImageHostingCFWorkersUploader ¶
type ImageHostingCFWorkersUploader struct {
// contains filtered or unexported fields
}
func (*ImageHostingCFWorkersUploader) GetDownloadUrl ¶
func (u *ImageHostingCFWorkersUploader) GetDownloadUrl(path string) (string, error)
func (*ImageHostingCFWorkersUploader) GetUploadUrl ¶
func (u *ImageHostingCFWorkersUploader) GetUploadUrl(path string) (string, error)
func (*ImageHostingCFWorkersUploader) InitUploader ¶
func (u *ImageHostingCFWorkersUploader) InitUploader(c *echo.Group) error
type LocalFileSignJWTClaims ¶
type LocalFileSignJWTClaims struct { Path string `json:"path"` jwt.StandardClaims }
type LocalUploader ¶
type LocalUploader struct {
// contains filtered or unexported fields
}
func (*LocalUploader) GetDownloadUrl ¶
func (u *LocalUploader) GetDownloadUrl(path string) (string, error)
func (*LocalUploader) GetUploadUrl ¶
func (u *LocalUploader) GetUploadUrl(path string) (string, error)
func (*LocalUploader) InitUploader ¶
func (u *LocalUploader) InitUploader(c *echo.Group) error
type LocalUploaderConfig ¶
type OpenApiResp ¶
type PreUploadUrlResp ¶
type PreUploadUrlResp struct {
PresignedURL string `json:"presignedURL"`
}
type RemoteUploader ¶
type RemoteUploader struct {
// contains filtered or unexported fields
}
func (*RemoteUploader) GetDownloadUrl ¶
func (u *RemoteUploader) GetDownloadUrl(path string) (string, error)
func (*RemoteUploader) GetUploadUrl ¶
func (u *RemoteUploader) GetUploadUrl(path string) (string, error)
func (*RemoteUploader) InitUploader ¶
func (u *RemoteUploader) InitUploader(c *echo.Group) error
type RemoteUploaderConfig ¶
type S3Uploader ¶
type S3Uploader struct {
// contains filtered or unexported fields
}
func (*S3Uploader) GetDownloadUrl ¶
func (u *S3Uploader) GetDownloadUrl(path string) (string, error)
func (*S3Uploader) GetUploadUrl ¶
func (u *S3Uploader) GetUploadUrl(path string) (string, error)
func (*S3Uploader) InitUploader ¶
func (u *S3Uploader) InitUploader(c *echo.Group) error
type S3UploaderConfig ¶
type UploadAsyncResultResp ¶
type UploadCompleteResp ¶
type Uploader ¶
type UploaderConfig ¶
type UploaderConfig interface { }
type YunPan123OpenAPIUploader ¶
type YunPan123OpenAPIUploader struct {
// contains filtered or unexported fields
}
func (*YunPan123OpenAPIUploader) GetDownloadUrl ¶
func (y *YunPan123OpenAPIUploader) GetDownloadUrl(path string) (string, error)
func (*YunPan123OpenAPIUploader) GetUploadUrl ¶
func (y *YunPan123OpenAPIUploader) GetUploadUrl(path string) (string, error)
func (*YunPan123OpenAPIUploader) InitUploader ¶
func (y *YunPan123OpenAPIUploader) InitUploader(c *echo.Group) error
type YunPan123Uploader ¶
type YunPan123Uploader struct {
// contains filtered or unexported fields
}
func (*YunPan123Uploader) GetDownloadUrl ¶
func (y *YunPan123Uploader) GetDownloadUrl(path string) (string, error)
func (*YunPan123Uploader) GetUploadUrl ¶
func (y *YunPan123Uploader) GetUploadUrl(path string) (string, error)
func (*YunPan123Uploader) InitUploader ¶
func (y *YunPan123Uploader) InitUploader(c *echo.Group) error
Click to show internal directories.
Click to hide internal directories.