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

package actions

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

Index

Package Files

actions.go

Constants

const JujuRunActionName = "juju-run"

JujuRunActionName defines the action name used by juju-run.

Variables

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.

Package actions imports 1 packages (graph) and is imported by 79 packages. Updated 2019-09-09. Refresh now. Tools for package owners.