aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/homemade/scl/file_system.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/homemade/scl/file_system.go')
-rw-r--r--vendor/github.com/homemade/scl/file_system.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/homemade/scl/file_system.go b/vendor/github.com/homemade/scl/file_system.go
new file mode 100644
index 0000000..959e096
--- /dev/null
+++ b/vendor/github.com/homemade/scl/file_system.go
@@ -0,0 +1,19 @@
+package scl
+
+import (
+ "io"
+ "time"
+)
+
+/*
+A FileSystem is a representation of entities with names and content that can be
+listed using stangard glob syntax and read by name. The typical implementation
+for this is a local disk filesystem, but it could be anything – records in a
+database, objects on AWS S3, the contents of a zip file, virtual files stored
+inside a binary, and so forth. A FileSystem is required to instantiate the
+standard Parser implementation.
+*/
+type FileSystem interface {
+ Glob(pattern string) ([]string, error)
+ ReadCloser(path string) (content io.ReadCloser, lastModified time.Time, err error)
+}