mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Updating Godeps to pull in plugingetter dependancy
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
8cd0c991e6
commit
69cf4bc83e
2 changed files with 16 additions and 7 deletions
4
libnetwork/Godeps/Godeps.json
generated
4
libnetwork/Godeps/Godeps.json
generated
|
@ -143,8 +143,8 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "github.com/docker/docker/pkg/plugingetter",
|
||||
"Comment": "docs-v1.12.0-rc4-2016-07-15-1985-gfebf53d",
|
||||
"Rev": "febf53d91a43fe13fbb802d9e6b7b6732183cf21"
|
||||
"Comment": "docs-v1.12.0-rc4-2016-07-15-4185-ge4512d2",
|
||||
"Rev": "e4512d264741e83e954a19f9ef5e3cb06c5856b6"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/docker/docker/pkg/plugins",
|
||||
|
|
19
libnetwork/Godeps/_workspace/src/github.com/docker/docker/pkg/plugingetter/getter.go
generated
vendored
19
libnetwork/Godeps/_workspace/src/github.com/docker/docker/pkg/plugingetter/getter.go
generated
vendored
|
@ -5,22 +5,31 @@ 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
|
||||
// ACQUIRE increments RefCount
|
||||
ACQUIRE = 1
|
||||
// RELEASE decrements RefCount
|
||||
RELEASE = -1
|
||||
)
|
||||
|
||||
// CompatPlugin is a abstraction to handle both v2(new) and v1(legacy) plugins.
|
||||
// CompatPlugin is an abstraction to handle both v2(new) and v1(legacy) plugins.
|
||||
type CompatPlugin interface {
|
||||
Client() *plugins.Client
|
||||
Name() string
|
||||
BasePath() string
|
||||
IsV1() bool
|
||||
}
|
||||
|
||||
// CountedPlugin is a plugin which is reference counted.
|
||||
type CountedPlugin interface {
|
||||
Acquire()
|
||||
Release()
|
||||
CompatPlugin
|
||||
}
|
||||
|
||||
// PluginGetter is the interface implemented by Store
|
||||
type PluginGetter interface {
|
||||
Get(name, capability string, mode int) (CompatPlugin, error)
|
||||
GetAllByCap(capability string) ([]CompatPlugin, error)
|
||||
GetAllManagedPluginsByCap(capability string) []CompatPlugin
|
||||
Handle(capability string, callback func(string, *plugins.Client))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue