Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceName = "gcs"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(config mediastore.ServiceConfig) (mediastore.Service, error)
Types ¶
type Config ¶
type Config struct { BucketName string `env:"BUCKET_NAME" yaml:"bucket_name" json:"bucket_name"` ProjectID string `env:"PROJECT_ID" yaml:"project_id" json:"project_id"` CredentialFile string `env:"CREDENTIAL_FILE" yaml:"credential_file" json:"credential_file"` Basepath string `env:"BASEPATH" yaml:"basepath" json:"basepath"` BucketOperation bool `env:"BUCKET_OPERATION" yaml:"bucket_operation" json:"bucket_operation"` }
func ConfigSkeleton ¶
func ConfigSkeleton() Config
func (*Config) IsAvailableCredentials ¶
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)
type UploadInfo ¶
Click to show internal directories.
Click to hide internal directories.