Documentation
¶
Index ¶
- type Config
- type Provider
- func (p *Provider) Delete(ctx context.Context, path string) error
- func (p *Provider) Download(ctx context.Context, path string) (io.ReadCloser, error)
- func (p *Provider) List(ctx context.Context, prefix string) ([]models.FileInfo, error)
- func (p *Provider) Upload(ctx context.Context, input *models.UploadInput) (*models.UploadOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Bucket string `yaml:"bucket" validate:"required"`
Region string `yaml:"region" validate:"required"`
AccessKeyID string `yaml:"accessKeyId" validate:"required_with=SecretAccessKey"`
SecretAccessKey string `yaml:"secretAccessKey" validate:"required_with=AccessKeyID"`
SessionToken string `yaml:"sessionToken"`
Endpoint string `yaml:"endpoint"`
ForcePathStyle bool `yaml:"forcePathStyle"`
}
Click to show internal directories.
Click to hide internal directories.