Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination interface { Fetchable() bool Writable() bool Write(ctx context.Context, path string, r io.ReadCloser) (err error) Fetch(ctx context.Context, path, url string) (err error) Dir(ctx context.Context, path string) (err error) }
Destination is the interface for destination endpoint.
type Source ¶
type Source interface { Reachable() bool Readable() bool List(ctx context.Context, p string, rc chan *model.Object) (err error) Read(ctx context.Context, p string) (r io.ReadCloser, err error) Reach(ctx context.Context, p string) (url string, err error) }
Source is the interface for source endpoint.
Click to show internal directories.
Click to hide internal directories.