Documentation
¶
Index ¶
- func GetProviderType(p *storage.Config) (string, error)
- type Service
- func (s *Service) CopyObject(ctx context.Context, dstBucket, dstPath, srcBucket, srcPath string) error
- func (s *Service) CreateBucket(ctx context.Context, name, providerName, region string, providerID uuid.UUID) error
- func (s *Service) CreateProvider(ctx context.Context, name string, config *storage.Config, linkBuckets bool) (uuid.UUID, *storage.Provider, error)
- func (s *Service) DeleteBucket(ctx context.Context, bucketName string) error
- func (s *Service) DeleteObject(ctx context.Context, bucketName, path string) error
- func (s *Service) DeleteProvider(ctx context.Context, providerID uuid.UUID) error
- func (s *Service) DownloadObject(ctx context.Context, bucketName, path string) (io.ReadSeekCloser, error)
- func (s *Service) GetBucket(ctx context.Context, bucketName string) (*storage.Bucket, error)
- func (s *Service) GetObject(ctx context.Context, bucketName, path string) (*storage.Object, error)
- func (s *Service) GetProvider(ctx context.Context, providerID uuid.UUID) (*storage.Provider, error)
- func (s *Service) GetSettings(ctx context.Context) (*settings.Settings, error)
- func (s *Service) ListBuckets(ctx context.Context) (iterator.Iterator[*storage.Bucket], error)
- func (s *Service) ListObjects(ctx context.Context, bucketName, token, prefix, startpath, endpath string, ...) (string, iterator.Iterator[*storage.ListObjectsResponse_Result], error)
- func (s *Service) ListProviders(ctx context.Context, pagination *model.Pagination) (iterator.Iterator[*storage.ProviderEntry], uint64, error)
- func (s *Service) LookupProvider(ctx context.Context, name string) (uuid.UUID, *storage.Provider, error)
- func (s *Service) UnlinkBucket(ctx context.Context, bucket string) error
- func (s *Service) UploadObject(ctx context.Context, reader io.Reader, ...) (string, uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *zap.Logger, ps project.Service, rs repository.Storage, rsec repository.Secret) *Service
func (*Service) CopyObject ¶
func (*Service) CreateBucket ¶
func (*Service) CreateProvider ¶
func (*Service) DeleteBucket ¶
func (*Service) DeleteObject ¶
func (*Service) DeleteProvider ¶
func (*Service) DownloadObject ¶
func (*Service) GetProvider ¶
func (*Service) GetSettings ¶
func (*Service) ListBuckets ¶
func (*Service) ListObjects ¶
func (*Service) ListProviders ¶
func (*Service) LookupProvider ¶
func (*Service) UnlinkBucket ¶
Click to show internal directories.
Click to hide internal directories.