s3

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Sync(source string, destination string) (output string, err error)
}

API interface to interact with s3.

type CLI

type CLI struct {
	Commander cmder.Commander
}

CLI a s3.API to interact with the aws s3 CLI.

func NewCLI

func NewCLI() *CLI

NewCLI creates a new CLI with a commander to run s3 commands. Returns the new CLI.

func (CLI) Sync

func (api CLI) Sync(source string, destination string) (output string, err error)

Sync syncs to and from s3. Returns an error if the command fails.

Jump to

Keyboard shortcuts

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