Documentation ¶
Index ¶
Constants ¶
View Source
const JujuExecActionName = "juju-exec"
JujuExecActionName defines the action name used by juju-exec.
Variables ¶
View Source
var PredefinedActionsSpec = map[string]charm.ActionSpec{ JujuExecActionName: { Description: "predefined juju-exec action", Parallel: true, Params: map[string]interface{}{ "type": "object", "title": JujuExecActionName, "description": "predefined juju-exec action params", "required": []interface{}{"command", "timeout"}, "properties": map[string]interface{}{ "command": map[string]interface{}{ "type": "string", "description": "command to be ran under juju-exec", }, "timeout": map[string]interface{}{ "type": "number", "description": "timeout for command execution", }, "workload-context": map[string]interface{}{ "type": "boolean", "description": "run the command in k8s workload context", }, }, }, }, }
PredefinedActionsSpec defines a spec for each predefined action.
Functions ¶
func HasJujuExecAction ¶
HasJujuExecAction returns true if the "juju-exec" binary name appears anywhere in the specified commands.
func IsJujuExecAction ¶
IsJujuExecAction returns true if name is the "juju-exec" action.
Types ¶
type ActionMessage ¶
type ActionMessage struct { Message string `json:"message"` Timestamp time.Time `json:"timestamp"` }
ActionMessage is a timestamped message logged by a running action.
Click to show internal directories.
Click to hide internal directories.