aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/homemade/scl/file_system.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-01-24 23:43:28 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-01-25 00:02:37 +0000
commitf635033e3e953e74d67b76a520c9760786330af5 (patch)
tree8e41d7d07c489edbfb45f1d4ffff921b2f6bc265 /vendor/github.com/homemade/scl/file_system.go
parent0f4344348419ed6c3ee4236188e456d79e2d51b4 (diff)
Switch to scl, an extension of hcl
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)
+}