about summary refs log tree commit diff
path: root/tools/nixery/storage/filesystem.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-10-27T12·47+0100
committerVincent Ambo <mail@tazj.in>2020-10-27T14·29+0100
commitcbbf45b5cb268a605134022d91308e6c57c9d273 (patch)
tree22df0e6fe18fdb851450bc5263fe9508d3e893f6 /tools/nixery/storage/filesystem.go
parent5ce745d104e82d836967e3bd9fd7af9602e76114 (diff)
refactor(storage): Rename ServeLayer -> Serve
This is going to be used for general content-addressed objects, and is
not layer specific anymore.
Diffstat (limited to 'tools/nixery/storage/filesystem.go')
-rw-r--r--tools/nixery/storage/filesystem.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/nixery/storage/filesystem.go b/tools/nixery/storage/filesystem.go
index cdbc31c5e0..926e9257a1 100644
--- a/tools/nixery/storage/filesystem.go
+++ b/tools/nixery/storage/filesystem.go
@@ -83,13 +83,13 @@ func (b *FSBackend) Move(ctx context.Context, old, new string) error {
 	return os.Rename(path.Join(b.path, old), newpath)
 }
 
-func (b *FSBackend) ServeLayer(digest string, r *http.Request, w http.ResponseWriter) error {
+func (b *FSBackend) Serve(digest string, r *http.Request, w http.ResponseWriter) error {
 	p := path.Join(b.path, "layers", digest)
 
 	log.WithFields(log.Fields{
-		"layer": digest,
-		"path":  p,
-	}).Info("serving layer from filesystem")
+		"digest": digest,
+		"path":   p,
+	}).Info("serving blob from filesystem")
 
 	http.ServeFile(w, r, p)
 	return nil