DescriptionAdded Actions to charm.
Actions is a type encapsulating a charm's Action definitions and metadata.
Actions reads a YAML string conforming to the following spec:
actionspecs:
<action name>:
description: <string>
params:
...
<another action name>:
description: <string>
params:
...
The named Action must contain a "description" field and a "params" field. The "params" field must be conformant to JSON-Schema Draft 4 as defined at http://json-schema.org/draft-04/schema# (see http://json-schema.org/latest/json-schema-core.html). It should be a list of parameters to the Action, such as "outfile", "compression-ratio", etc for a snapshot Action; JSON-Schema properties such as $schema may also be defined. For example:
...
params:
outfile: string
compression-ratio: double
...
After being built, the "params" field is checked for conformity to
JSON-Schema. See http://json-schema.org/ for details. If it does not
conform to JSON-Schema, the YAML string will be rejected with an error.
https://code.launchpad.net/~binary132/juju-core/charm-actions/+merge/219926
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 9
Patch Set 2 : Added Actions to charm. #
Total comments: 17
Patch Set 3 : Added Actions to charm. #Patch Set 4 : Added Actions to charm. #
Total comments: 16
Patch Set 5 : Added Actions to charm. #
Total comments: 1
Patch Set 6 : Added Actions to charm. #
Total comments: 2
Patch Set 7 : Added Actions to charm. #Patch Set 8 : Added Actions to charm. #Patch Set 9 : Added Actions to charm. #
MessagesTotal messages: 18
|