Documentation
¶
Overview ¶
Package integration implements the `integration` commands. The four kinds of integration have the same endpoints, so one implementation serves them all.
Index ¶
- Variables
- func Apply(ctx context.Context, c *platform.Client, k Kind, o ApplyOptions) error
- func Delete(ctx context.Context, c *platform.Client, k Kind, o DeleteOptions) error
- func Get(ctx context.Context, c *platform.Client, k Kind, o GetOptions) error
- func List(ctx context.Context, c *platform.Client, k Kind, explicitType string) error
- type ApplyOptions
- type DeleteOptions
- type GetOptions
- type Kind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Webhook = Kind{ Name: "webhook", Title: "Webhook integration", Plural: "webhook integrations", Column: "url", ColumnTitle: "URL", // contains filtered or unexported fields } Slack = Kind{ Name: "slack", Title: "Slack integration", Plural: "Slack integrations", Column: "channel", ColumnTitle: "Channel", // contains filtered or unexported fields } Preflight = Kind{ Name: "preflight", Title: "Preflight webhook", Plural: "preflight webhooks", Column: "url", ColumnTitle: "URL", // contains filtered or unexported fields } PreflightAction = Kind{ Name: "preflight-action", Title: "Preflight action integration", Plural: "preflight action integrations", Column: "preflightActionId", ColumnTitle: "Preflight action", // contains filtered or unexported fields } Kinds = []Kind{Webhook, Slack, Preflight, PreflightAction} )
Functions ¶
Types ¶
type ApplyOptions ¶
type DeleteOptions ¶
type GetOptions ¶
type GetOptions struct {
ID, File, Type string
}
Click to show internal directories.
Click to hide internal directories.