Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceName = "s3"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(config mediastore.ServiceConfig) (mediastore.Service, error)
Types ¶
type Config ¶
type Config struct { Region string `env:"REGION,required" yaml:"region" json:"region"` BucketName string `env:"BUCKET_NAME,required" yaml:"bucket_name" json:"bucket_name"` AccessKeyID string `env:"ACCESS_KEY_ID" yaml:"access_key_id" json:"access_key_id"` SecretAccessKey string `env:"SECRET_ACCESS_KEY" yaml:"secret_access_key" json:"secret_access_key"` }
func ConfigSkeleton ¶
func ConfigSkeleton() Config
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetPublicObject ¶
func (*Service) PutObject ¶
func (s *Service) PutObject(targetKey string, contentSource io.Reader) (uploadInfo *mediastore.UploadInfo, err error)
Click to show internal directories.
Click to hide internal directories.