Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(cfg *config.Config) (*storage.Repository, error)
Types ¶
type S3DummyRepo ¶
type S3DummyRepo struct { }
S3DummyRepo is used to disable the S3 service by configuration
func NewS3DummyRepo ¶
func NewS3DummyRepo() *S3DummyRepo
func (*S3DummyRepo) BucketExists ¶
func (s *S3DummyRepo) BucketExists(_ context.Context) (bool, error)
func (*S3DummyRepo) GetObject ¶
func (s *S3DummyRepo) GetObject(_ context.Context, _ string) (io.ReadSeekCloser, error)
type S3Repository ¶
type S3Repository struct {
// contains filtered or unexported fields
}
func NewS3Repository ¶
func NewS3Repository(cfg *S3RepoCfg) (*S3Repository, error)
func (*S3Repository) BucketExists ¶
func (s *S3Repository) BucketExists(ctx context.Context) (bool, error)
func (*S3Repository) GetObject ¶
func (s *S3Repository) GetObject(ctx context.Context, objName string) (io.ReadSeekCloser, error)
Click to show internal directories.
Click to hide internal directories.