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

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