Documentation
¶
Index ¶
- func CreateWebhook(ac *client.AlpaconClient, webhookRequest WebhookCreateRequest) error
- func DeleteWebhook(ac *client.AlpaconClient, webhookName string) error
- func GetWebhookDetail(ac *client.AlpaconClient, webhookId string) ([]byte, error)
- func GetWebhookIDByName(ac *client.AlpaconClient, webhookName string) (string, error)
- func UpdateWebhook(ac *client.AlpaconClient, webhookName string) ([]byte, error)
- type WebhookAttributes
- type WebhookCreateRequest
- type WebhookResponse
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" table:"Name"`
URL string `json:"url" table:"URL"`
Provider string `json:"provider" table:"Provider"`
SSLVerify bool `json:"ssl_verify" table:"SSL Verify"`
Enabled bool `json:"enabled" table:"Enabled"`
Owner string `json:"owner"`
}
func GetWebhookList ¶
func GetWebhookList(ac *client.AlpaconClient) ([]WebhookAttributes, error)
type WebhookCreateRequest ¶
type WebhookResponse ¶
type WebhookResponse struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
Provider string `json:"provider"`
SSLVerify bool `json:"ssl_verify"`
Enabled bool `json:"enabled"`
Owner types.UserSummary `json:"owner"`
AddedAt string `json:"added_at"`
UpdatedAt string `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.