Documentation ¶
Index ¶
- Constants
- type Module
- func (m *Module) AltNames() []string
- func (g Module) GetObject(ctx context.Context, backupID, key string) ([]byte, error)
- func (g Module) HomeDir(backupID string) string
- func (m *Module) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (g 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 (g Module) PutFile(ctx context.Context, backupID, key, srcPath string) error
- func (g Module) PutObject(ctx context.Context, backupID, key string, byes []byte) error
- func (g Module) Read(ctx context.Context, backupID, key string, w io.WriteCloser) (int64, error)
- func (m *Module) RootHandler() http.Handler
- func (g Module) SourceDataPath() string
- func (m *Module) Type() modulecapabilities.ModuleType
- func (g Module) Write(ctx context.Context, backupID, key string, r io.ReadCloser) (int64, error)
- func (g Module) WriteToFile(ctx context.Context, backupID, key, destPath string) (err error)
Constants ¶
View Source
const ( Name = "backup-gcs" AltName1 = "gcs" )
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 (g Module) SourceDataPath() string
func (*Module) Type ¶
func (m *Module) Type() modulecapabilities.ModuleType
Click to show internal directories.
Click to hide internal directories.