s3

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttachmentBucket = "media"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(endpoint, accessKeyId, secretAccessKey string, useSSL bool) (*Client, error)

func (*Client) MakeUploadAttachment

func (c *Client) MakeUploadAttachment(ctx context.Context, channelId, objectId, fileSize int64, objectName string) (string, error)

TODO: probably need to add Content-MD5 header, if it has effect

func (*Client) RemoveAttachment

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

Jump to

Keyboard shortcuts

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