Documentation
¶
Index ¶
Constants ¶
View Source
const ( MinioPublicAvatarBucketPolicy = `` /* 397-byte string literal not displayed */ MinioPublicAttachBucketPolicy = `` /* 397-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket interface { // Create a storage bucket and use the provider to distinguish the fs server. Create() error }
type Fs ¶
type Fs struct { Provider string BucketName string FileName string ContentType string FileBuffer io.Reader FileSize int64 }
type Minio ¶
type Minio struct { Region string Ctx context.Context Client *minio.Client // contains filtered or unexported fields }
func NewDefaultMinio ¶
func NewDefaultMinio() *Minio
func (*Minio) ListBuckets ¶
func (*Minio) MakeBucket ¶
type MinioBucket ¶
type MinioFiles ¶
type MinioFiles struct { Ctx context.Context Client *minio.Client BucketName string ObjectName string ContentType string Buffer io.Reader Size int64 }
func NewMinioFiles ¶
func NewMinioRemoveFile ¶
func NewMinioRemoveFile(client *minio.Client, ctx context.Context, bucket, name string) *MinioFiles
func (*MinioFiles) Put ¶
func (x *MinioFiles) Put() (*minio.UploadInfo, error)
func (*MinioFiles) Remove ¶
func (x *MinioFiles) Remove() error
Click to show internal directories.
Click to hide internal directories.