Documentation
¶
Index ¶
Constants ¶
View Source
const WebhookUrl = webhooksUrl + "/{webhookKey}"
Variables ¶
View Source
var DomainEventTypesSupported = map[string][]string{ "artifact": []string{"deployed", "deleted", "moved", "copied", "cached"}, "artifact_property": []string{"added", "deleted"}, "docker": []string{"pushed", "deleted", "promoted"}, "build": []string{"uploaded", "deleted", "promoted"}, "release_bundle": []string{"created", "signed", "deleted"}, "distribution": []string{"distribute_started", "distribute_completed", "distribute_aborted", "distribute_failed", "delete_started", "delete_completed", "delete_failed"}, "artifactory_release_bundle": []string{"received", "delete_started", "delete_completed", "delete_failed"}, }
View Source
var WebhookTypesSupported = []string{
"artifact",
"artifact_property",
"docker",
"build",
"release_bundle",
"distribution",
"artifactory_release_bundle",
}
Functions ¶
Types ¶
type BaseWebhookCriteria ¶
type BuildWebhookCriteria ¶
type BuildWebhookCriteria struct { BaseWebhookCriteria AnyBuild bool `json:"anyBuild"` SelectedBuilds []string `json:"selectedBuilds"` }
type ReleaseBundleWebhookCriteria ¶
type ReleaseBundleWebhookCriteria struct { BaseWebhookCriteria AnyReleaseBundle bool `json:"anyReleaseBundle"` RegisteredReleaseBundlesNames []string `json:"registeredReleaseBundlesNames"` }
type RepoWebhookCriteria ¶
type RepoWebhookCriteria struct { BaseWebhookCriteria AnyLocal bool `json:"anyLocal"` AnyRemote bool `json:"anyRemote"` RepoKeys []string `json:"repoKeys"` }
type WebhookBaseParams ¶
type WebhookBaseParams struct { Key string `json:"key"` Description string `json:"description"` Enabled bool `json:"enabled"` EventFilter WebhookEventFilter `json:"event_filter"` Handlers []WebhookHandler `json:"handlers"` }
func (WebhookBaseParams) Id ¶
func (w WebhookBaseParams) Id() string
type WebhookCustomHttpHeader ¶
type WebhookEventFilter ¶
type WebhookHandler ¶
type WebhookHandler struct { HandlerType string `json:"handler_type"` Url string `json:"url"` Secret string `json:"secret"` Proxy string `json:"proxy"` CustomHttpHeaders []WebhookCustomHttpHeader `json:"custom_http_headers"` }
Click to show internal directories.
Click to hide internal directories.