Documentation
¶
Index ¶
- Variables
- func APIBaseURL() (string, error)
- func ExtendWebhookLife(l *zap.Logger, baseURL, oauthToken string, id int) (time.Time, bool)
- func New(cvars sdkservices.Vars) sdkservices.Integration
- func NewHTTPHandler(l *zap.Logger, o sdkservices.OAuth, v sdkservices.Vars, ...) handler
- func Start(l *zap.Logger, m *muxes.Muxes, v sdkservices.Vars, o sdkservices.OAuth, ...)
Constants ¶
This section is empty.
Variables ¶
var ( AccessID = sdktypes.NewSymbol("AccessID") WebhookID = sdktypes.NewSymbol("WebhookID") WebhookExpiration = sdktypes.NewSymbol("WebhookExpiration") )
var (
IntegrationID = sdktypes.NewIntegrationIDFromName(integrationName)
)
Functions ¶
func APIBaseURL ¶ added in v0.13.2
Determine Jira base URL (to support Jira Data Center, i.e. on-prem). TODO(ENG-965): From new-connection form instead of env var.
func ExtendWebhookLife ¶ added in v0.13.2
ExtendWebhookLife extends the expiration date of the given webhook ID by 30 days. Based on: https://developer.atlassian.com/cloud/jira/platform/webhooks/#using-the-rest-api--refreshing-registered-webhooks https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-webhooks/#api-rest-api-3-webhook-refresh-put https://developer.atlassian.com/server/jira/platform/webhooks/
func New ¶
func New(cvars sdkservices.Vars) sdkservices.Integration
func NewHTTPHandler ¶
func NewHTTPHandler(l *zap.Logger, o sdkservices.OAuth, v sdkservices.Vars, d sdkservices.DispatchFunc) handler
func Start ¶
func Start(l *zap.Logger, m *muxes.Muxes, v sdkservices.Vars, o sdkservices.OAuth, d sdkservices.DispatchFunc)
Start initializes all the HTTP handlers of the Jira integration. This includes connection UIs, initialization webhooks, and event webhooks.
Types ¶
This section is empty.