modstgs3

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "backup-s3"
	AltName1 = "s3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func New

func New() *Module

func (*Module) AltNames

func (m *Module) AltNames() []string

func (Module) GetObject

func (s Module) GetObject(ctx context.Context, backupID, key string) ([]byte, error)

func (Module) HomeDir

func (s Module) HomeDir(backupID string) string

func (*Module) Init

func (m *Module) Init(ctx context.Context,
	params moduletools.ModuleInitParams,
) error

func (Module) Initialize

func (s Module) Initialize(ctx context.Context, backupID string) error

func (*Module) IsExternal

func (m *Module) IsExternal() bool

func (*Module) MetaInfo

func (m *Module) MetaInfo() (map[string]interface{}, error)

func (*Module) Name

func (m *Module) Name() string

func (Module) PutFile

func (s Module) PutFile(ctx context.Context, backupID, key string, srcPath string) error

func (Module) PutObject

func (s Module) PutObject(ctx context.Context, backupID, key string, byes []byte) error

func (*Module) RootHandler

func (m *Module) RootHandler() http.Handler

func (Module) SourceDataPath

func (s Module) SourceDataPath() string

func (*Module) Type

func (Module) WriteToFile

func (s Module) WriteToFile(ctx context.Context, backupID, key, destPath string) error

WriteFile downloads contents of an object to a local file destPath

Jump to

Keyboard shortcuts

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