adapters

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	CreateBucket() error
	PutObject(file *domain.File) error
	GetObject(fileID string) ([]byte, error)
	DeleteObject(fileID string) error
}

type FakeBucket

type FakeBucket struct {
	// contains filtered or unexported fields
}

func NewFakeBucket

func NewFakeBucket() *FakeBucket

func (*FakeBucket) CreateBucket

func (f *FakeBucket) CreateBucket() error

func (*FakeBucket) DeleteObject added in v1.9.1

func (f *FakeBucket) DeleteObject(fileID string) error

func (*FakeBucket) GetObject added in v1.9.1

func (f *FakeBucket) GetObject(fileID string) ([]byte, error)

func (*FakeBucket) PutObject

func (f *FakeBucket) PutObject(file *domain.File) error

type S3 added in v1.9.1

type S3 struct {
	// contains filtered or unexported fields
}

func NewS3 added in v1.9.1

func NewS3(
	config *config.Config,
) *S3

func (*S3) CreateBucket added in v1.9.1

func (s *S3) CreateBucket() error

func (*S3) DeleteObject added in v1.9.1

func (s *S3) DeleteObject(fileID string) error

func (*S3) GetObject added in v1.14.0

func (s *S3) GetObject(fileID string) ([]byte, error)

func (*S3) PutObject added in v1.9.1

func (s *S3) PutObject(file *domain.File) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL