Documentation ¶
Index ¶
- type BucketMetrics
- type S3AO
- func (s S3AO) GetBucketMetrics() (metrics BucketMetrics)
- func (s S3AO) GetObject(bin string, filename string, start int64, end int64) (*minio.Object, error)
- func (s S3AO) GetObjectKey(bin string, filename string) (key string)
- func (s S3AO) ListObjects() (objects []string, err error)
- func (s S3AO) PresignedGetObject(bin string, filename string, mime string) (presignedURL *url.URL, err error)
- func (s S3AO) PutObject(bin string, filename string, data io.Reader, size int64) (err error)
- func (s S3AO) RemoveBucket() error
- func (s S3AO) RemoveKey(key string) error
- func (s S3AO) RemoveObject(bin string, filename string) error
- func (s S3AO) SetTrace(trace bool)
- func (s S3AO) Status() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketMetrics ¶
type S3AO ¶
type S3AO struct {
// contains filtered or unexported fields
}
func Init ¶
func Init(endpoint, bucket, region, accessKey, secretKey string, secure bool, presignExpiry time.Duration) (S3AO, error)
Initialize S3AO
func (S3AO) GetBucketMetrics ¶
func (s S3AO) GetBucketMetrics() (metrics BucketMetrics)
func (S3AO) ListObjects ¶
func (S3AO) PresignedGetObject ¶
func (s S3AO) PresignedGetObject(bin string, filename string, mime string) (presignedURL *url.URL, err error)
This only works with objects that are not encrypted
func (S3AO) RemoveBucket ¶
Click to show internal directories.
Click to hide internal directories.