MCPcopy
hub / github.com/superplanehq/superplane / Action

Interface Action

pkg/core/action.go:8–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type Action interface {
9
10 /*
11 * The unique identifier for the component.
12 * This is how nodes reference it, and is used for registration.
13 */
14 Name() string
15
16 /*
17 * The label for the component.
18 * This is how nodes are displayed in the UI.
19 */
20 Label() string
21
22 /*
23 * A good description of what the component does.
24 * Helpful for documentation and user interfaces.
25 */
26 Description() string
27
28 /*
29 * Detailed markdown documentation explaining how to use the component.
30 * This should provide in-depth information about the component's purpose,
31 * configuration options, use cases, and examples.
32 */
33 Documentation() string
34
35 /*
36 * The icon for the component.
37 * This is used in the UI to represent the component.
38 */
39 Icon() string
40
41 /*
42 * The color for the component.
43 * This is used in the UI to represent the component.
44 */
45 Color() string
46
47 /*
48 * Example output data for the component.
49 */
50 ExampleOutput() map[string]any
51
52 /*
53 * The output channels used by the component.
54 * If none is returned, the 'default' one is used.
55 */
56 OutputChannels(configuration any) []OutputChannel
57
58 /*
59 * The configuration fields exposed by the component.
60 */
61 Configuration() []configuration.Field
62
63 /*
64 * Setup the component.
65 */

Callers 66

DocumentationMethod · 0.65
DocumentationMethod · 0.65
writeActionSectionFunction · 0.65
writeTriggerSectionFunction · 0.65
ExampleOutputMethod · 0.65
loadExamplesFunction · 0.65
DescribeActionMethod · 0.65
SerializeActionsFunction · 0.65
genCapabilitiesMethod · 0.65
CapabilityGroupsMethod · 0.65

Implementers 15

panickingActionpkg/registry/action_test.go
PanicableActionpkg/registry/action.go
ForEachpkg/components/foreach/for_each.go
Approvalpkg/components/approval/approval.go
Mergepkg/components/merge/merge.go
ReadMemorypkg/components/readmemory/read_memory.
RunJSpkg/components/runner/run_javascript.g
Runnerpkg/components/runner/run_commands.go
RunPythonpkg/components/runner/run_python.go
RunBashpkg/components/runner/run_bash.go
Displaypkg/components/display/display.go
HTTPpkg/components/http/http.go

Calls

no outgoing calls

Tested by

no test coverage detected