1
This commit is contained in:
10
internal/object_storage/client.go
Normal file
10
internal/object_storage/client.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package object_storage
|
||||
|
||||
func New(c Config, t ClientType) (Client, error) {
|
||||
switch t {
|
||||
case ClientTypeS3:
|
||||
return newS3Storage(c)
|
||||
default:
|
||||
return nil, ErrUnknownClient
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user