Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsS3StorageProvider ¶
type AwsS3StorageProvider struct {
// contains filtered or unexported fields
}
func (AwsS3StorageProvider) Get ¶
func (provider AwsS3StorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)
func (AwsS3StorageProvider) Init ¶
func (provider AwsS3StorageProvider) Init() error
func (AwsS3StorageProvider) Post ¶
func (provider AwsS3StorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)
type GcpStorageProvider ¶
type GcpStorageProvider struct {
// contains filtered or unexported fields
}
func (GcpStorageProvider) Get ¶
func (provider GcpStorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)
func (GcpStorageProvider) Init ¶
func (provider GcpStorageProvider) Init() error
func (GcpStorageProvider) Post ¶
func (provider GcpStorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)
type LocalStorageProvider ¶
type LocalStorageProvider struct {
// contains filtered or unexported fields
}
func (LocalStorageProvider) Get ¶
func (provider LocalStorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)
func (LocalStorageProvider) Init ¶
func (provider LocalStorageProvider) Init() error
func (LocalStorageProvider) Post ¶
func (provider LocalStorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)
type Provider ¶
type Provider interface { Init() error Post(*AssetInfo) (string, *models.ProblemDetail) Get(*AssetInfo) ([]byte, *models.ProblemDetail) }
func GetProvider ¶
func GetProvider() Provider
Click to show internal directories.
Click to hide internal directories.