summaryrefslogtreecommitdiff
path: root/volume/drivers
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-07-08 18:27:07 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-07-08 19:56:23 +0200
commit52c1a2fae8ffe3efc8b24ef53a702582131ebc57 (patch)
tree32566addcaabbe5a2d50e8039da88d8223d6ada9 /volume/drivers
parent6668801d4056cf2e59eff2b23620b9d8a4043734 (diff)
downloaddocker-52c1a2fae8ffe3efc8b24ef53a702582131ebc57.tar.gz
gofmt GoDoc comments with go1.19
Older versions of Go don't format comments, so committing this as a separate commit, so that we can already make these changes before we upgrade to Go 1.19. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'volume/drivers')
-rw-r--r--volume/drivers/extpoint.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/volume/drivers/extpoint.go b/volume/drivers/extpoint.go
index 3878736cbb..970c909f72 100644
--- a/volume/drivers/extpoint.go
+++ b/volume/drivers/extpoint.go
@@ -21,13 +21,13 @@ const extName = "VolumeDriver"
// volumeDriver defines the available functions that volume plugins must implement.
// This interface is only defined to generate the proxy objects.
// It's not intended to be public or reused.
-//nolint: deadcode
+// nolint: deadcode,unused,varcheck
type volumeDriver interface {
// Create a volume with the given name
Create(name string, opts map[string]string) (err error)
// Remove the volume with the given name
Remove(name string) (err error)
- // Get the mountpoint of the given volume
+ // Path returns the mountpoint of the given volume.
Path(name string) (mountpoint string, err error)
// Mount the given volume and return the mountpoint
Mount(name, id string) (mountpoint string, err error)