MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / Path

Method Path

volume/api_test.go:178–186  ·  view source on GitHub ↗
(req *PathRequest)

Source from the content-addressed store, hash-verified

176}
177
178func (p *testPlugin) Path(req *PathRequest) (*PathResponse, error) {
179 p.path++
180 for _, v := range p.volumes {
181 if v == req.Name {
182 return &PathResponse{}, nil
183 }
184 }
185 return &PathResponse{}, fmt.Errorf("no such volume")
186}
187
188func (p *testPlugin) Mount(req *MountRequest) (*MountResponse, error) {
189 p.mount++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected