Documentation
¶
Index ¶
- func Delete(key string) error
- func Exist(key string) bool
- func Get(key string) (*minio.Object, error)
- func GetPresignedURL(key string, fileName string, expiration time.Duration) (string, error)
- func GetUploadPresignedURL(key string, expiration time.Duration) (string, error)
- func GetWithPath(key string, path string) error
- func Init()
- func Put(key string, reader io.Reader, objectSize int64) error
- func PutByPath(key string, path string) error
- func PutBytes(key string, data []byte) error
- func Size(key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPresignedURL ¶
GetPresignedURL gets the presigned URL for the file pointed to by key.
func GetUploadPresignedURL ¶
GetUploadPresignedURL gets the presigned URL for the file upload, use PUT method in frontend.
func GetWithPath ¶
GetWithPath downloads and saves the object as a file in the local filesystem by key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.