Documentation
¶
Index ¶
- Constants
- func ListMembers(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func ListMilestones(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func ListProjects(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- type Auth
- type Client
- func (c *Client) CancelPipeline(ctx context.Context, projectID string, pipelineID int) error
- func (c *Client) CreateIssue(ctx context.Context, projectID string, req *IssueRequest) (*Issue, error)
- func (c *Client) CreatePipeline(ctx context.Context, projectID string, req *CreatePipelineRequest) (*Pipeline, error)
- func (c *Client) FetchIntegrationData() (*User, []Project, error)
- func (c *Client) GetLatestPipeline(projectID, ref string) (*Pipeline, error)
- func (c *Client) GetPipeline(projectID string, pipelineID int) (*Pipeline, error)
- func (c *Client) GetPipelineTestReportSummary(projectID string, pipelineID int) (*PipelineTestReportSummary, error)
- func (c *Client) ListGroupMembers(groupID string) ([]User, error)
- func (c *Client) ListMilestones(projectID string) ([]Milestone, error)
- func (c *Client) ListPipelines(projectID string) ([]Pipeline, error)
- type Configuration
- type CreateIssue
- func (c *CreateIssue) Actions() []core.Action
- func (c *CreateIssue) Cancel(ctx core.ExecutionContext) error
- func (c *CreateIssue) Cleanup(ctx core.SetupContext) error
- func (c *CreateIssue) Color() string
- func (c *CreateIssue) Configuration() []configuration.Field
- func (c *CreateIssue) Description() string
- func (c *CreateIssue) Documentation() string
- func (c *CreateIssue) ExampleOutput() map[string]any
- func (c *CreateIssue) Execute(ctx core.ExecutionContext) error
- func (c *CreateIssue) HandleAction(ctx core.ActionContext) error
- func (c *CreateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CreateIssue) Icon() string
- func (c *CreateIssue) Label() string
- func (c *CreateIssue) Name() string
- func (c *CreateIssue) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateIssue) Setup(ctx core.SetupContext) error
- type CreateIssueConfiguration
- type CreatePipelineRequest
- type GetLatestPipeline
- func (c *GetLatestPipeline) Actions() []core.Action
- func (c *GetLatestPipeline) Cancel(ctx core.ExecutionContext) error
- func (c *GetLatestPipeline) Cleanup(ctx core.SetupContext) error
- func (c *GetLatestPipeline) Color() string
- func (c *GetLatestPipeline) Configuration() []configuration.Field
- func (c *GetLatestPipeline) Description() string
- func (c *GetLatestPipeline) Documentation() string
- func (c *GetLatestPipeline) ExampleOutput() map[string]any
- func (c *GetLatestPipeline) Execute(ctx core.ExecutionContext) error
- func (c *GetLatestPipeline) HandleAction(ctx core.ActionContext) error
- func (c *GetLatestPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetLatestPipeline) Icon() string
- func (c *GetLatestPipeline) Label() string
- func (c *GetLatestPipeline) Name() string
- func (c *GetLatestPipeline) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetLatestPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetLatestPipeline) Setup(ctx core.SetupContext) error
- type GetLatestPipelineConfiguration
- type GetPipeline
- func (c *GetPipeline) Actions() []core.Action
- func (c *GetPipeline) Cancel(ctx core.ExecutionContext) error
- func (c *GetPipeline) Cleanup(ctx core.SetupContext) error
- func (c *GetPipeline) Color() string
- func (c *GetPipeline) Configuration() []configuration.Field
- func (c *GetPipeline) Description() string
- func (c *GetPipeline) Documentation() string
- func (c *GetPipeline) ExampleOutput() map[string]any
- func (c *GetPipeline) Execute(ctx core.ExecutionContext) error
- func (c *GetPipeline) HandleAction(ctx core.ActionContext) error
- func (c *GetPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetPipeline) Icon() string
- func (c *GetPipeline) Label() string
- func (c *GetPipeline) Name() string
- func (c *GetPipeline) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetPipeline) Setup(ctx core.SetupContext) error
- type GetPipelineConfiguration
- type GetTestReportSummary
- func (c *GetTestReportSummary) Actions() []core.Action
- func (c *GetTestReportSummary) Cancel(ctx core.ExecutionContext) error
- func (c *GetTestReportSummary) Cleanup(ctx core.SetupContext) error
- func (c *GetTestReportSummary) Color() string
- func (c *GetTestReportSummary) Configuration() []configuration.Field
- func (c *GetTestReportSummary) Description() string
- func (c *GetTestReportSummary) Documentation() string
- func (c *GetTestReportSummary) ExampleOutput() map[string]any
- func (c *GetTestReportSummary) Execute(ctx core.ExecutionContext) error
- func (c *GetTestReportSummary) HandleAction(ctx core.ActionContext) error
- func (c *GetTestReportSummary) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetTestReportSummary) Icon() string
- func (c *GetTestReportSummary) Label() string
- func (c *GetTestReportSummary) Name() string
- func (c *GetTestReportSummary) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetTestReportSummary) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetTestReportSummary) Setup(ctx core.SetupContext) error
- type GetTestReportSummaryConfiguration
- type GitLab
- func (g *GitLab) Actions() []core.Action
- func (g *GitLab) Cleanup(ctx core.IntegrationCleanupContext) error
- func (g *GitLab) Components() []core.Component
- func (g *GitLab) Configuration() []configuration.Field
- func (g *GitLab) Description() string
- func (g *GitLab) HandleAction(ctx core.IntegrationActionContext) error
- func (g *GitLab) HandleRequest(ctx core.HTTPRequestContext)
- func (g *GitLab) Icon() string
- func (g *GitLab) Instructions() string
- func (g *GitLab) Label() string
- func (g *GitLab) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (g *GitLab) Name() string
- func (g *GitLab) Sync(ctx core.SyncContext) error
- func (g *GitLab) Triggers() []core.Trigger
- type GitLabWebhookHandler
- func (h *GitLabWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
- func (h *GitLabWebhookHandler) CompareConfig(a, b any) (bool, error)
- func (h *GitLabWebhookHandler) Merge(current, requested any) (any, bool, error)
- func (h *GitLabWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
- type Hook
- type HookEvents
- type HooksClient
- type Issue
- type IssueRequest
- type Metadata
- type Milestone
- type NodeMetadata
- type OnIssue
- func (i *OnIssue) Actions() []core.Action
- func (i *OnIssue) Cleanup(ctx core.TriggerContext) error
- func (i *OnIssue) Color() string
- func (i *OnIssue) Configuration() []configuration.Field
- func (i *OnIssue) Description() string
- func (i *OnIssue) Documentation() string
- func (i *OnIssue) ExampleData() map[string]any
- func (i *OnIssue) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (i *OnIssue) Icon() string
- func (i *OnIssue) Label() string
- func (i *OnIssue) Name() string
- func (i *OnIssue) Setup(ctx core.TriggerContext) error
- type OnIssueConfiguration
- type OnMergeRequest
- func (m *OnMergeRequest) Actions() []core.Action
- func (m *OnMergeRequest) Cleanup(ctx core.TriggerContext) error
- func (m *OnMergeRequest) Color() string
- func (m *OnMergeRequest) Configuration() []configuration.Field
- func (m *OnMergeRequest) Description() string
- func (m *OnMergeRequest) Documentation() string
- func (m *OnMergeRequest) ExampleData() map[string]any
- func (m *OnMergeRequest) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (m *OnMergeRequest) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (m *OnMergeRequest) Icon() string
- func (m *OnMergeRequest) Label() string
- func (m *OnMergeRequest) Name() string
- func (m *OnMergeRequest) Setup(ctx core.TriggerContext) error
- type OnMergeRequestConfiguration
- type OnMilestone
- func (m *OnMilestone) Actions() []core.Action
- func (m *OnMilestone) Cleanup(ctx core.TriggerContext) error
- func (m *OnMilestone) Color() string
- func (m *OnMilestone) Configuration() []configuration.Field
- func (m *OnMilestone) Description() string
- func (m *OnMilestone) Documentation() string
- func (m *OnMilestone) ExampleData() map[string]any
- func (m *OnMilestone) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (m *OnMilestone) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (m *OnMilestone) Icon() string
- func (m *OnMilestone) Label() string
- func (m *OnMilestone) Name() string
- func (m *OnMilestone) Setup(ctx core.TriggerContext) error
- type OnMilestoneConfiguration
- type OnPipeline
- func (p *OnPipeline) Actions() []core.Action
- func (p *OnPipeline) Cleanup(ctx core.TriggerContext) error
- func (p *OnPipeline) Color() string
- func (p *OnPipeline) Configuration() []configuration.Field
- func (p *OnPipeline) Description() string
- func (p *OnPipeline) Documentation() string
- func (p *OnPipeline) ExampleData() map[string]any
- func (p *OnPipeline) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (p *OnPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (p *OnPipeline) Icon() string
- func (p *OnPipeline) Label() string
- func (p *OnPipeline) Name() string
- func (p *OnPipeline) Setup(ctx core.TriggerContext) error
- type OnPipelineConfiguration
- type OnRelease
- func (r *OnRelease) Actions() []core.Action
- func (r *OnRelease) Cleanup(ctx core.TriggerContext) error
- func (r *OnRelease) Color() string
- func (r *OnRelease) Configuration() []configuration.Field
- func (r *OnRelease) Description() string
- func (r *OnRelease) Documentation() string
- func (r *OnRelease) ExampleData() map[string]any
- func (r *OnRelease) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (r *OnRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (r *OnRelease) Icon() string
- func (r *OnRelease) Label() string
- func (r *OnRelease) Name() string
- func (r *OnRelease) Setup(ctx core.TriggerContext) error
- type OnReleaseConfiguration
- type OnTag
- func (t *OnTag) Actions() []core.Action
- func (t *OnTag) Cleanup(ctx core.TriggerContext) error
- func (t *OnTag) Color() string
- func (t *OnTag) Configuration() []configuration.Field
- func (t *OnTag) Description() string
- func (t *OnTag) Documentation() string
- func (t *OnTag) ExampleData() map[string]any
- func (t *OnTag) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnTag) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnTag) Icon() string
- func (t *OnTag) Label() string
- func (t *OnTag) Name() string
- func (t *OnTag) Setup(ctx core.TriggerContext) error
- type OnTagConfiguration
- type OnVulnerability
- func (v *OnVulnerability) Actions() []core.Action
- func (v *OnVulnerability) Cleanup(ctx core.TriggerContext) error
- func (v *OnVulnerability) Color() string
- func (v *OnVulnerability) Configuration() []configuration.Field
- func (v *OnVulnerability) Description() string
- func (v *OnVulnerability) Documentation() string
- func (v *OnVulnerability) ExampleData() map[string]any
- func (v *OnVulnerability) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (v *OnVulnerability) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (v *OnVulnerability) Icon() string
- func (v *OnVulnerability) Label() string
- func (v *OnVulnerability) Name() string
- func (v *OnVulnerability) Setup(ctx core.TriggerContext) error
- type OnVulnerabilityConfiguration
- type Pipeline
- type PipelineInput
- type PipelineMetadata
- type PipelineTestReportSummary
- type PipelineVariable
- type Project
- type ProjectMetadata
- type RunPipeline
- func (r *RunPipeline) Actions() []core.Action
- func (r *RunPipeline) Cancel(ctx core.ExecutionContext) error
- func (r *RunPipeline) Cleanup(ctx core.SetupContext) error
- func (r *RunPipeline) Color() string
- func (r *RunPipeline) Configuration() []configuration.Field
- func (r *RunPipeline) Description() string
- func (r *RunPipeline) Documentation() string
- func (r *RunPipeline) ExampleOutput() map[string]any
- func (r *RunPipeline) Execute(ctx core.ExecutionContext) error
- func (r *RunPipeline) HandleAction(ctx core.ActionContext) error
- func (r *RunPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (r *RunPipeline) Icon() string
- func (r *RunPipeline) Label() string
- func (r *RunPipeline) Name() string
- func (r *RunPipeline) OutputChannels(configuration any) []core.OutputChannel
- func (r *RunPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (r *RunPipeline) Setup(ctx core.SetupContext) error
- type RunPipelineExecutionMetadata
- type RunPipelineInputSpec
- type RunPipelineSpec
- type TokenResponse
- type User
- type UserMetadata
- type WebhookConfiguration
- type WebhookMetadata
Constants ¶
View Source
const ( PipelineStatusSuccess = "success" PipelineStatusFailed = "failed" PipelineStatusCanceled = "canceled" PipelineStatusCancelled = "cancelled" PipelineStatusSkipped = "skipped" PipelineStatusManual = "manual" PipelineStatusBlocked = "blocked" )
View Source
const ( AuthTypePersonalAccessToken = "personalAccessToken" AuthTypeAppOAuth = "appOAuth" OAuthAccessToken = "accessToken" OAuthRefreshToken = "refreshToken" )
View Source
const ( ResourceTypeMember = "member" ResourceTypeMilestone = "milestone" ResourceTypeProject = "project" )
View Source
const ( PipelinePayloadType = "gitlab.pipeline.finished" PipelinePassedOutputChannel = "passed" PipelineFailedOutputChannel = "failed" RunPipelinePollInterval = 5 * time.Minute RunPipelinePollAction = "poll" RunPipelineKVPipelineID = "pipeline_id" )
Variables ¶
This section is empty.
Functions ¶
func ListMembers ¶
func ListMembers(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
func ListMilestones ¶
func ListMilestones(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
func ListProjects ¶
func ListProjects(ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(client core.HTTPContext) *Auth
func (*Auth) HandleCallback ¶
func (a *Auth) HandleCallback(req *http.Request, config *Configuration, expectedState, redirectURI string) (*TokenResponse, error)
func (*Auth) RefreshToken ¶
func (a *Auth) RefreshToken(baseURL, clientID, clientSecret, refreshToken string) (*TokenResponse, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) CancelPipeline ¶
func (*Client) CreateIssue ¶
func (*Client) CreatePipeline ¶
func (*Client) FetchIntegrationData ¶
func (*Client) GetLatestPipeline ¶
func (*Client) GetPipeline ¶
func (*Client) GetPipelineTestReportSummary ¶
func (c *Client) GetPipelineTestReportSummary(projectID string, pipelineID int) (*PipelineTestReportSummary, error)
func (*Client) ListMilestones ¶
type Configuration ¶
type Configuration struct {
AuthType string `mapstructure:"authType" json:"authType"`
BaseURL string `mapstructure:"baseUrl" json:"baseUrl"`
ClientID string `mapstructure:"clientId" json:"clientId"`
ClientSecret string `mapstructure:"clientSecret" json:"clientSecret"`
GroupID string `mapstructure:"groupId" json:"groupId"`
AccessToken string `mapstructure:"accessToken" json:"accessToken"`
}
type CreateIssue ¶
type CreateIssue struct{}
func (*CreateIssue) Actions ¶
func (c *CreateIssue) Actions() []core.Action
func (*CreateIssue) Cancel ¶
func (c *CreateIssue) Cancel(ctx core.ExecutionContext) error
func (*CreateIssue) Cleanup ¶
func (c *CreateIssue) Cleanup(ctx core.SetupContext) error
func (*CreateIssue) Color ¶
func (c *CreateIssue) Color() string
func (*CreateIssue) Configuration ¶
func (c *CreateIssue) Configuration() []configuration.Field
func (*CreateIssue) Description ¶
func (c *CreateIssue) Description() string
func (*CreateIssue) Documentation ¶
func (c *CreateIssue) Documentation() string
func (*CreateIssue) ExampleOutput ¶
func (c *CreateIssue) ExampleOutput() map[string]any
func (*CreateIssue) Execute ¶
func (c *CreateIssue) Execute(ctx core.ExecutionContext) error
func (*CreateIssue) HandleAction ¶
func (c *CreateIssue) HandleAction(ctx core.ActionContext) error
func (*CreateIssue) HandleWebhook ¶
func (c *CreateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CreateIssue) Icon ¶
func (c *CreateIssue) Icon() string
func (*CreateIssue) Label ¶
func (c *CreateIssue) Label() string
func (*CreateIssue) Name ¶
func (c *CreateIssue) Name() string
func (*CreateIssue) OutputChannels ¶
func (c *CreateIssue) OutputChannels(configuration any) []core.OutputChannel
func (*CreateIssue) ProcessQueueItem ¶
func (c *CreateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateIssue) Setup ¶
func (c *CreateIssue) Setup(ctx core.SetupContext) error
type CreateIssueConfiguration ¶
type CreateIssueConfiguration struct {
Project string `mapstructure:"project"`
Title string `mapstructure:"title"`
Body string `mapstructure:"body"`
Assignees []string `mapstructure:"assignees"`
Labels []string `mapstructure:"labels"`
Milestone string `mapstructure:"milestone"`
DueDate string `mapstructure:"dueDate"`
}
type CreatePipelineRequest ¶
type GetLatestPipeline ¶
type GetLatestPipeline struct{}
func (*GetLatestPipeline) Actions ¶
func (c *GetLatestPipeline) Actions() []core.Action
func (*GetLatestPipeline) Cancel ¶
func (c *GetLatestPipeline) Cancel(ctx core.ExecutionContext) error
func (*GetLatestPipeline) Cleanup ¶
func (c *GetLatestPipeline) Cleanup(ctx core.SetupContext) error
func (*GetLatestPipeline) Color ¶
func (c *GetLatestPipeline) Color() string
func (*GetLatestPipeline) Configuration ¶
func (c *GetLatestPipeline) Configuration() []configuration.Field
func (*GetLatestPipeline) Description ¶
func (c *GetLatestPipeline) Description() string
func (*GetLatestPipeline) Documentation ¶
func (c *GetLatestPipeline) Documentation() string
func (*GetLatestPipeline) ExampleOutput ¶
func (c *GetLatestPipeline) ExampleOutput() map[string]any
func (*GetLatestPipeline) Execute ¶
func (c *GetLatestPipeline) Execute(ctx core.ExecutionContext) error
func (*GetLatestPipeline) HandleAction ¶
func (c *GetLatestPipeline) HandleAction(ctx core.ActionContext) error
func (*GetLatestPipeline) HandleWebhook ¶
func (c *GetLatestPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetLatestPipeline) Icon ¶
func (c *GetLatestPipeline) Icon() string
func (*GetLatestPipeline) Label ¶
func (c *GetLatestPipeline) Label() string
func (*GetLatestPipeline) Name ¶
func (c *GetLatestPipeline) Name() string
func (*GetLatestPipeline) OutputChannels ¶
func (c *GetLatestPipeline) OutputChannels(configuration any) []core.OutputChannel
func (*GetLatestPipeline) ProcessQueueItem ¶
func (c *GetLatestPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetLatestPipeline) Setup ¶
func (c *GetLatestPipeline) Setup(ctx core.SetupContext) error
type GetPipeline ¶
type GetPipeline struct{}
func (*GetPipeline) Actions ¶
func (c *GetPipeline) Actions() []core.Action
func (*GetPipeline) Cancel ¶
func (c *GetPipeline) Cancel(ctx core.ExecutionContext) error
func (*GetPipeline) Cleanup ¶
func (c *GetPipeline) Cleanup(ctx core.SetupContext) error
func (*GetPipeline) Color ¶
func (c *GetPipeline) Color() string
func (*GetPipeline) Configuration ¶
func (c *GetPipeline) Configuration() []configuration.Field
func (*GetPipeline) Description ¶
func (c *GetPipeline) Description() string
func (*GetPipeline) Documentation ¶
func (c *GetPipeline) Documentation() string
func (*GetPipeline) ExampleOutput ¶
func (c *GetPipeline) ExampleOutput() map[string]any
func (*GetPipeline) Execute ¶
func (c *GetPipeline) Execute(ctx core.ExecutionContext) error
func (*GetPipeline) HandleAction ¶
func (c *GetPipeline) HandleAction(ctx core.ActionContext) error
func (*GetPipeline) HandleWebhook ¶
func (c *GetPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetPipeline) Icon ¶
func (c *GetPipeline) Icon() string
func (*GetPipeline) Label ¶
func (c *GetPipeline) Label() string
func (*GetPipeline) Name ¶
func (c *GetPipeline) Name() string
func (*GetPipeline) OutputChannels ¶
func (c *GetPipeline) OutputChannels(configuration any) []core.OutputChannel
func (*GetPipeline) ProcessQueueItem ¶
func (c *GetPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetPipeline) Setup ¶
func (c *GetPipeline) Setup(ctx core.SetupContext) error
type GetTestReportSummary ¶
type GetTestReportSummary struct{}
func (*GetTestReportSummary) Actions ¶
func (c *GetTestReportSummary) Actions() []core.Action
func (*GetTestReportSummary) Cancel ¶
func (c *GetTestReportSummary) Cancel(ctx core.ExecutionContext) error
func (*GetTestReportSummary) Cleanup ¶
func (c *GetTestReportSummary) Cleanup(ctx core.SetupContext) error
func (*GetTestReportSummary) Color ¶
func (c *GetTestReportSummary) Color() string
func (*GetTestReportSummary) Configuration ¶
func (c *GetTestReportSummary) Configuration() []configuration.Field
func (*GetTestReportSummary) Description ¶
func (c *GetTestReportSummary) Description() string
func (*GetTestReportSummary) Documentation ¶
func (c *GetTestReportSummary) Documentation() string
func (*GetTestReportSummary) ExampleOutput ¶
func (c *GetTestReportSummary) ExampleOutput() map[string]any
func (*GetTestReportSummary) Execute ¶
func (c *GetTestReportSummary) Execute(ctx core.ExecutionContext) error
func (*GetTestReportSummary) HandleAction ¶
func (c *GetTestReportSummary) HandleAction(ctx core.ActionContext) error
func (*GetTestReportSummary) HandleWebhook ¶
func (c *GetTestReportSummary) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetTestReportSummary) Icon ¶
func (c *GetTestReportSummary) Icon() string
func (*GetTestReportSummary) Label ¶
func (c *GetTestReportSummary) Label() string
func (*GetTestReportSummary) Name ¶
func (c *GetTestReportSummary) Name() string
func (*GetTestReportSummary) OutputChannels ¶
func (c *GetTestReportSummary) OutputChannels(configuration any) []core.OutputChannel
func (*GetTestReportSummary) ProcessQueueItem ¶
func (c *GetTestReportSummary) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetTestReportSummary) Setup ¶
func (c *GetTestReportSummary) Setup(ctx core.SetupContext) error
type GitLab ¶
type GitLab struct {
}
func (*GitLab) Components ¶
func (*GitLab) Configuration ¶
func (g *GitLab) Configuration() []configuration.Field
func (*GitLab) Description ¶
func (*GitLab) HandleAction ¶
func (g *GitLab) HandleAction(ctx core.IntegrationActionContext) error
func (*GitLab) HandleRequest ¶
func (g *GitLab) HandleRequest(ctx core.HTTPRequestContext)
func (*GitLab) Instructions ¶
func (*GitLab) ListResources ¶
func (g *GitLab) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type GitLabWebhookHandler ¶
type GitLabWebhookHandler struct{}
func (*GitLabWebhookHandler) Cleanup ¶
func (h *GitLabWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
func (*GitLabWebhookHandler) CompareConfig ¶
func (h *GitLabWebhookHandler) CompareConfig(a, b any) (bool, error)
func (*GitLabWebhookHandler) Merge ¶
func (h *GitLabWebhookHandler) Merge(current, requested any) (any, bool, error)
func (*GitLabWebhookHandler) Setup ¶
func (h *GitLabWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
type Hook ¶
type Hook struct {
ID int `json:"id"`
URL string `json:"url"`
ProjectID int `json:"project_id"`
IssuesEvents bool `json:"issues_events"`
MergeRequestsEvents bool `json:"merge_requests_events"`
PushEvents bool `json:"push_events"`
TagPushEvents bool `json:"tag_push_events"`
NoteEvents bool `json:"note_events"`
ConfidentialIssuesEvents bool `json:"confidential_issues_events"`
PipelineEvents bool `json:"pipeline_events"`
WikiPageEvents bool `json:"wiki_page_events"`
DeploymentEvents bool `json:"deployment_events"`
ReleasesEvents bool `json:"releases_events"`
MilestoneEvents bool `json:"milestone_events"`
VulnerabilityEvents bool `json:"vulnerability_events"`
}
type HookEvents ¶
type HooksClient ¶
type HooksClient struct {
*Client
}
func NewHooksClient ¶
func NewHooksClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*HooksClient, error)
func (*HooksClient) CreateHook ¶
func (c *HooksClient) CreateHook(projectID string, webhookURL string, secret string, events HookEvents) (*Hook, error)
func (*HooksClient) DeleteHook ¶
func (c *HooksClient) DeleteHook(projectID string, hookID int) error
type Issue ¶
type Issue struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
ClosedAt *string `json:"closed_at"`
ClosedBy *User `json:"closed_by"`
Labels []string `json:"labels"`
Milestone *Milestone `json:"milestone"`
DueDate *string `json:"due_date"`
WebURL string `json:"web_url"`
Author User `json:"author"`
Assignees []User `json:"assignees"`
}
type IssueRequest ¶
type Metadata ¶
type Metadata struct {
State *string `mapstructure:"state,omitempty" json:"state,omitempty"`
Projects []ProjectMetadata `mapstructure:"projects" json:"projects"`
User *UserMetadata `mapstructure:"user,omitempty" json:"user,omitempty"`
}
type NodeMetadata ¶
type NodeMetadata struct {
Project *ProjectMetadata `json:"project"`
}
type OnIssue ¶
type OnIssue struct{}
func (*OnIssue) Configuration ¶
func (i *OnIssue) Configuration() []configuration.Field
func (*OnIssue) Description ¶
func (*OnIssue) Documentation ¶
func (*OnIssue) ExampleData ¶
func (*OnIssue) HandleAction ¶
func (*OnIssue) HandleWebhook ¶
func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnIssueConfiguration ¶
type OnIssueConfiguration struct {
Project string `json:"project" mapstructure:"project"`
Actions []string `json:"actions" mapstructure:"actions"`
Labels []configuration.Predicate `json:"labels" mapstructure:"labels"`
}
type OnMergeRequest ¶
type OnMergeRequest struct{}
func (*OnMergeRequest) Actions ¶
func (m *OnMergeRequest) Actions() []core.Action
func (*OnMergeRequest) Cleanup ¶
func (m *OnMergeRequest) Cleanup(ctx core.TriggerContext) error
func (*OnMergeRequest) Color ¶
func (m *OnMergeRequest) Color() string
func (*OnMergeRequest) Configuration ¶
func (m *OnMergeRequest) Configuration() []configuration.Field
func (*OnMergeRequest) Description ¶
func (m *OnMergeRequest) Description() string
func (*OnMergeRequest) Documentation ¶
func (m *OnMergeRequest) Documentation() string
func (*OnMergeRequest) ExampleData ¶
func (m *OnMergeRequest) ExampleData() map[string]any
func (*OnMergeRequest) HandleAction ¶
func (m *OnMergeRequest) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnMergeRequest) HandleWebhook ¶
func (m *OnMergeRequest) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnMergeRequest) Icon ¶
func (m *OnMergeRequest) Icon() string
func (*OnMergeRequest) Label ¶
func (m *OnMergeRequest) Label() string
func (*OnMergeRequest) Name ¶
func (m *OnMergeRequest) Name() string
func (*OnMergeRequest) Setup ¶
func (m *OnMergeRequest) Setup(ctx core.TriggerContext) error
type OnMilestone ¶
type OnMilestone struct{}
func (*OnMilestone) Actions ¶
func (m *OnMilestone) Actions() []core.Action
func (*OnMilestone) Cleanup ¶
func (m *OnMilestone) Cleanup(ctx core.TriggerContext) error
func (*OnMilestone) Color ¶
func (m *OnMilestone) Color() string
func (*OnMilestone) Configuration ¶
func (m *OnMilestone) Configuration() []configuration.Field
func (*OnMilestone) Description ¶
func (m *OnMilestone) Description() string
func (*OnMilestone) Documentation ¶
func (m *OnMilestone) Documentation() string
func (*OnMilestone) ExampleData ¶
func (m *OnMilestone) ExampleData() map[string]any
func (*OnMilestone) HandleAction ¶
func (m *OnMilestone) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnMilestone) HandleWebhook ¶
func (m *OnMilestone) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnMilestone) Icon ¶
func (m *OnMilestone) Icon() string
func (*OnMilestone) Label ¶
func (m *OnMilestone) Label() string
func (*OnMilestone) Name ¶
func (m *OnMilestone) Name() string
func (*OnMilestone) Setup ¶
func (m *OnMilestone) Setup(ctx core.TriggerContext) error
type OnPipeline ¶
type OnPipeline struct{}
func (*OnPipeline) Actions ¶
func (p *OnPipeline) Actions() []core.Action
func (*OnPipeline) Cleanup ¶
func (p *OnPipeline) Cleanup(ctx core.TriggerContext) error
func (*OnPipeline) Color ¶
func (p *OnPipeline) Color() string
func (*OnPipeline) Configuration ¶
func (p *OnPipeline) Configuration() []configuration.Field
func (*OnPipeline) Description ¶
func (p *OnPipeline) Description() string
func (*OnPipeline) Documentation ¶
func (p *OnPipeline) Documentation() string
func (*OnPipeline) ExampleData ¶
func (p *OnPipeline) ExampleData() map[string]any
func (*OnPipeline) HandleAction ¶
func (p *OnPipeline) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnPipeline) HandleWebhook ¶
func (p *OnPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnPipeline) Icon ¶
func (p *OnPipeline) Icon() string
func (*OnPipeline) Label ¶
func (p *OnPipeline) Label() string
func (*OnPipeline) Name ¶
func (p *OnPipeline) Name() string
func (*OnPipeline) Setup ¶
func (p *OnPipeline) Setup(ctx core.TriggerContext) error
type OnPipelineConfiguration ¶
type OnRelease ¶
type OnRelease struct{}
func (*OnRelease) Configuration ¶
func (r *OnRelease) Configuration() []configuration.Field
func (*OnRelease) Description ¶
func (*OnRelease) Documentation ¶
func (*OnRelease) ExampleData ¶
func (*OnRelease) HandleAction ¶
func (*OnRelease) HandleWebhook ¶
func (r *OnRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnReleaseConfiguration ¶
type OnTag ¶
type OnTag struct{}
func (*OnTag) Configuration ¶
func (t *OnTag) Configuration() []configuration.Field
func (*OnTag) Description ¶
func (*OnTag) Documentation ¶
func (*OnTag) ExampleData ¶
func (*OnTag) HandleAction ¶
func (*OnTag) HandleWebhook ¶
func (t *OnTag) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnTagConfiguration ¶
type OnTagConfiguration struct {
Project string `json:"project" mapstructure:"project"`
Tags []configuration.Predicate `json:"tags" mapstructure:"tags"`
}
type OnVulnerability ¶
type OnVulnerability struct{}
func (*OnVulnerability) Actions ¶
func (v *OnVulnerability) Actions() []core.Action
func (*OnVulnerability) Cleanup ¶
func (v *OnVulnerability) Cleanup(ctx core.TriggerContext) error
func (*OnVulnerability) Color ¶
func (v *OnVulnerability) Color() string
func (*OnVulnerability) Configuration ¶
func (v *OnVulnerability) Configuration() []configuration.Field
func (*OnVulnerability) Description ¶
func (v *OnVulnerability) Description() string
func (*OnVulnerability) Documentation ¶
func (v *OnVulnerability) Documentation() string
func (*OnVulnerability) ExampleData ¶
func (v *OnVulnerability) ExampleData() map[string]any
func (*OnVulnerability) HandleAction ¶
func (v *OnVulnerability) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnVulnerability) HandleWebhook ¶
func (v *OnVulnerability) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnVulnerability) Icon ¶
func (v *OnVulnerability) Icon() string
func (*OnVulnerability) Label ¶
func (v *OnVulnerability) Label() string
func (*OnVulnerability) Name ¶
func (v *OnVulnerability) Name() string
func (*OnVulnerability) Setup ¶
func (v *OnVulnerability) Setup(ctx core.TriggerContext) error
type OnVulnerabilityConfiguration ¶
type OnVulnerabilityConfiguration struct {
Project string `json:"project" mapstructure:"project"`
}
type Pipeline ¶
type Pipeline struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
Status string `json:"status"`
Source string `json:"source,omitempty"`
Ref string `json:"ref"`
SHA string `json:"sha"`
BeforeSHA string `json:"before_sha,omitempty"`
Tag bool `json:"tag,omitempty"`
YamlErrors *string `json:"yaml_errors,omitempty"`
WebURL string `json:"web_url"`
URL string `json:"url,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
StartedAt string `json:"started_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
CommittedAt string `json:"committed_at,omitempty"`
Duration float64 `json:"duration,omitempty"`
QueuedDuration float64 `json:"queued_duration,omitempty"`
Coverage string `json:"coverage,omitempty"`
User map[string]any `json:"user,omitempty"`
DetailedStatus map[string]any `json:"detailed_status,omitempty"`
}
type PipelineInput ¶
type PipelineMetadata ¶
type PipelineVariable ¶
type ProjectMetadata ¶
type RunPipeline ¶
type RunPipeline struct{}
func (*RunPipeline) Actions ¶
func (r *RunPipeline) Actions() []core.Action
func (*RunPipeline) Cancel ¶
func (r *RunPipeline) Cancel(ctx core.ExecutionContext) error
func (*RunPipeline) Cleanup ¶
func (r *RunPipeline) Cleanup(ctx core.SetupContext) error
func (*RunPipeline) Color ¶
func (r *RunPipeline) Color() string
func (*RunPipeline) Configuration ¶
func (r *RunPipeline) Configuration() []configuration.Field
func (*RunPipeline) Description ¶
func (r *RunPipeline) Description() string
func (*RunPipeline) Documentation ¶
func (r *RunPipeline) Documentation() string
func (*RunPipeline) ExampleOutput ¶
func (r *RunPipeline) ExampleOutput() map[string]any
func (*RunPipeline) Execute ¶
func (r *RunPipeline) Execute(ctx core.ExecutionContext) error
func (*RunPipeline) HandleAction ¶
func (r *RunPipeline) HandleAction(ctx core.ActionContext) error
func (*RunPipeline) HandleWebhook ¶
func (r *RunPipeline) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*RunPipeline) Icon ¶
func (r *RunPipeline) Icon() string
func (*RunPipeline) Label ¶
func (r *RunPipeline) Label() string
func (*RunPipeline) Name ¶
func (r *RunPipeline) Name() string
func (*RunPipeline) OutputChannels ¶
func (r *RunPipeline) OutputChannels(configuration any) []core.OutputChannel
func (*RunPipeline) ProcessQueueItem ¶
func (r *RunPipeline) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*RunPipeline) Setup ¶
func (r *RunPipeline) Setup(ctx core.SetupContext) error
type RunPipelineExecutionMetadata ¶
type RunPipelineExecutionMetadata struct {
Pipeline *PipelineMetadata `json:"pipeline" mapstructure:"pipeline"`
}
type RunPipelineInputSpec ¶
type RunPipelineSpec ¶
type RunPipelineSpec struct {
Project string `json:"project" mapstructure:"project"`
Ref string `json:"ref" mapstructure:"ref"`
Inputs []RunPipelineInputSpec `json:"inputs" mapstructure:"inputs"`
}
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
Scope string `json:"scope"`
}
func (*TokenResponse) GetExpiration ¶
func (t *TokenResponse) GetExpiration() time.Duration
type UserMetadata ¶
type WebhookConfiguration ¶
type WebhookMetadata ¶
type WebhookMetadata struct {
ID int `json:"id" mapstructure:"id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.