awscli

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts Options, logger *zap.SugaredLogger) *Client

func (*Client) Healthcheck

func (c *Client) Healthcheck(ctx context.Context, cmdExecutor cmd.Executor) error

Healthcheck ensures awscli executable exists

func (*Client) ListBackups

func (c *Client) ListBackups(ctx context.Context, cmdExecutor cmd.Executor, basePath string) ([]entity.RemoteBackup, error)

ListBackups returns backups from a given directory

func (*Client) RemoveBackup

func (c *Client) RemoveBackup(ctx context.Context, cmdExecutor cmd.Executor, path string) error

RemoveBackup removes given backup directory

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, cmdExecutor cmd.Executor, source, dest string) (string, error)

Upload uploads a given source directory to s3

type Options

type Options struct {
	Disabled    bool
	Binary      string
	Bucket      string
	EndpointUrl string `yaml:"endpointUrl"`
	Profile     string
}

Jump to

Keyboard shortcuts

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