Documentation
¶
Index ¶
- type S3
- func (s *S3) CreatePresignedURL(ctx context.Context, filepath string, expire time.Duration) (string, *controller.APIError)
- func (s *S3) DeleteFile(ctx context.Context, filepath string) *controller.APIError
- func (s *S3) GetFile(ctx context.Context, filepath string, headers http.Header) (*controller.File, *controller.APIError)
- func (s *S3) GetFileWithPresignedURL(ctx context.Context, filepath, signature string, headers http.Header) (*controller.File, *controller.APIError)
- func (s *S3) ListFiles(ctx context.Context) ([]string, *controller.APIError)
- func (s *S3) PutFile(ctx context.Context, content io.ReadSeeker, filepath string, ...) (string, *controller.APIError)
- type S3Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) CreatePresignedURL ¶
func (*S3) DeleteFile ¶
func (*S3) GetFile ¶
func (s *S3) GetFile( ctx context.Context, filepath string, headers http.Header, ) (*controller.File, *controller.APIError)
func (*S3) GetFileWithPresignedURL ¶ added in v0.1.1
func (s *S3) GetFileWithPresignedURL( ctx context.Context, filepath, signature string, headers http.Header, ) (*controller.File, *controller.APIError)
Click to show internal directories.
Click to hide internal directories.