Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewService)
Functions ¶
This section is empty.
Types ¶
type StorageService ¶
type StorageService struct { Region string // contains filtered or unexported fields }
func NewService ¶
func NewService(c *config.Config, logger *zap.Logger, minioCli *minio.Client) *StorageService
func (*StorageService) PutObject ¶
func (s *StorageService) PutObject(objectName string, fh *multipart.FileHeader) (*schema.ObjectSchema, error)
PutObject put object to bucket.
func (*StorageService) SetReadOnlyBucketPolicy ¶
func (s *StorageService) SetReadOnlyBucketPolicy(ctx context.Context, bucketName string) error
SetReadOnlyBucketPolicy set read-only permissions on an existing bucket.
Click to show internal directories.
Click to hide internal directories.