modstggcs

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Module added in v1.16.0

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

func New

func New() *Module

func (*Module) AltNames added in v1.16.0

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

func (Module) GetObject added in v1.16.0

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

func (Module) HomeDir added in v1.16.0

func (g Module) HomeDir(backupID string) string

func (*Module) Init added in v1.16.0

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

func (Module) Initialize added in v1.16.0

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

func (*Module) IsExternal added in v1.16.0

func (m *Module) IsExternal() bool

func (*Module) MetaInfo added in v1.16.0

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

func (*Module) Name added in v1.16.0

func (m *Module) Name() string

func (Module) PutFile added in v1.16.0

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

func (Module) PutObject added in v1.16.0

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

func (*Module) RootHandler added in v1.16.0

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

func (Module) SourceDataPath added in v1.16.0

func (g Module) SourceDataPath() string

func (*Module) Type added in v1.16.0

func (Module) WriteToFile added in v1.16.0

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

Jump to

Keyboard shortcuts

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