aws

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BucketName string `long:"bucket-name" env:"BUCKET_NAME" default:"" description:"Bucket name is s3"`
	AccessKey  string `long:"access-key" env:"S3_ACCESS_KEY" default:"" description:"s3 access key"`
	SecretKey  string `long:"secret-key" env:"S3_SECRET_KEY" default:"" description:"s3 secret key"`
}

type Interface

type Interface interface {
	SaveFile([]byte, string, string) (string, error)
}

type Storage

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

func New

func New(args *Config) (*Storage, error)

func (*Storage) SaveFile

func (s *Storage) SaveFile(file []byte, name string, ext string) (string, error)

Jump to

Keyboard shortcuts

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