Documentation ¶
Index ¶
- Variables
- func COSPresignedValues(db *ObjectDB, key string, exp time.Duration) url.Values
- func HMAC(key, msg, signMethod string) []byte
- type AuthTime
- type ObjectDB
- func (db *ObjectDB) Client() (*minio.Client, error)
- func (db *ObjectDB) Delete(key string) error
- func (db *ObjectDB) DeleteObject(ctx context.Context, meta *filesystem.ObjectMeta) error
- func (db *ObjectDB) DownloadUrl(key string) (string, error)
- func (db *ObjectDB) ListObjectByGroup(ctx context.Context, grp string) ([]*filesystem.ObjectMeta, error)
- func (db *ObjectDB) LivenessCheck() map[string]string
- func (db *ObjectDB) PresignedPutObject(ctx context.Context, meta *filesystem.ObjectMeta, exp time.Duration) (string, error)
- func (db *ObjectDB) ProtectURL(ctx context.Context, meta *filesystem.ObjectMeta, exp time.Duration) (*url.URL, error)
- func (db *ObjectDB) PublicURL(meta *filesystem.ObjectMeta) *url.URL
- func (db *ObjectDB) PutObject(ctx context.Context, r io.Reader, meta *filesystem.ObjectMeta) error
- func (db *ObjectDB) Read(key string) ([]byte, error)
- func (db *ObjectDB) ReadObject(ctx context.Context, w io.Writer, meta *filesystem.ObjectMeta) error
- func (db *ObjectDB) SetDefault()
- func (db *ObjectDB) StatObject(key string) (*filesystem.ObjectMeta, error)
- func (db *ObjectDB) StatsObject(ctx context.Context, meta *filesystem.ObjectMeta) (*filesystem.ObjectMeta, error)
- func (db *ObjectDB) Upload(key string, content []byte) error
- type PresignedFn
- type S3Endpoint
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGetObjectOptions = minio.GetObjectOptions{} DefaultRemoveObjectOptions = minio.RemoveObjectOptions{} )
Functions ¶
func COSPresignedValues ¶
Types ¶
type AuthTime ¶
type AuthTime struct { SignStartTime time.Time SignEndTime time.Time KeyStartTime time.Time KeyEndTime time.Time }
AuthTime is a struct storing the q-signSearch-time and q-key-time which are needed to generate signature
func NewAuthTime ¶
type ObjectDB ¶
type ObjectDB struct { Endpoint string Region string AccessKeyID string SecretAccessKey types.Password BucketName string Secure bool UrlExpire types.Duration Presigned PresignedFn `env:"-"` }
ObjectDB Deprecated
func (*ObjectDB) DeleteObject ¶
func (db *ObjectDB) DeleteObject(ctx context.Context, meta *filesystem.ObjectMeta) error
func (*ObjectDB) DownloadUrl ¶ added in v1.2.3
func (*ObjectDB) ListObjectByGroup ¶
func (db *ObjectDB) ListObjectByGroup(ctx context.Context, grp string) ([]*filesystem.ObjectMeta, error)
func (*ObjectDB) LivenessCheck ¶
func (*ObjectDB) PresignedPutObject ¶
func (db *ObjectDB) PresignedPutObject(ctx context.Context, meta *filesystem.ObjectMeta, exp time.Duration) (string, error)
func (*ObjectDB) ProtectURL ¶
func (db *ObjectDB) ProtectURL(ctx context.Context, meta *filesystem.ObjectMeta, exp time.Duration) (*url.URL, error)
func (*ObjectDB) PublicURL ¶
func (db *ObjectDB) PublicURL(meta *filesystem.ObjectMeta) *url.URL
func (*ObjectDB) PutObject ¶
func (db *ObjectDB) PutObject(ctx context.Context, r io.Reader, meta *filesystem.ObjectMeta) error
func (*ObjectDB) ReadObject ¶
func (db *ObjectDB) ReadObject(ctx context.Context, w io.Writer, meta *filesystem.ObjectMeta) error
func (*ObjectDB) SetDefault ¶ added in v1.2.3
func (db *ObjectDB) SetDefault()
func (*ObjectDB) StatObject ¶ added in v1.4.6
func (db *ObjectDB) StatObject(key string) (*filesystem.ObjectMeta, error)
StatObject Deprecated
func (*ObjectDB) StatsObject ¶
func (db *ObjectDB) StatsObject(ctx context.Context, meta *filesystem.ObjectMeta) (*filesystem.ObjectMeta, error)
Click to show internal directories.
Click to hide internal directories.