Documentation ¶
Index ¶
- Constants
- type Module
- func (m *Module) AltNames() []string
- func (s Module) GetObject(ctx context.Context, backupID, key string) ([]byte, error)
- func (s Module) HomeDir(backupID string) string
- func (m *Module) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (s Module) Initialize(ctx context.Context, backupID string) error
- func (m *Module) IsExternal() bool
- func (m *Module) MetaInfo() (map[string]interface{}, error)
- func (m *Module) Name() string
- func (s Module) PutFile(ctx context.Context, backupID, key string, srcPath string) error
- func (s Module) PutObject(ctx context.Context, backupID, key string, byes []byte) error
- func (m *Module) RootHandler() http.Handler
- func (s Module) SourceDataPath() string
- func (m *Module) Type() modulecapabilities.ModuleType
- func (s Module) WriteToFile(ctx context.Context, backupID, key, destPath string) error
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 (*Module) Init ¶
func (m *Module) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
func (*Module) IsExternal ¶
func (*Module) RootHandler ¶
func (Module) SourceDataPath ¶
func (s Module) SourceDataPath() string
func (*Module) Type ¶
func (m *Module) Type() modulecapabilities.ModuleType
Click to show internal directories.
Click to hide internal directories.