s3

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var S3 = &S3Config{}

Functions

This section is empty.

Types

type S3Config

type S3Config struct {
	Key, Secret, Region, Host, Bucket string
}

func (*S3Config) Init

func (a *S3Config) Init(key, secret, region, host, bucket string)

func (*S3Config) Remove added in v0.0.2

func (a *S3Config) Remove(bucket, destination string) error

func (*S3Config) UploadBase64

func (a *S3Config) UploadBase64(base64Image, destination string) (string, error)

func (*S3Config) UploadFile

func (a *S3Config) UploadFile(bucket, destination, imgType string, buffer []byte) (string, error)

func (*S3Config) UploadJpeg

func (a *S3Config) UploadJpeg(m image.Image, destination string) (string, error)

func (*S3Config) UploadPng

func (a *S3Config) UploadPng(m image.Image, destination string) (string, error)

Jump to

Keyboard shortcuts

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