mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
19 lines
375 B
Go
19 lines
375 B
Go
package store
|
|
|
|
import "github.com/docker/docker/pkg/plugins"
|
|
|
|
const (
|
|
// LOOKUP doesn't update RefCount
|
|
LOOKUP = 0
|
|
// CREATE increments RefCount
|
|
CREATE = 1
|
|
// REMOVE decrements RefCount
|
|
REMOVE = -1
|
|
)
|
|
|
|
// CompatPlugin is an abstraction to handle both new and legacy (v1) plugins.
|
|
type CompatPlugin interface {
|
|
Client() *plugins.Client
|
|
Name() string
|
|
IsLegacy() bool
|
|
}
|