Documentation
¶
Index ¶
- type Configuration
- type GitHub
- func (g *GitHub) Actions() []core.Action
- func (g *GitHub) Cleanup(ctx core.IntegrationCleanupContext) error
- func (g *GitHub) Configuration() []configuration.Field
- func (g *GitHub) Description() string
- func (g *GitHub) HandleHook(ctx core.IntegrationHookContext) error
- func (g *GitHub) HandleRequest(ctx core.HTTPRequestContext)
- func (g *GitHub) Hooks() []core.Hook
- func (g *GitHub) Icon() string
- func (g *GitHub) Instructions() string
- func (g *GitHub) Label() string
- func (g *GitHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (g *GitHub) Name() string
- func (g *GitHub) Sync(ctx core.SyncContext) error
- func (g *GitHub) Triggers() []core.Trigger
- type GitHubAppData
- type GitHubWebhookHandler
- func (h *GitHubWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
- func (h *GitHubWebhookHandler) CompareConfig(a, b any) (bool, error)
- func (h *GitHubWebhookHandler) Merge(current, requested any) (any, bool, error)
- func (h *GitHubWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶ added in v0.5.0
type Configuration struct {
Organization string `mapstructure:"organization" json:"organization"`
}
type GitHub ¶ added in v0.5.0
type GitHub struct {
}
func (*GitHub) Cleanup ¶ added in v0.6.0
func (g *GitHub) Cleanup(ctx core.IntegrationCleanupContext) error
func (*GitHub) Configuration ¶ added in v0.5.0
func (g *GitHub) Configuration() []configuration.Field
func (*GitHub) Description ¶ added in v0.5.0
func (*GitHub) HandleHook ¶ added in v0.18.0
func (g *GitHub) HandleHook(ctx core.IntegrationHookContext) error
func (*GitHub) HandleRequest ¶ added in v0.5.0
func (g *GitHub) HandleRequest(ctx core.HTTPRequestContext)
func (*GitHub) Instructions ¶ added in v0.5.0
func (*GitHub) ListResources ¶ added in v0.5.0
func (g *GitHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type GitHubAppData ¶ added in v0.5.0
type GitHubAppData struct {
ID int64 `mapstructure:"id" json:"id"`
Slug string `mapstructure:"slug" json:"slug"`
ClientID string `mapstructure:"client_id" json:"client_id"`
ClientSecret string `mapstructure:"client_secret" json:"client_secret"`
WebhookSecret string `mapstructure:"webhook_secret" json:"webhook_secret"`
PEM string `mapstructure:"pem" json:"pem"`
}
* This is the response GitHub sends back after the GitHub app is created. * NOTE: this contains sensitive data, so we should not save this as part * of the installation metadata.
type GitHubWebhookHandler ¶ added in v0.7.0
type GitHubWebhookHandler struct{}
func (*GitHubWebhookHandler) Cleanup ¶ added in v0.7.0
func (h *GitHubWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
func (*GitHubWebhookHandler) CompareConfig ¶ added in v0.7.0
func (h *GitHubWebhookHandler) CompareConfig(a, b any) (bool, error)
func (*GitHubWebhookHandler) Merge ¶ added in v0.8.0
func (h *GitHubWebhookHandler) Merge(current, requested any) (any, bool, error)
func (*GitHubWebhookHandler) Setup ¶ added in v0.7.0
func (h *GitHubWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
Click to show internal directories.
Click to hide internal directories.