integration

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package integration implements the `integration` commands. The four kinds of integration have the same endpoints, so one implementation serves them all.

Index

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

func Apply

func Apply(ctx context.Context, c *platform.Client, k Kind, o ApplyOptions) error

func Delete

func Delete(ctx context.Context, c *platform.Client, k Kind, o DeleteOptions) error

func Get

func Get(ctx context.Context, c *platform.Client, k Kind, o GetOptions) error

func List

func List(ctx context.Context, c *platform.Client, k Kind, explicitType string) error

Types

type ApplyOptions

type ApplyOptions struct {
	Files     []string
	Recursive bool
}

type DeleteOptions

type DeleteOptions struct {
	ID  string
	Yes bool
}

type GetOptions

type GetOptions struct {
	ID, File, Type string
}

type Kind

type Kind struct {
	Name   string // as the command names it
	Title  string // as messages name it
	Plural string
	// The column that says where the integration reports to.
	Column, ColumnTitle string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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