Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWebhookAlreadyExists = errors.New("webhook already exists with the same name") ErrWebhookNotFound = errors.New("webhook not found") )
Functions ¶
This section is empty.
Types ¶
type Webhook ¶
type Webhook struct { Name string `json:"name" form:"name"` Description string `json:"description" form:"description"` TeamOwner string `json:"team_owner" form:"team_owner"` EventFilter WebhookEventFilter `json:"event_filter" form:"event_filter"` URL string `json:"url" form:"url"` ProxyURL string `json:"proxy_url" form:"proxy_url"` Headers http.Header `json:"headers" form:"headers"` Method string `json:"method" form:"method"` Body string `json:"body" form:"body"` Insecure bool `json:"insecure" form:"insecure"` }
type WebhookEventFilter ¶
type WebhookEventFilter struct { TargetTypes []string `json:"target_types" form:"target_types"` TargetValues []string `json:"target_values" form:"target_values"` KindTypes []string `json:"kind_types" form:"kind_types"` KindNames []string `json:"kind_names" form:"kind_names"` ErrorOnly bool `json:"error_only" form:"error_only"` SuccessOnly bool `json:"success_only" form:"success_only"` }
type WebhookService ¶
Click to show internal directories.
Click to hide internal directories.