Documentation ¶
Index ¶
- func Init(configs ...Config) (err error)
- type Config
- type Uploader
- func (o *Uploader) BucketExists(bucketName string) (bool, error)
- func (o *Uploader) CreateBucket(ctx context.Context, bucketName string, location string) error
- func (o *Uploader) FGetObject(ctx context.Context, objectName, saveFilePath string, ...) error
- func (o *Uploader) FPutObject(ctx context.Context, objectName, filePath string, ...) (*minio.UploadInfo, error)
- func (o *Uploader) ListBuckets() ([]minio.BucketInfo, error)
- func (o *Uploader) ListObjects(bucketName string, opts *minio.ListObjectsOptions) <-chan minio.ObjectInfo
- func (g *Uploader) MinioClient() *minio.Client
- func (o *Uploader) PresignedGetObject(bucketName, objectName string, expiry time.Duration, reqParams url.Values) (u *url.URL, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string `json:"name,optional" yaml:"Name"` AccessKeyId string `json:"accessKeyId,optional" yaml:"AccessKeyId"` AccessKeySecret string `json:"accessKeySecret,optional" yaml:"AccessKeySecret"` Endpoint string `json:"endpoint,optional" yaml:"Endpoint"` Bucket string `json:"bucket,optional" yaml:"Bucket"` Dir string `json:"dir,optional" yaml:"Dir"` Domain string `json:"domain,optional" yaml:"Domain,optional"` UseSSL bool `json:"useSSL,optional" yaml:"UseSSL"` Open bool `json:"open,optional" yaml:"Open"` }
type Uploader ¶ added in v1.2.39
type Uploader struct {
// contains filtered or unexported fields
}
func (*Uploader) BucketExists ¶ added in v1.2.39
func (*Uploader) CreateBucket ¶ added in v1.2.39
func (*Uploader) FGetObject ¶ added in v1.2.39
func (*Uploader) FPutObject ¶ added in v1.2.39
func (*Uploader) ListBuckets ¶ added in v1.2.39
func (*Uploader) ListObjects ¶ added in v1.2.39
func (*Uploader) MinioClient ¶ added in v1.2.42
func (g *Uploader) MinioClient() *minio.Client
Click to show internal directories.
Click to hide internal directories.