Documentation
¶
Index ¶
- type AmazonS3
- func (s *AmazonS3) Delete(key string) error
- func (s *AmazonS3) DownloadUrl(key string) (string, error)
- func (s *AmazonS3) Init() error
- func (s *AmazonS3) IsZero() bool
- func (s *AmazonS3) Name() string
- func (s *AmazonS3) Read(key string) ([]byte, error)
- func (s *AmazonS3) SetDefault()
- func (s *AmazonS3) StatObject(key string) (*filesystem.ObjectMeta, error)
- func (s *AmazonS3) Upload(key string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonS3 ¶
type AmazonS3 struct {
Endpoint string `env:""`
Region string `env:""`
AccessKeyID string `env:""`
SecretAccessKey types.Password `env:""`
SessionToken string `env:""`
BucketName string `env:""`
UrlExpire types.Duration `env:""`
S3ForcePathStyle bool `env:""`
// contains filtered or unexported fields
}
func (*AmazonS3) DownloadUrl ¶ added in v1.2.3
func (*AmazonS3) SetDefault ¶ added in v1.2.3
func (s *AmazonS3) SetDefault()
func (*AmazonS3) StatObject ¶ added in v1.4.6
func (s *AmazonS3) StatObject(key string) (*filesystem.ObjectMeta, error)
Click to show internal directories.
Click to hide internal directories.