actions

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const JujuRunActionName = "juju-run"

JujuRunActionName defines the action name used by juju-run.

Variables

View Source
var PredefinedActionsSpec = map[string]charm.ActionSpec{
	JujuRunActionName: charm.ActionSpec{
		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",
				},
			},
		},
	},
}

PredefinedActionsSpec defines a spec for each predefined action.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL