awsx

package
v0.0.0-...-7bec513 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 8 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 {
	Region       string
	Bucket       string
	IAMAccessKey string
	IAMSecretKey string
}

Config - contains details required to interact with AWS S3 bucket

func (*Config) CreateSession

func (conf *Config) CreateSession() (*session.Session, error)

CreateSession - establishes AWS session and checks credentials

func (*Config) DownloadFromS3

func (conf *Config) DownloadFromS3(key string) (string, error)

DownloadFromS3 - downloads backup file from S3 bucket

func (*Config) UploadToS3

func (conf *Config) UploadToS3(filepath string) error

UploadToS3 - uploads backup filo to AWS S3 bucket

Jump to

Keyboard shortcuts

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