Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
Wrapper around minio library
func NewClient ¶
func NewClient(dir string, debug bool, cfg *environment.EnvConfig) (*MinioClient, error)
NewClient creates a new minio client
func (*MinioClient) DownloadFile ¶ added in v0.2.0
DownloadFile downloads a file from minio by the given input url, if customPath = "" file path will be the same as the URL object path
func (*MinioClient) UploadFile ¶
func (c *MinioClient) UploadFile( ctx context.Context, filePath string, public bool, ) (string, error)
UploadFile uploads a file to minio and returns the share link
Click to show internal directories.
Click to hide internal directories.