Documentation ¶
Overview ¶
Package webhooks provides the ability to trigger an action represented by a webhook from the OpenStack Clustering Service.
Example to Trigger webhook action
result, err := webhooks.Trigger(serviceClient(), "f93f83f6-762b-41b6-b757-80507834d394", webhooks.TriggerOpts{V: "1"}).Extract() if err != nil { panic(err) } fmt.Println("result", result)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TriggerOpts ¶
TriggerOpts represents options used for triggering an action
func (TriggerOpts) ToWebhookTriggerQuery ¶
func (opts TriggerOpts) ToWebhookTriggerQuery() (string, error)
Query string builder for webhooks
type TriggerOptsBuilder ¶
TriggerOptsBuilder Query string builder interface for webhooks
type TriggerResult ¶
type TriggerResult struct {
// contains filtered or unexported fields
}
func Trigger ¶
func Trigger(client *gophercloud.ServiceClient, id string, opts TriggerOptsBuilder) (r TriggerResult)
Trigger an action represented by a webhook.
Click to show internal directories.
Click to hide internal directories.