Documentation ¶
Index ¶
- Constants
- Variables
- func ResourceArtifactoryCustomWebhook(webhookType string) *schema.Resource
- func ResourceArtifactoryWebhook(webhookType string) *schema.Resource
- func ResourceStateUpgradeV1(_ context.Context, rawState map[string]interface{}, _ interface{}) (map[string]interface{}, error)
- type BaseParams
- type BaseWebhookCriteria
- type BuildWebhookCriteria
- type CustomBaseParams
- type CustomHandler
- type EventFilter
- type Handler
- type KeyValuePair
- type ReleaseBundleWebhookCriteria
- type RepoWebhookCriteria
- type SecretName
Constants ¶
View Source
const WhUrl = webhooksUrl + "/{webhookKey}"
Variables ¶
View Source
var DomainEventTypesSupported = map[string][]string{
"artifact": {"deployed", "deleted", "moved", "copied", "cached"},
"artifact_property": {"added", "deleted"},
"docker": {"pushed", "deleted", "promoted"},
"build": {"uploaded", "deleted", "promoted"},
"release_bundle": {"created", "signed", "deleted"},
"distribution": {"distribute_started", "distribute_completed", "distribute_aborted", "distribute_failed", "delete_started", "delete_completed", "delete_failed"},
"artifactory_release_bundle": {"received", "delete_started", "delete_completed", "delete_failed"},
}
View Source
var TypesSupported = []string{
"artifact",
"artifact_property",
"docker",
"build",
"release_bundle",
"distribution",
"artifactory_release_bundle",
}
Functions ¶
Types ¶
type BaseParams ¶
type BaseParams struct { Key string `json:"key"` Description string `json:"description"` Enabled bool `json:"enabled"` EventFilter EventFilter `json:"event_filter"` Handlers []Handler `json:"handlers"` }
func (BaseParams) Id ¶
func (w BaseParams) Id() string
type BaseWebhookCriteria ¶
type BuildWebhookCriteria ¶
type BuildWebhookCriteria struct { BaseWebhookCriteria AnyBuild bool `json:"anyBuild"` SelectedBuilds []string `json:"selectedBuilds"` }
type CustomBaseParams ¶
type CustomBaseParams struct { Key string `json:"key"` Description string `json:"description"` Enabled bool `json:"enabled"` EventFilter EventFilter `json:"event_filter"` Handlers []CustomHandler `json:"handlers"` }
func (CustomBaseParams) Id ¶
func (w CustomBaseParams) Id() string
type CustomHandler ¶
type CustomHandler struct { HandlerType string `json:"handler_type"` Url string `json:"url"` Secrets []KeyValuePair `json:"secrets"` Proxy string `json:"proxy"` HttpHeaders []KeyValuePair `json:"http_headers"` Payload string `json:"payload,omitempty"` }
type EventFilter ¶
type Handler ¶
type Handler struct { HandlerType string `json:"handler_type"` Url string `json:"url"` Secret string `json:"secret"` Proxy string `json:"proxy"` CustomHttpHeaders []KeyValuePair `json:"custom_http_headers"` }
type KeyValuePair ¶
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 SecretName ¶
type SecretName struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.