Documentation
¶
Index ¶
- Constants
- type App
- func (a App) ConvertError(err error) error
- func (a App) CreateDir(ctx context.Context, name string) error
- func (a App) Enabled() bool
- func (a App) Info(ctx context.Context, pathname string) (model.Item, error)
- func (a App) List(ctx context.Context, pathname string) ([]model.Item, error)
- func (a App) Name() string
- func (a App) Path(pathname string) string
- func (a App) ReadFrom(ctx context.Context, pathname string) (io.ReadSeekCloser, error)
- func (a App) Remove(ctx context.Context, pathname string) error
- func (a App) Rename(ctx context.Context, oldName, newName string) error
- func (a App) UpdateDate(_ context.Context, _ string, _ time.Time) error
- func (a App) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error
- func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (a App) WriteSizedTo(ctx context.Context, pathname string, size int64, reader io.Reader) error
- func (a App) WriteTo(ctx context.Context, pathname string, reader io.Reader) error
Constants ¶
View Source
const Name = "s3"
Name of the storage implementation.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package.
func New ¶
func New(endpoint, accessKey, secretAccess, bucket string, useSSL bool, partSize uint64) (App, error)
New creates new App from Config.
func (App) ConvertError ¶ added in v0.3.4
ConvertError with the appropriate type.
func (App) UpdateDate ¶
UpdateDate update date from given value.
func (App) WithIgnoreFn ¶
WithIgnoreFn create a new App with given ignoreFn.
func (App) WriteSizedTo ¶ added in v0.5.1
WriteSizedTo with content from reader to pathname with known size.
Click to show internal directories.
Click to hide internal directories.