apicliaws

package
v0.0.0-...-c30c368 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	S3 *s3.Client
}

AWS is a container for AWS SDK specific clients. Environment variables as stated below MUST be provided when using this client implementation.

AWS_ACCESS_KEY
AWS_SECRET_KEY
AWS_REGION

https://github.com/aws/aws-sdk-go-v2/blob/386724971857987a5d2a50f506f23df615765ac7/config/env_config.go

func New

func New() *AWS

func (*AWS) Download

func (a *AWS) Download(buc string, key string) ([]byte, error)

func (*AWS) Lister

func (a *AWS) Lister(buc string, pre string) ([]string, error)

func (*AWS) Upload

func (a *AWS) Upload(buc string, key string, rea bytes.Reader) error

type Reader

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

func (*Reader) Read

func (r *Reader) Read(byt []byte) (int, error)

func (*Reader) ReadAt

func (r *Reader) ReadAt(byt []byte, off int64) (int, error)

func (*Reader) Seek

func (r *Reader) Seek(off int64, whe int) (int64, error)

type Writer

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

func (*Writer) WriteAt

func (w *Writer) WriteAt(byt []byte, off int64) (int, error)

Jump to

Keyboard shortcuts

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