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

Method Remove

volume/api_test.go:167–176  ·  view source on GitHub ↗
(req *RemoveRequest)

Source from the content-addressed store, hash-verified

165}
166
167func (p *testPlugin) Remove(req *RemoveRequest) error {
168 p.remove++
169 for i, v := range p.volumes {
170 if v == req.Name {
171 p.volumes = append(p.volumes[:i], p.volumes[i+1:]...)
172 return nil
173 }
174 }
175 return fmt.Errorf("no such volume")
176}
177
178func (p *testPlugin) Path(req *PathRequest) (*PathResponse, error) {
179 p.path++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected