Documentation ¶
Index ¶
- type AwsService
- func (s *AwsService) Client() (*s3.Client, error)
- func (s *AwsService) DeleteFile(fullPath string) error
- func (s *AwsService) GetObjects(ctx context.Context) error
- func (s *AwsService) GetPathDefault(fullPath string) string
- func (s *AwsService) ReadFile(fullPath string) (*s3.GetObjectOutput, error)
- func (s *AwsService) UploadFile(ctx context.Context, payload *entities.File) (string, error)
- type BucketResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsService ¶
type AwsService struct {
// contains filtered or unexported fields
}
func NewAwsService ¶
func NewAwsService(cfg *config.AwsConfig) *AwsService
func (*AwsService) DeleteFile ¶
func (s *AwsService) DeleteFile(fullPath string) error
func (*AwsService) GetObjects ¶
func (s *AwsService) GetObjects(ctx context.Context) error
func (*AwsService) GetPathDefault ¶
func (s *AwsService) GetPathDefault(fullPath string) string
func (*AwsService) ReadFile ¶
func (s *AwsService) ReadFile(fullPath string) (*s3.GetObjectOutput, error)
func (*AwsService) UploadFile ¶
type BucketResponse ¶
type BucketResponse struct {
PathUrl string
}
Click to show internal directories.
Click to hide internal directories.