Action
See first: Juju | Action
See also: How to add an action to a charm
To create an action, a charm author must define the action and implement handlers for the action.
An action may be defined by using the schema in the actions.yaml
file of the charm.
The handler for the action should then be implemented as a hook for the appropriate <action name>-action
event. In the ops framework this means observing an event of type ActionEvent
.
Last updated 2 months ago.