s3

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *s3.Client
	Bucket *string
}

func NewClient

func NewClient(ctx context.Context, s3Config *storepb.StorageS3Config) (*Client, error)

func (*Client) DeleteObject added in v0.22.0

func (c *Client) DeleteObject(ctx context.Context, key string) error

DeleteObject deletes an object in S3.

func (*Client) PresignGetObject added in v0.22.0

func (c *Client) PresignGetObject(ctx context.Context, key string) (string, error)

PresignGetObject presigns an object in S3.

func (*Client) UploadObject added in v0.22.0

func (c *Client) UploadObject(ctx context.Context, key string, fileType string, content io.Reader) (string, error)

UploadObject uploads an object to S3.

Jump to

Keyboard shortcuts

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