Documentation
¶
Index ¶
- type Config
- type Provider
- func (p *Provider) CreateFolder(ctx context.Context, parent *string, name string, metadata map[string]string) (*string, error)
- func (p *Provider) GetContent(ctx context.Context, id string, start int64, end int64) ([]byte, error)
- func (p *Provider) ToTusHandler(storageProviderId uuid.UUID, basePath string, uploadPrefix string, ...) (*handler.Handler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Region string
Bucket string
AccessKeyID string
SecretAccessKey string
Endpoint string // optional; leave empty for real AWS S3
}
Config carries the per-request S3 credentials and target. Your Majesty should populate this from whatever source is appropriate (database, JWT claims, request headers, etc.)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) CreateFolder ¶
func (*Provider) GetContent ¶
Click to show internal directories.
Click to hide internal directories.