Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Azure type of the corresponding backend represented as string constant. Azure = "azure" // FileSystem type of the corresponding backend represented as string constant. FileSystem = "filesystem" // GCS type of the corresponding backend represented as string constant. GCS = "gcs" // S3 type of the corresponding backend represented as string constant. S3 = "s3" // SFTP type of the corresponding backend represented as string constant. SFTP = "sftp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
// Get writes downloaded content to the given writer.
Get(ctx context.Context, p string, w io.Writer) error
// Put uploads contents of the given reader.
Put(ctx context.Context, p string, r io.Reader) error
// Exists checks if path already exists.
Exists(ctx context.Context, p string) (bool, error)
}
Backend implements operations for caching files.
Click to show internal directories.
Click to hide internal directories.