endpoint

package
v2.0.0-beta.3+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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