plugins: misc fixes
Rename variable to reflect manifest -> config renaming Populate Description fields when computing privileges. Refactor/reuse code from daemon/oci_linux.go Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
ddf22952a0
commit
b70edf410d
@ -16,6 +16,7 @@ keywords: "API, Usage, plugins, documentation, developer"
|
|||||||
will be rejected.
|
will be rejected.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
# Plugin Config Version 0 of Plugin V2
|
# Plugin Config Version 0 of Plugin V2
|
||||||
|
|
||||||
This document outlines the format of the V0 plugin configuration. The plugin
|
This document outlines the format of the V0 plugin configuration. The plugin
|
||||||
@ -85,10 +86,6 @@ Config provides the base accessible fields for working with V0 plugin format
|
|||||||
- **host**
|
- **host**
|
||||||
- **none**
|
- **none**
|
||||||
|
|
||||||
- **`capabilities`** *array*
|
|
||||||
|
|
||||||
capabilities of the plugin (*Linux only*), see list [`here`](https://github.com/opencontainers/runc/blob/master/libcontainer/SPEC.md#security)
|
|
||||||
|
|
||||||
- **`mounts`** *PluginMount array*
|
- **`mounts`** *PluginMount array*
|
||||||
|
|
||||||
mount of the plugin, struct consisting of the following fields, see [`MOUNTS`](https://github.com/opencontainers/runtime-spec/blob/master/config.md#mounts)
|
mount of the plugin, struct consisting of the following fields, see [`MOUNTS`](https://github.com/opencontainers/runtime-spec/blob/master/config.md#mounts)
|
||||||
@ -117,22 +114,6 @@ Config provides the base accessible fields for working with V0 plugin format
|
|||||||
|
|
||||||
options of the mount.
|
options of the mount.
|
||||||
|
|
||||||
- **`devices`** *PluginDevice array*
|
|
||||||
|
|
||||||
device of the plugin, (*Linux only*), struct consisting of the following fields, see [`DEVICES`](https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#devices)
|
|
||||||
|
|
||||||
- **`name`** *string*
|
|
||||||
|
|
||||||
name of the device.
|
|
||||||
|
|
||||||
- **`description`** *string*
|
|
||||||
|
|
||||||
description of the device.
|
|
||||||
|
|
||||||
- **`path`** *string*
|
|
||||||
|
|
||||||
path of the device.
|
|
||||||
|
|
||||||
- **`env`** *PluginEnv array*
|
- **`env`** *PluginEnv array*
|
||||||
|
|
||||||
env of the plugin, struct consisting of the following fields
|
env of the plugin, struct consisting of the following fields
|
||||||
@ -165,6 +146,27 @@ Config provides the base accessible fields for working with V0 plugin format
|
|||||||
|
|
||||||
values of the args.
|
values of the args.
|
||||||
|
|
||||||
|
- **`linux`** *PluginLinux*
|
||||||
|
|
||||||
|
- **`capabilities`** *string array*
|
||||||
|
|
||||||
|
capabilities of the plugin (*Linux only*), see list [`here`](https://github.com/opencontainers/runc/blob/master/libcontainer/SPEC.md#security)
|
||||||
|
|
||||||
|
- **`devices`** *PluginDevice array*
|
||||||
|
|
||||||
|
device of the plugin, (*Linux only*), struct consisting of the following fields, see [`DEVICES`](https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#devices)
|
||||||
|
|
||||||
|
- **`name`** *string*
|
||||||
|
|
||||||
|
name of the device.
|
||||||
|
|
||||||
|
- **`description`** *string*
|
||||||
|
|
||||||
|
description of the device.
|
||||||
|
|
||||||
|
- **`path`** *string*
|
||||||
|
|
||||||
|
path of the device.
|
||||||
|
|
||||||
## Example Config
|
## Example Config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user