aboutsummaryrefslogtreecommitdiff
path: root/vendor/go4.org/wkfs/gcs
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-01-13 00:06:46 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-01-13 20:56:41 +0000
commit57224ffa79aac59155a0f6a4ad47f224cac736fd (patch)
tree763b75c73fa6755f5d3733f24ec474081e987f5b /vendor/go4.org/wkfs/gcs
parentadca4cec3bf97d73e082d4c986443ffc8fee6fe1 (diff)
Use wkfs to manage the lets encrypt cache
Diffstat (limited to 'vendor/go4.org/wkfs/gcs')
-rw-r--r--vendor/go4.org/wkfs/gcs/gcs.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/go4.org/wkfs/gcs/gcs.go b/vendor/go4.org/wkfs/gcs/gcs.go
index a970c75..d768824 100644
--- a/vendor/go4.org/wkfs/gcs/gcs.go
+++ b/vendor/go4.org/wkfs/gcs/gcs.go
@@ -165,6 +165,14 @@ func (fs *gcsFS) OpenFile(name string, flag int, perm os.FileMode) (wkfs.FileWri
return fs.sc.Bucket(bucket).Object(fileName).NewWriter(fs.ctx), nil
}
+func (fs *gcsFS) Remove(name string) error {
+ bucket, fileName, err := fs.parseName(name)
+ if err != nil {
+ return err
+ }
+ return fs.sc.Bucket(bucket).Object(fileName).Delete(fs.ctx)
+}
+
type statInfo struct {
name string
size int64