swing

package
v0.0.0-...-73c7b0c Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentVersion string = "0.1.3"

Variables

This section is empty.

Functions

func Authorize

func Authorize(region string) (*session.Session, error)

Authorize user using saved credentials, if MFA devices are found for this user asks to pick device and input token

func Run

func Run()

Types

type Manager

type Manager struct {
	SwingFile *os.File
	SwingDir  string
	Bucket    string
	BatchMode bool
	Session   *session.Session
}

Manager handles upload and download of files from bucket. When necessary updates the swing file.

func (*Manager) Download

func (m *Manager) Download()

Download files found in Manager SwingFile

func (*Manager) Upload

func (m *Manager) Upload(files []*os.File)

Upload files to Manager Bucket

Jump to

Keyboard shortcuts

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