Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
*Storage
}
func NewS3StorageFromURL ¶
func (*S3) GetEncryptedURL ¶
func (*S3) GetObjectPath ¶
type Storage ¶
type Storage struct { //ID primitive.ObjectID `bson:"_id" json:"id"` Ak string `bson:"ak" json:"ak"` Sk string `bson:"-" json:"sk"` Endpoint string `bson:"endpoint" json:"endpoint"` Bucket string `bson:"bucket" json:"bucket"` Subfolder string `bson:"subfolder" json:"subfolder"` Insecure bool `bson:"insecure" json:"insecure"` IsDefault bool `bson:"is_default" json:"is_default"` EncryptedSk string `bson:"encryptedSk" json:"-"` UpdatedBy string `bson:"updated_by" json:"updated_by"` UpdateTime int64 `bson:"update_time" json:"update_time"` Provider int8 `bson:"provider" json:"provider"` }
Click to show internal directories.
Click to hide internal directories.