Documentation ¶
Index ¶
- Constants
- Variables
- func NewConfigDriver(params *config.LoadParams) (config.ConfigDriver, error)
- func NewCrypt(conf *config.CryptConfig) domain.Middleware
- func NewDefaultNamer(nower domain.Nower) domain.SnapshotNamestrategy
- func NewLog(writer io.Writer, logLevel domain.LogLevel) domain.LogDriver
- func NewRender() domain.RenderDriver
- func NewS3Storage(client *s3.Client, logger domain.LogDriver) domain.StorageDriver
- func NewS3StorageFromConfig(s3c *config2.S3Config, logger domain.LogDriver) (domain.StorageDriver, error)
- func NewThrottle(conf *config.ThrottleConfig) domain.Middleware
- func NewZfs(binaryPath string, cmd domain.Commander, logger domain.LogDriver) domain.ZfsDriver
- func NewZfsFromConfig(conf *config.ZfsConfig, logger domain.LogDriver) domain.ZfsDriver
- type ConfigDriver
- type CryptDriver
- type FakeReader
- type FakeWriterAt
- type Graph
- type S3Storage
- func (s *S3Storage) Delete(ctx context.Context, dp *domain.DeleteParameters) error
- func (s *S3Storage) Download(ctx context.Context, dp *domain.DownloadParameters, writer io.Writer) error
- func (s *S3Storage) Upload(ctx context.Context, up *domain.UploadParameters, reader io.Reader) (*domain.UploadResponse, error)
- type Throttle
Constants ¶
View Source
const SnapPrefix = "backup_blob_"
Variables ¶
View Source
var DefaultBlockSize = 1024 * 1024 * 4
Functions ¶
func NewConfigDriver ¶
func NewConfigDriver(params *config.LoadParams) (config.ConfigDriver, error)
func NewCrypt ¶
func NewCrypt(conf *config.CryptConfig) domain.Middleware
func NewDefaultNamer ¶
func NewDefaultNamer(nower domain.Nower) domain.SnapshotNamestrategy
func NewRender ¶
func NewRender() domain.RenderDriver
func NewS3Storage ¶
func NewS3StorageFromConfig ¶
func NewThrottle ¶
func NewThrottle(conf *config.ThrottleConfig) domain.Middleware
Types ¶
type ConfigDriver ¶
type ConfigDriver struct {
// contains filtered or unexported fields
}
func (*ConfigDriver) GetConfig ¶
func (c *ConfigDriver) GetConfig() *config.Config
func (*ConfigDriver) GetMiddlewares ¶
func (c *ConfigDriver) GetMiddlewares() []domain.Middleware
func (*ConfigDriver) GetStorageDriver ¶
func (c *ConfigDriver) GetStorageDriver() domain.StorageDriver
func (*ConfigDriver) GetZfsDriver ¶
func (c *ConfigDriver) GetZfsDriver() domain.ZfsDriver
func (*ConfigDriver) Load ¶
func (c *ConfigDriver) Load(params *config.LoadParams) error
type CryptDriver ¶
type CryptDriver struct { Conf *config.CryptConfig Crypter crypt.EncryptDecrypter }
type FakeReader ¶
type FakeReader struct {
// contains filtered or unexported fields
}
type FakeWriterAt ¶
type FakeWriterAt struct {
// contains filtered or unexported fields
}
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.