s3

package
v0.0.0-...-efe0c35 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents dependencies for S3 client

func New

func New(log *zap.Logger, conf appconf.S3) (*Client, error)

New constructs Client instance

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, data io.ReadSeeker, contentType string, md map[string]string) (UploadResult, error)

Upload uploads a file to S3 storage

type UploadResult

type UploadResult struct {
	FileID  string
	FileURL string
}

UploadResult represents the result of an upload operation

Jump to

Keyboard shortcuts

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