s3

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(config Config) (App, error)

New creates new App from Config

func (App) CreateDir

func (a App) CreateDir(name string) error

CreateDir container in storage

func (App) Enabled

func (a App) Enabled() bool

Enabled checks that requirements are met

func (App) Info

func (a App) Info(pathname string) (provider.StorageItem, error)

Info provide metadata about given pathname

func (App) List

func (a App) List(pathname string) ([]provider.StorageItem, error)

List items in the storage

func (App) ReaderFrom

func (a App) ReaderFrom(pathname string) (io.ReadSeekCloser, error)

ReaderFrom reads content from given pathname

func (App) Remove

func (a App) Remove(pathname string) error

Remove file or directory from storage

func (App) Rename

func (a App) Rename(oldName, newName string) error

Rename file or directory from storage

func (App) UpdateDate

func (a App) UpdateDate(pathname string, date time.Time) error

UpdateDate update date from given value

func (App) Walk

func (a App) Walk(pathname string, walkFn func(provider.StorageItem, error) error) error

Walk browses item recursively

func (App) WithIgnoreFn

func (a App) WithIgnoreFn(ignoreFn func(provider.StorageItem) bool) provider.Storage

WithIgnoreFn create a new App with given ignoreFn

func (App) WriterTo

func (a App) WriterTo(pathname string) (io.WriteCloser, error)

WriterTo opens writer for given pathname

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL