README
¶
Slack Webhook Plugin
Send attestations to Slack using webhooks.
How to use it
- To get started, you need to register the plugin in your Chainloop organization.
$ chainloop integration registered add slack-webhook --name [my-registration] --opt webhook=[webhookURL]
- Attach the integration to your workflow.
chainloop integration attached add --workflow $WID --integration $IID
Registration Input Schema
Field | Type | Required | Description |
---|---|---|---|
webhook | string (uri) | yes | URL of the slack webhook |
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/chainloop-dev/chainloop/app/controlplane/plugins/core/slack-webhook/v1/registration-request",
"properties": {
"webhook": {
"type": "string",
"format": "uri",
"description": "URL of the slack webhook"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"webhook"
]
}
Documentation
¶
Index ¶
- func New(l log.Logger) (sdk.FanOut, error)
- type Integration
- func (i *Integration) Attach(_ context.Context, _ *sdk.AttachmentRequest) (*sdk.AttachmentResponse, error)
- func (i *Integration) Execute(_ context.Context, req *sdk.ExecutionRequest) error
- func (i *Integration) Register(_ context.Context, req *sdk.RegistrationRequest) (*sdk.RegistrationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Integration ¶
type Integration struct {
*sdk.FanOutIntegration
}
func (*Integration) Attach ¶
func (i *Integration) Attach(_ context.Context, _ *sdk.AttachmentRequest) (*sdk.AttachmentResponse, error)
Attachment is executed when to attach a registered instance of this integration to a specific workflow
Click to show internal directories.
Click to hide internal directories.