Documentation
¶
Index ¶
- type CloudStorage
- func (s *CloudStorage) Create(ctx context.Context, storage *entity.Storage) error
- func (s *CloudStorage) Get(ctx context.Context, sid int64) (*entity.Storage, error)
- func (s *CloudStorage) GetProvider(ctx context.Context, sid int64) (provider.Provider, error)
- func (s *CloudStorage) GetProviderByStorage(storage *entity.Storage) (provider.Provider, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudStorage ¶
type CloudStorage struct {
// contains filtered or unexported fields
}
func NewCloudStorage ¶
func NewCloudStorage(storageRepo repo.Storage) *CloudStorage
func NewCloudStorageWithProviderConstructor ¶
func NewCloudStorageWithProviderConstructor(storageRepo repo.Storage, providerConstructor provider.Constructor) *CloudStorage
func (*CloudStorage) GetProvider ¶
func (*CloudStorage) GetProviderByStorage ¶
Click to show internal directories.
Click to hide internal directories.