juju: github.com/juju/juju/core/actions Index | Files

package actions

import "github.com/juju/juju/core/actions"


Package Files

actions.go message.go


const JujuRunActionName = "juju-run"

JujuRunActionName defines the action name used by juju-run.


var PredefinedActionsSpec = map[string]charm.ActionSpec{
    JujuRunActionName: {
        Description: "predefined juju-run action",
        Params: map[string]interface{}{
            "type":        "object",
            "title":       JujuRunActionName,
            "description": "predefined juju-run action params",
            "required":    []interface{}{"command", "timeout"},
            "properties": map[string]interface{}{
                "command": map[string]interface{}{
                    "type":        "string",
                    "description": "command to be ran under juju-run",
                "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.

type ActionMessage Uses

type ActionMessage struct {
    Message   string    `json:"message"`
    Timestamp time.Time `json:"timestamp"`

ActionMessage is a timestamped message logged by a running action.

Package actions imports 2 packages (graph) and is imported by 92 packages. Updated 2020-09-02. Refresh now. Tools for package owners.