You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/controlplane/plugins/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Chainloop Plugins
1
+
# Plugins Overview
2
2
3
3
Chainloop plugins are a way to add functionality to Chainloop by integrating with third-parties.
4
4
@@ -112,13 +112,13 @@ A Discord webhook plugin will
112
112
113
113
## How to create a new plugin
114
114
115
-
We offer a [starter template](./core/template) that can be used as baseline. Just copy it to a new folder i.e `core/my-plugin/v1` to get started.
115
+
We offer a [starter template](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/plugins/core/template) that can be used as baseline. Just copy it to a new folder i.e `core/my-plugin/v1` to get started.
116
116
117
117
Next:
118
118
119
119
- Replace all the occurrences of `template` in the code with your plugin name.
120
-
- Add it to the list of available plugins [here](`./plugins.go`). This will make this plugin available the next time the control plane starts.
120
+
- Add it to the list of available plugins [here](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/plugins.go). This will make this plugin available the next time the control plane starts.
121
121
- Define the API request payloads for both Registration and Attachment.
122
-
- Implement the [FanOutPlugin interface](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/sdk/v2/fanout.go#L55). The template comes prefilled with some commented out code as guideline.
122
+
- Implement the [FanOutPlugin interface](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/sdk/v1/fanout.go#L80). The template comes prefilled with some commented out code as guideline.
123
123
124
-
Remember that you can find some examples of fully functional plugins in [here](./core/).
124
+
Remember that you can find some examples of fully functional plugins in [here](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/plugins/core).
0 commit comments