s3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 9 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 *awss3.Client
	Config *Config
}

func NewClient

func NewClient(ctx context.Context, config *Config) (*Client, error)

func (*Client) UploadFile

func (client *Client) UploadFile(ctx context.Context, filename string, fileType string, src io.Reader) (string, error)

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Bucket    string
	EndPoint  string
	Region    string
	URLPrefix string
	URLSuffix string
}

Jump to

Keyboard shortcuts

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