Documentation ¶
Index ¶
- func AddDriver(name string, driver Driver)
- type BaseDriver
- type Driver
- type DryRunDriver
- func (d *DryRunDriver) Copy(src, dst string) (int64, error)
- func (d *DryRunDriver) Delete(src string) error
- func (d *DryRunDriver) GetTargetPath() string
- func (d *DryRunDriver) Init() error
- func (d *DryRunDriver) ListDirs(path string) ([]string, error)
- func (d *DryRunDriver) Mkdir(path string) error
- func (d *DryRunDriver) SetTargetPath(path string)
- type LocalDriver
- type S3Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseDriver ¶
type BaseDriver struct {
TargetPath string
}
func (*BaseDriver) GetTargetPath ¶
func (d *BaseDriver) GetTargetPath() string
func (*BaseDriver) SetTargetPath ¶
func (d *BaseDriver) SetTargetPath(targetPath string)
type Driver ¶
type DryRunDriver ¶ added in v1.1.0
type DryRunDriver struct { BaseDriver Wrapped Driver }
func (*DryRunDriver) Copy ¶ added in v1.1.0
func (d *DryRunDriver) Copy(src, dst string) (int64, error)
func (*DryRunDriver) Delete ¶ added in v1.1.0
func (d *DryRunDriver) Delete(src string) error
func (*DryRunDriver) GetTargetPath ¶ added in v1.1.0
func (d *DryRunDriver) GetTargetPath() string
func (*DryRunDriver) Init ¶ added in v1.1.0
func (d *DryRunDriver) Init() error
func (*DryRunDriver) ListDirs ¶ added in v1.1.0
func (d *DryRunDriver) ListDirs(path string) ([]string, error)
func (*DryRunDriver) Mkdir ¶ added in v1.1.0
func (d *DryRunDriver) Mkdir(path string) error
func (*DryRunDriver) SetTargetPath ¶ added in v1.1.0
func (d *DryRunDriver) SetTargetPath(path string)
type LocalDriver ¶
type LocalDriver struct {
BaseDriver
}
func (*LocalDriver) Delete ¶
func (d *LocalDriver) Delete(src string) error
func (*LocalDriver) Init ¶
func (d *LocalDriver) Init() error
func (*LocalDriver) Mkdir ¶
func (d *LocalDriver) Mkdir(path string) error
type S3Driver ¶
type S3Driver struct { BaseDriver // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.