aboutsummaryrefslogtreecommitdiff
path: root/libpod/plugin
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-26 06:07:40 -0400
committerGitHub <noreply@github.com>2022-05-26 06:07:40 -0400
commit271f58f14282742e437cc810b216a7de27011ffc (patch)
treeed84f4f63f8cbc45404d035dc52e58adced09f53 /libpod/plugin
parentacdfb4d14f15814a1178985cce7175eaa13acd6a (diff)
parentbadf76e172b10548f3a77a65c04ed7aaa4a78ce9 (diff)
downloadpodman-271f58f14282742e437cc810b216a7de27011ffc.tar.gz
podman-271f58f14282742e437cc810b216a7de27011ffc.tar.bz2
podman-271f58f14282742e437cc810b216a7de27011ffc.zip
Merge pull request #14369 from mheon/fixmes_2
Remove more FIXMEs
Diffstat (limited to 'libpod/plugin')
-rw-r--r--libpod/plugin/volume_api.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/libpod/plugin/volume_api.go b/libpod/plugin/volume_api.go
index a6d66a034..2818e70c1 100644
--- a/libpod/plugin/volume_api.go
+++ b/libpod/plugin/volume_api.go
@@ -22,9 +22,6 @@ import (
var json = jsoniter.ConfigCompatibleWithStandardLibrary
-// TODO: We should add syntax for specifying plugins to containers.conf, and
-// support for loading based on that.
-
// Copied from docker/go-plugins-helpers/volume/api.go - not exported, so we
// need to do this to get at them.
// These are well-established paths that should not change unless the plugin API
@@ -185,8 +182,7 @@ func (p *VolumePlugin) getURI() string {
}
// Verify the plugin is still available.
-// TODO: Do we want to ping with an HTTP request? There's no ping endpoint so
-// we'd need to hit Activate or Capabilities?
+// Does not actually ping the API, just verifies that the socket still exists.
func (p *VolumePlugin) verifyReachable() error {
if _, err := os.Stat(p.SocketPath); err != nil {
if os.IsNotExist(err) {
@@ -307,7 +303,6 @@ func (p *VolumePlugin) ListVolumes() ([]*volume.Volume, error) {
return nil, err
}
- // TODO: Can probably unify response reading under a helper
volumeRespBytes, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, errors.Wrapf(err, "error reading response body from volume plugin %s", p.Name)