From f635033e3e953e74d67b76a520c9760786330af5 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Tue, 24 Jan 2017 23:43:28 +0000 Subject: Switch to scl, an extension of hcl --- vendor/github.com/homemade/scl/file_system.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vendor/github.com/homemade/scl/file_system.go (limited to 'vendor/github.com/homemade/scl/file_system.go') 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) +} -- cgit v1.2.3