webhook

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWebhook

func CreateWebhook(ac *client.AlpaconClient, webhookRequest WebhookCreateRequest) error

func DeleteWebhook

func DeleteWebhook(ac *client.AlpaconClient, webhookName string) error

func GetWebhookDetail

func GetWebhookDetail(ac *client.AlpaconClient, webhookId string) ([]byte, error)

func GetWebhookIDByName

func GetWebhookIDByName(ac *client.AlpaconClient, webhookName string) (string, error)

func UpdateWebhook

func UpdateWebhook(ac *client.AlpaconClient, webhookName string) ([]byte, error)

Types

type WebhookAttributes

type WebhookAttributes struct {
	ID        string `json:"id" table:"ID"`
	Name      string `json:"name"`
	URL       string `json:"url" table:"URL"`
	SSLVerify bool   `json:"ssl_verify" table:"SSL Verify"`
	Enabled   bool   `json:"enabled"`
	Owner     string `json:"owner"`
}

func GetWebhookList

func GetWebhookList(ac *client.AlpaconClient) ([]WebhookAttributes, error)

type WebhookCreateRequest

type WebhookCreateRequest struct {
	Name      string `json:"name"`
	URL       string `json:"url"`
	SSLVerify bool   `json:"ssl_verify"`
	Enabled   bool   `json:"enabled"`
	Owner     string `json:"owner"`
}

type WebhookResponse

type WebhookResponse struct {
	ID        string            `json:"id"`
	Name      string            `json:"name"`
	URL       string            `json:"url"`
	SSLVerify bool              `json:"ssl_verify"`
	Enabled   bool              `json:"enabled"`
	Owner     types.UserSummary `json:"owner"`
}

Jump to

Keyboard shortcuts

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