multiparts

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMultipartUploadNotFound  = errors.New("multipart upload not found")
	ErrInvalidUploadID          = errors.New("invalid upload id")
	ErrInvalidMetadataSrcFormat = errors.New("invalid metadata source format")
)

Functions

This section is empty.

Types

type Metadata added in v0.53.0

type Metadata map[string]string

func (Metadata) Get added in v0.53.0

func (m Metadata) Get(k string) string

func (*Metadata) Scan added in v0.53.0

func (m *Metadata) Scan(src interface{}) error

func (Metadata) Set added in v0.53.0

func (m Metadata) Set(k, v string)

func (Metadata) Value added in v0.53.0

func (m Metadata) Value() (driver.Value, error)

type MultipartUpload

type MultipartUpload struct {
	UploadID        string    `db:"upload_id"`
	Path            string    `db:"path"`
	CreationDate    time.Time `db:"creation_date"`
	PhysicalAddress string    `db:"physical_address"`
	Metadata        Metadata  `db:"metadata"`
	ContentType     string    `db:"content_type"`
}

type Tracker

type Tracker interface {
	Create(ctx context.Context, multipart MultipartUpload) error
	Get(ctx context.Context, uploadID string) (*MultipartUpload, error)
	Delete(ctx context.Context, uploadID string) error
}

func NewTracker

func NewTracker(adb db.Database) Tracker

Jump to

Keyboard shortcuts

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