Documentation ¶
Index ¶
- type GCP
- type InactiveProvider
- type Local
- type S3
- type SLocal
- type SS3
- type StorageProvider
- func NewGCPStorage(cfg config.Getter) (StorageProvider, error)
- func NewInactiveProvider(providerName string) StorageProvider
- func NewLocalStorage(conf config.Getter) (StorageProvider, error)
- func NewS3Storage(conf config.Getter) (StorageProvider, error)
- func NewSLocalStorage(conf config.Getter) (StorageProvider, error)
- func NewSS3Storage(conf config.Getter) (StorageProvider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCP ¶
type InactiveProvider ¶
type InactiveProvider struct {
ProviderName string `json:"provider_name"`
}
type S3 ¶
type S3 struct { Endpoint string `json:"endpoint"` AccessKey string `json:"access_key" mapstructure:"access_key"` SecretKey string `json:"secret_key" mapstructure:"secret_key"` SSL bool `json:"ssl"` Bucket string `json:"bucket"` BucketRegion string `json:"bucket_region" mapstructure:"bucket_region"` // contains filtered or unexported fields }
type SLocal ¶
type SS3 ¶
type SS3 struct { Endpoint string `json:"endpoint"` AccessKey string `json:"access_key" mapstructure:"access_key"` SecretKey string `json:"secret_key" mapstructure:"secret_key"` SSL bool `json:"ssl"` Bucket string `json:"bucket"` BucketRegion string `json:"bucket_region" mapstructure:"bucket_region"` Secret string `json:"secret"` // contains filtered or unexported fields }
type StorageProvider ¶
type StorageProvider interface { Get(ctx context.Context, path string) (io.Reader, error) Put(ctx context.Context, path string, object io.Reader) error }
func NewGCPStorage ¶
func NewGCPStorage(cfg config.Getter) (StorageProvider, error)
func NewInactiveProvider ¶
func NewInactiveProvider(providerName string) StorageProvider
func NewLocalStorage ¶
func NewLocalStorage(conf config.Getter) (StorageProvider, error)
func NewS3Storage ¶
func NewS3Storage(conf config.Getter) (StorageProvider, error)
func NewSLocalStorage ¶
func NewSLocalStorage(conf config.Getter) (StorageProvider, error)
func NewSS3Storage ¶
func NewSS3Storage(conf config.Getter) (StorageProvider, error)
Click to show internal directories.
Click to hide internal directories.