service

package
v0.0.0-...-30dbe51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL