mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b35490a8ba
v2/Plugin struct had fields that were - purely used by the manager. - unsafely exposed without proper locking. This change fixes this, by moving relevant fields to the manager as well as making remaining fields as private and providing proper accessors for them. Signed-off-by: Anusha Ragunathan <anusha@docker.com>
28 lines
607 B
Go
28 lines
607 B
Go
package plugin
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/docker/docker/plugin/v2"
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
func (pm *Manager) enable(p *v2.Plugin, c *controller, force bool) error {
|
|
return fmt.Errorf("Not implemented")
|
|
}
|
|
|
|
func (pm *Manager) initSpec(p *v2.Plugin) (*specs.Spec, error) {
|
|
return nil, fmt.Errorf("Not implemented")
|
|
}
|
|
|
|
func (pm *Manager) disable(p *v2.Plugin, c *controller) error {
|
|
return fmt.Errorf("Not implemented")
|
|
}
|
|
|
|
func (pm *Manager) restore(p *v2.Plugin) error {
|
|
return fmt.Errorf("Not implemented")
|
|
}
|
|
|
|
// Shutdown plugins
|
|
func (pm *Manager) Shutdown() {
|
|
}
|