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 EmptyWebhookCriteria
- type EventFilter
- type Handler
- type KeyValuePair
- type ReleaseBundleV2PromotionWebhookCriteria
- type ReleaseBundleV2WebhookCriteria
- 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"},
"destination": {"received", "delete_started", "delete_completed", "delete_failed"},
"user": {"locked"},
"release_bundle_v2": {"release_bundle_v2_started", "release_bundle_v2_failed", "release_bundle_v2_completed"},
"release_bundle_v2_promotion": {"release_bundle_v2_promotion_completed", "release_bundle_v2_promotion_failed", "release_bundle_v2_promotion_started"},
"artifact_lifecycle": {"archive", "restore"},
}
View Source
var TypesSupported = []string{
"artifact",
"artifact_property",
"docker",
"build",
"release_bundle",
"distribution",
"artifactory_release_bundle",
"destination",
"user",
"release_bundle_v2",
"release_bundle_v2_promotion",
"artifact_lifecycle",
}
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 EmptyWebhookCriteria ¶ added in v11.2.0
type EmptyWebhookCriteria struct{}
type EventFilter ¶
type KeyValuePair ¶
type ReleaseBundleV2PromotionWebhookCriteria ¶ added in v11.2.0
type ReleaseBundleV2PromotionWebhookCriteria struct {
SelectedEnvironments []string `json:"selectedEnvironments"`
}
type ReleaseBundleV2WebhookCriteria ¶ added in v11.2.0
type ReleaseBundleV2WebhookCriteria struct { BaseWebhookCriteria AnyReleaseBundle bool `json:"anyReleaseBundle"` SelectedReleaseBundles []string `json:"selectedReleaseBundles"` }
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"` AnyFederated bool `json:"anyFederated"` RepoKeys []string `json:"repoKeys"` }
type SecretName ¶
type SecretName struct {
Name string `json:"name"`
}
Source Files ¶
- resource_artifactory_artifact_lifecycle.go
- resource_artifactory_custom_webhook.go
- resource_artifactory_webhook.go
- resource_artifactory_webhook_base.go
- resource_artifactory_webhook_build.go
- resource_artifactory_webhook_release_bundle.go
- resource_artifactory_webhook_release_bundle_v2.go
- resource_artifactory_webhook_release_bundle_v2_promotion.go
- resource_artifactory_webhook_repo.go
- resource_artifactory_webhook_user.go
Click to show internal directories.
Click to hide internal directories.