Documentation ¶
Overview ¶
Package dropbox provides support for Dropbox (https://www.dropbox.com/).
Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Index ¶
- Constants
- Variables
- func New(pairs ...*types.Pair) (storage.Servicer, storage.Storager, error)
- type Storage
- func (s *Storage) Delete(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) List(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) ListWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) Metadata(pairs ...*types.Pair) (m metadata.StorageMeta, err error)
- func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m metadata.StorageMeta, err error)
- func (s *Storage) Read(path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) Stat(path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) String() string
- func (s *Storage) Write(path string, r io.Reader, pairs ...*types.Pair) (err error)
- func (s *Storage) WriteWithContext(ctx context.Context, path string, r io.Reader, pairs ...*types.Pair) (err error)
Constants ¶
View Source
const Type = "dropbox"
Type is the type for dropbox
Variables ¶
View Source
var ( // ErrUnexpectedEntry is the error returned when Dropbox service has returned an unexpected kind of entry. ErrUnexpectedEntry = errors.New("unexpected entry") )
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is the dropbox client.
func (*Storage) DeleteWithContext ¶
func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
DeleteWithContext adds context support for Delete.
func (*Storage) ListWithContext ¶
func (s *Storage) ListWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
ListWithContext adds context support for List.
func (*Storage) MetadataWithContext ¶
func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m metadata.StorageMeta, err error)
MetadataWithContext adds context support for Metadata.
func (*Storage) ReadWithContext ¶
func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
ReadWithContext adds context support for Read.
func (*Storage) StatWithContext ¶
func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
StatWithContext adds context support for Stat.
Click to show internal directories.
Click to hide internal directories.